|
@@ -93,9 +93,12 @@ class RefillPhone extends refill\IRefillPhone
|
|
|
$status = $resp['data']['status'];
|
|
|
if ($status == 'success') {
|
|
|
$offical_sn = $resp['data']['operatorTradeNo'];
|
|
|
- Model('refill_order')->edit($refill_info['order_id'], ['official_sn' => $offical_sn]);
|
|
|
+ $ch_trade_no = $resp['data']['inTradeNo'];
|
|
|
+ Model('refill_order')->edit($refill_info['order_id'], ['official_sn' => $offical_sn,'ch_trade_no' => $ch_trade_no]);
|
|
|
$order_state = ORDER_STATE_SUCCESS;
|
|
|
} elseif ($status == 'failed') {
|
|
|
+ $ch_trade_no = $resp['data']['inTradeNo'];
|
|
|
+ Model('refill_order')->edit($refill_info['order_id'], ['ch_trade_no' => $ch_trade_no]);
|
|
|
$order_state = ORDER_STATE_CANCEL;
|
|
|
} elseif ($status == 'waiting') {
|
|
|
$order_state = ORDER_STATE_SEND;
|