1.提交缺失的东西

This commit is contained in:
2025-05-17 14:42:53 +08:00
parent ad68370307
commit 0bb7329c2f

View File

@ -28,7 +28,7 @@ use app\common\service\ConfigServer;
use app\common\service\WeChatPayServer;
use app\common\service\WeChatServer;
use app\common\logic\PaymentLogic;
use app\common\model\Pay;
use app\common\model\pay\Pay;
use think\facade\Db;
/**
@ -209,24 +209,24 @@ class PaymentController extends BaseApiController
$order = Db::name('recharge_order')->where('id', $params['order_id'])->find();
}
$payModel = new pay\Pay();
$payModel = new Pay();
$pay = $payModel->where(['status' => 1])->order('sort')->hidden(['config'])->select()->toArray();
foreach ($pay as $k => &$item) {
if ($item['code'] == 'wechat') {
$item['extra'] = '微信快捷支付';
$item['pay_way'] = pay\Pay::WECHAT_PAY;
$item['pay_way'] = Pay::WECHAT_PAY;
}
if ($item['code'] == 'balance') {
$user_money = Db::name('user')->where(['id' => $this->userId])->value('user_money');
$item['extra'] = '可用余额:'.$user_money;
$item['pay_way'] = pay\Pay::BALANCE_PAY;
$item['pay_way'] = Pay::BALANCE_PAY;
}
if ($item['code'] == 'alipay') {
$item['extra'] = '';
$item['pay_way'] = pay\Pay::ALI_PAY;
$item['pay_way'] = Pay::ALI_PAY;
}
if (in_array($this->client, [Client_::mnp, Client_::oa]) && $item['code'] == 'alipay') {