elf 2 weeks ago
parent 1d88e1850c
commit 48569868cb

@ -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);
}
}
Loading…
Cancel
Save