fix(app): 修复集娱平台支付订单 ID 获取问题
- 在响应数据中添加了对订单 ID 的提取逻辑 - 确保只有在响应代码为 'ok' 且存在有效订单 ID 时,才将订单 ID 设置到 $channel_order_id 变量
This commit is contained in:
parent
d7729119c5
commit
e4ff6dd4b2
@ -220,6 +220,10 @@ class Jiyu extends Core
|
|||||||
$response = $this->response($response);
|
$response = $this->response($response);
|
||||||
$channel_order_id = '';
|
$channel_order_id = '';
|
||||||
|
|
||||||
|
if($response['array']['code']=='ok' && isset($response['array']['data']['order_id']) && $response['array']['data']['order_id']){
|
||||||
|
$channel_order_id = $response['array']['data']['order_id'];
|
||||||
|
}
|
||||||
|
|
||||||
$this->create($param['order'], $channel_order_id, $param['merchant_order'], $param['cash'], $url, $request, $response, 1, $param['account']);
|
$this->create($param['order'], $channel_order_id, $param['merchant_order'], $param['cash'], $url, $request, $response, 1, $param['account']);
|
||||||
return $response['msg'];
|
return $response['msg'];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user