|
@@ -85,9 +85,9 @@ class RefillOil extends refill\IRefillOil
|
|
|
if ($status === 2) {
|
|
|
Log::record("mengu query sms:{$resp['ext1']}",Log::DEBUG);
|
|
|
Model('')->table('refill_ext')->insert(['order_id' => $refill_info['order_id'], 'sms' => $resp['ext1']]);
|
|
|
- $official_sn = $this->substr_content($resp['ext1']);
|
|
|
- $updata['official_sn'] = $official_sn;
|
|
|
- Model('refill_order')->edit($refill_info['order_id'], $updata);
|
|
|
+ $official_sn = config::official_sn($resp['ext1']);
|
|
|
+
|
|
|
+ Model('refill_order')->edit($refill_info['order_id'], ['official_sn' => $official_sn]);
|
|
|
$order_state = ORDER_STATE_SUCCESS;
|
|
|
} elseif ($status === 3) {
|
|
|
$order_state = ORDER_STATE_CANCEL;
|
|
@@ -131,9 +131,6 @@ class RefillOil extends refill\IRefillOil
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取毫秒级别的时间戳
|
|
|
- */
|
|
|
private function get_millisecond()
|
|
|
{
|
|
|
list($usec, $sec) = explode(" ", microtime());
|
|
@@ -153,14 +150,4 @@ class RefillOil extends refill\IRefillOil
|
|
|
$content = rtrim($content, '&');
|
|
|
return md5($content);
|
|
|
}
|
|
|
-
|
|
|
- private function substr_content($content)
|
|
|
- {
|
|
|
- $data = explode(':',$content);
|
|
|
- if(count($data) > 1) {
|
|
|
- return $data[1];
|
|
|
- } else {
|
|
|
- return '';
|
|
|
- }
|
|
|
- }
|
|
|
}
|