From 2dabc40a9c3f792a10ccadd784bac6671bf2eef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Thu, 14 Aug 2025 18:27:24 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/WuYouPayUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/WuYouPayUtils.php b/app/utils/WuYouPayUtils.php index 2500a17..9afa371 100644 --- a/app/utils/WuYouPayUtils.php +++ b/app/utils/WuYouPayUtils.php @@ -4,7 +4,7 @@ namespace app\utils; use app\api\model\CommonInfo; use app\exception\SysException; -use think\facade\Log; +use support\Log; class WuYouPayUtils { From f7a79f57177c0c6cbce98caa8e1b2afe7ccc6a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Thu, 14 Aug 2025 18:27:37 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/wuyou.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config/wuyou.php diff --git a/config/wuyou.php b/config/wuyou.php new file mode 100644 index 0000000..6be2eaa --- /dev/null +++ b/config/wuyou.php @@ -0,0 +1,13 @@ + env('WUYOU.ENABLE', 0), // 支付开关 + 'url' => env('WUYOU.PAY_URL', 'http://47.113.117.120/api/order'), // 支付地址 + 'notify_url' => 'https://ph.hnsiyao.cn/api/wuyou/notify', // 支付回调地址 + 'h5_base_url' => env('WUYOU.PAY_H5_BASE_URL', 'https://dj-h5.hnsiyao.cn/me/detail/detail?allId='), // H5 支付基础地址 + 'secret' => env('WUYOU.APP_SECRET', '3MWSBmyKDeQDLXzoLr53tKVqiJv4Fm0KdsEhbpXW9YWvh35VgozL5S3rpUz4EjSb'), // 支付签名密钥 + 'merchant_id' => env('WUYOU.MERCHANT_ID', '100360'), // 商户号 + 'query_url' => env('WUYOU.QUERY_URL', 'http://47.113.117.120/api/queryOrder'), // 订单查询地址 + 'extract_url' => env('WUYOU.EXTRACT_URL', 'http://47.113.117.120/api/salary'), // 提现接口地址 + 'extract_notify_url' => env('WUYOU.EXTRACT_URL', 'https://ph.hnsiyao.cn/api/wuyou/extractNotify'), // 提现接口地址 + 'extract_query_url' => env('WUYOU.EXTRACT_QUERY_URL', 'http://47.113.117.120/api/querySalary'), // 查询提现接口地址 +]; From b81560b0a72a947d3224353c681d0bd0b65cfa5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Thu, 14 Aug 2025 18:29:15 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/model/SysUser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/common/model/SysUser.php b/app/common/model/SysUser.php index 6846c57..3c8d024 100644 --- a/app/common/model/SysUser.php +++ b/app/common/model/SysUser.php @@ -4,9 +4,7 @@ namespace app\common\model; use app\common\library\DatabaseRoute; -use app\czg\model\SysCaptcha; -use ba\Random; -use think\facade\Cache; +use extend\ba\Random; use think\facade\Db; class SysUser extends BaseModel From edb0ab5a7c11970e74352da7765feae023871486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Thu, 14 Aug 2025 18:37:54 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/czg/app/controller/WuyouController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/czg/app/controller/WuyouController.php b/app/czg/app/controller/WuyouController.php index 82c06f9..494460d 100644 --- a/app/czg/app/controller/WuyouController.php +++ b/app/czg/app/controller/WuyouController.php @@ -199,7 +199,9 @@ class WuyouController extends BaseController public function notify() { try { - $params = $this->request->post(); + + $json = file_get_contents('php://input'); + $params = json_decode($json, true); Log::info("无忧支付回调,入参: " . json_encode($params)); $signData = [ 'callbacks' => $params['callbacks'], From 0712b212a6a67ff8e1be8821d695b89f1969fcc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Thu, 14 Aug 2025 18:39:20 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/czg/app/controller/WuyouController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/czg/app/controller/WuyouController.php b/app/czg/app/controller/WuyouController.php index 494460d..82c06f9 100644 --- a/app/czg/app/controller/WuyouController.php +++ b/app/czg/app/controller/WuyouController.php @@ -199,9 +199,7 @@ class WuyouController extends BaseController public function notify() { try { - - $json = file_get_contents('php://input'); - $params = json_decode($json, true); + $params = $this->request->post(); Log::info("无忧支付回调,入参: " . json_encode($params)); $signData = [ 'callbacks' => $params['callbacks'], From 7ad4f37fc37c97ee48705a40f206073a67fb071c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Thu, 14 Aug 2025 18:40:24 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/czg/app/controller/WuyouController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/czg/app/controller/WuyouController.php b/app/czg/app/controller/WuyouController.php index 82c06f9..0925dcb 100644 --- a/app/czg/app/controller/WuyouController.php +++ b/app/czg/app/controller/WuyouController.php @@ -199,7 +199,7 @@ class WuyouController extends BaseController public function notify() { try { - $params = $this->request->post(); + $params = json_decode('{"callbacks": "CODE_SUCCESS","order_sn": "test001","out_trade_no": "bcf60b80e805480984a9956088e74225-357901754385306920","pay_time": "1751584904","sign": "495D873175D4A7762B3B7162DA6C9F35","total": 1.50}', true); Log::info("无忧支付回调,入参: " . json_encode($params)); $signData = [ 'callbacks' => $params['callbacks'],