From 0bb7329c2fc366a8bcced117887b2cb27e32bdc0 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Sat, 17 May 2025 14:42:53 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E4=BA=A4=E7=BC=BA=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E4=B8=9C=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/PaymentController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/api/controller/PaymentController.php b/app/api/controller/PaymentController.php index a57e966..18ae191 100644 --- a/app/api/controller/PaymentController.php +++ b/app/api/controller/PaymentController.php @@ -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') {