From 67ed01dc36fbae01a2087bbc513369aa9d8aa5ef Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 13 Dec 2024 23:21:13 +0800 Subject: [PATCH] y --- Application/Callback/Controller/NotifyController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Callback/Controller/NotifyController.class.php b/Application/Callback/Controller/NotifyController.class.php index 42c523a..542436a 100644 --- a/Application/Callback/Controller/NotifyController.class.php +++ b/Application/Callback/Controller/NotifyController.class.php @@ -1005,8 +1005,9 @@ class NotifyController extends BaseController } public function test_send() { - $str = '{"order_no":"SP_20241213230953wPOf1","user_id":186,"user_account":"","game_id":20,"game_name":"\u53e4\u57dfOnline","server_id":"1","server_name":"\u3044\u541b\u4e34-\u5929\u4e0b\u3065","subject":"\u8282\u65e5\u7279\u60e01\u5143","role_id":"1000048","role_name":"\u7231\u9756\u96c1","pay_amount":100,"notify_url":"http:\/\/api.hexidongkeji.top\/callback.php\/Notify\/outer_callback","return_url":"https%3A%2F%2Fapi.hexidongkeji.top%2Fsdk.php%2FSpend%2Fpaycallback%2Forderno%2FSP_20241213230953wPOf%2Fgame_id%2F20%2Fpaytype%2Fweixinpay","promote_id":0,"promote_account":"","client_ip":"223.104.54.38","pay_type":"wxpay-h5"}'; + $str = '{"order_no":"SP_2024121323095","user_id":186,"user_account":"","game_id":20,"game_name":"\u53e4\u57dfOnline","server_id":"1","server_name":"\u3044\u541b\u4e34-\u5929\u4e0b\u3065","subject":"\u8282\u65e5\u7279\u60e01\u5143","role_id":"1000048","role_name":"\u7231\u9756\u96c1","pay_amount":100,"notify_url":"http:\/\/api.hexidongkeji.top\/callback.php\/Notify\/outer_callback","return_url":"https%3A%2F%2Fapi.hexidongkeji.top%2Fsdk.php%2FSpend%2Fpaycallback%2Forderno%2FSP_20241213230953wPOf%2Fgame_id%2F20%2Fpaytype%2Fweixinpay","promote_id":0,"promote_account":"","client_ip":"223.104.54.38","pay_type":"wxpay-h5"}'; $params = json_decode($str, true); + $params['order_no'] = $params['order_no'] . '_' . rand(1000, 9999); $result = OuterApi::request($params); var_dump($result); }