Delete Config.php

This commit is contained in:
邹景立 2021-03-16 10:33:35 +08:00
parent 1e0aa1c8f6
commit cf7df0c508

View File

@ -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());
}
}