|
@@ -70,7 +70,7 @@ class RefillOil extends refill\IRefillOil
|
|
|
public function query($refill_info)
|
|
|
{
|
|
|
|
|
|
- $waterNoByVoucher = function($voucher):string {
|
|
|
+ $waterno_by_voucher = function($voucher):string {
|
|
|
$matches = [];
|
|
|
preg_match("/\:(\d+)/",$voucher,$matches);
|
|
|
if (!empty($matches)){
|
|
@@ -99,7 +99,7 @@ class RefillOil extends refill\IRefillOil
|
|
|
{
|
|
|
$status = $resp['data']['status'];
|
|
|
if ($status === 5) {
|
|
|
- $updata['official_sn'] = $waterNoByVoucher($resp['data']['voucher']);
|
|
|
+ $updata['official_sn'] = $waterno_by_voucher($resp['data']['voucher']);
|
|
|
Model('refill_order')->edit($refill_info['order_id'], $updata);
|
|
|
$order_state = ORDER_STATE_SUCCESS;
|
|
|
} elseif ($status === 6) {
|