mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Delete Config.php
This commit is contained in:
parent
1e0aa1c8f6
commit
cf7df0c508
@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\data\controller\api\auth;
|
||||
|
||||
use app\data\controller\api\Auth;
|
||||
use app\data\service\PaymentService;
|
||||
|
||||
/**
|
||||
* 接口数据配置
|
||||
* Class Config
|
||||
* @package app\data\controller\api\auth
|
||||
*/
|
||||
class Config extends Auth
|
||||
{
|
||||
/**
|
||||
* 获取支付参数数据
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
*/
|
||||
public function getPayment()
|
||||
{
|
||||
$types = [];
|
||||
foreach (PaymentService::TYPES as $type => $arr) if (in_array($this->type, $arr['bind'])) $types[] = $type;
|
||||
$query = $this->app->db->name('ShopPayment')->where(['status' => 1, 'deleted' => 0])->whereIn('type', $types);
|
||||
$this->success('获取支付参数数据', $query->order('sort desc,id desc')->field('type,code,name')->select()->toArray());
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user