32 lines
643 B
PHP
32 lines
643 B
PHP
<?php
|
|
|
|
namespace app\api\service;
|
|
|
|
use app\common\repository\PaySettingReposotpry;
|
|
|
|
class PayService
|
|
{
|
|
protected $paySettingReposotpry;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->paySettingReposotpry = new PaySettingReposotpry;
|
|
}
|
|
|
|
/**
|
|
* 支付列表过程 function
|
|
*
|
|
* @author dotdotdot <6383846@qq.com>
|
|
* @date 2022-08-10
|
|
* @return array
|
|
*/
|
|
public function list()
|
|
{
|
|
$paySettingFields = ['id', 'price', 'egold', 'giveegold', 'title', 'poster'];
|
|
|
|
$paySettingData = $this->paySettingReposotpry->selectAll($paySettingFields);
|
|
|
|
return $paySettingData;
|
|
}
|
|
}
|