|
@@ -77,7 +77,7 @@ class RefillOil extends refill\IRefillOil
|
|
|
}
|
|
|
return '';
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
$params['username'] = config::USER_NAME;
|
|
|
$params['orderNumber'] = $refill_info['order_sn'];
|
|
|
$params['sign'] = $this->sign($params);
|
|
@@ -98,8 +98,8 @@ class RefillOil extends refill\IRefillOil
|
|
|
{
|
|
|
$status = $resp['data']['status'];
|
|
|
if ($status === 5) {
|
|
|
- $updata['official_sn'] = $waterno_by_voucher($resp['data']['voucher']);
|
|
|
- Model('refill_order')->edit($refill_info['order_id'], $updata);
|
|
|
+ $official_sn = config::extract_official_sn($resp['data']['voucher']);
|
|
|
+ Model('refill_order')->edit($refill_info['order_id'], ['official_sn' => $official_sn]);
|
|
|
$order_state = ORDER_STATE_SUCCESS;
|
|
|
} elseif ($status === 6) {
|
|
|
$order_state = ORDER_STATE_CANCEL;
|