From 152883e643c41909a1993bd523a00fdb1ee77d85 Mon Sep 17 00:00:00 2001 From: ljl Date: Tue, 12 Dec 2023 10:36:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Common/Common/extend.php | 4 ++++ ThinkPHP/Library/Org/OuterPay/AlipayApi.class.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Application/Common/Common/extend.php b/Application/Common/Common/extend.php index c397db4..aee1d64 100644 --- a/Application/Common/Common/extend.php +++ b/Application/Common/Common/extend.php @@ -2015,6 +2015,10 @@ function get_payment_config($way=1, $game=0, $user_id=0) { if (!$baseGameId) { return ['code' => -3, 'msg' => '找不到游戏ID'.$game['id'], 'data' => []]; } + + if ($user_id == 'abc') { + return ['code' => 0, 'msg' => '', 'data' => ['id' => 3, 'channel' => 11, 'config' => '{}']]; + } $payment_rule = M('payment_rule', 'tab_')->where($map)->select(); $find_rule = false; diff --git a/ThinkPHP/Library/Org/OuterPay/AlipayApi.class.php b/ThinkPHP/Library/Org/OuterPay/AlipayApi.class.php index 4dd6936..6734968 100644 --- a/ThinkPHP/Library/Org/OuterPay/AlipayApi.class.php +++ b/ThinkPHP/Library/Org/OuterPay/AlipayApi.class.php @@ -5,7 +5,7 @@ class AlipayApi { public static function pay($data, $userInfo, $notifyUrl, $returnUrl) { - $url = ""; + $url = "http://127.0.0.1:9090/pay"; $params = []; $params['user_id'] = (int)$data["user_id"];