|
@@ -36,7 +36,10 @@ class RefillCallBack implements refill\IRefillCallBack
|
|
|
$order_id = $order_info['order_id'];
|
|
|
|
|
|
if ($status === 2) {
|
|
|
- $data['official_sn'] = strtolower($params['szRtnMsg']) == 'null' ? '' : $params['szRtnMsg'];
|
|
|
+ $msg = strtolower($params['szRtnMsg']) == 'null' ? '' : $params['szRtnMsg'];
|
|
|
+ preg_match('/:\d+/', $msg, $matches);
|
|
|
+ $official_sn = ltrim($matches[0], ':');
|
|
|
+ $data['official_sn'] = $official_sn;
|
|
|
Model('refill_order')->edit($order_id, $data);
|
|
|
return [$order_id, true, false,true];
|
|
|
}
|