From 48569868cbf0e6463d0e551725b8528ddf1d6833 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 13 Dec 2024 23:16:20 +0800 Subject: [PATCH] y --- .../Callback/Controller/NotifyController.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Application/Callback/Controller/NotifyController.class.php b/Application/Callback/Controller/NotifyController.class.php index fa8188b..103f796 100644 --- a/Application/Callback/Controller/NotifyController.class.php +++ b/Application/Callback/Controller/NotifyController.class.php @@ -1003,4 +1003,12 @@ class NotifyController extends BaseController } echo 'success'; } + + public function test_send() { + $str = '{"order_no":"SP_20241213230953wPOf","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); + } } \ No newline at end of file