修复订单接口请求格式问题

This commit is contained in:
2025-10-21 14:12:28 +08:00
parent aea1718fd0
commit 2649b20dae

View File

@@ -384,15 +384,16 @@ class Order extends Controller
$url = $http_url; $url = $http_url;
if ($url == $this->url_root . '/user/pack/renew') { if ($url == $this->url_root . '/user/pack/renew') {
$request_data = formatHttpRequert([ $request_data = [
'sgUserId' => $request_data['sgUserId'], 'sgUserId' => $request_data['sgUserId'],
'packId' => $request_data['packId'], 'packId' => $request_data['packId'],
'packType' => $request_data['packType'], 'packType' => $request_data['packType'],
'periodType' => $request_data['periodType'], 'periodType' => $request_data['periodType'],
'periodAmount' => $request_data['periodAmount'], 'periodAmount' => $request_data['periodAmount'],
]); ];
} }
$request_data = formatHttpRequert($request_data);
$http_data = json_decode(linkcurl($url,'POST',$request_data,[],0)); $http_data = json_decode(linkcurl($url,'POST',$request_data,[],0));
if ($http_data->s < 0) { if ($http_data->s < 0) {