|
@@ -62,8 +62,11 @@ class RefillCallBack implements refill\IRefillCallBack
|
|
|
|
|
|
$order_id = $order_info['order_id'];
|
|
|
$status = intval($params['status']);
|
|
|
- Model('refill_order')->edit($order_id, ['ch_trade_no' => $params['orderNo']]);
|
|
|
+ $updata['ch_trade_no'] = $params['orderNo'];
|
|
|
+ Model('refill_order')->edit($order_id, $updata);
|
|
|
if ($status === 1) {
|
|
|
+ $updata['official_sn'] = strtolower($params['officialNo']) == 'null' ? '' : $params['officialNo'];
|
|
|
+ Model('refill_order')->edit($order_id, $updata);
|
|
|
return [$order_id, true, false, true];
|
|
|
} elseif ($status === 2 || $status === 3) {
|
|
|
return [$order_id, false, true, true];
|