Kaynağa Gözat

乐友-更改函数名称

zhaoming 1 yıl önce
ebeveyn
işleme
c0885badde
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      helper/refill/api/xyz/leyou/RefillOil.php

+ 2 - 2
helper/refill/api/xyz/leyou/RefillOil.php

@@ -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) {