浏览代码

hongxuda addapi add code 999

haru haru 3 年之前
父节点
当前提交
12476743d9

+ 0 - 1
helper/refill/IRefill.php

@@ -35,7 +35,6 @@ abstract class IRefill
             return $result;
         };
 
-
         foreach ( $cfgs['amount'] as $spec => $items)
         {
             foreach ($items as $gitem)

+ 7 - 3
helper/refill/api/xyz/hongxudagy/RefillPhone.php

@@ -83,7 +83,8 @@ class RefillPhone extends refill\IRefillPhone
             else
             {
                 $code = $resp['code'];
-                if (in_array($code, [100, 101, 102, 103, 888])) {
+                if (in_array($code, [100, 101, 102, 103, 888]))
+                {
                     $order_status = intval($resp['data']['order_status']);
                     if ($order_status === 0) {
                         $updata['official_sn'] = $resp['data']['cp_id'];
@@ -96,10 +97,13 @@ class RefillPhone extends refill\IRefillPhone
                     } else {
                         return [false, $resp['msg']];
                     }
+
                     return [true, $order_state];
-                } elseif ($code === 258 && (time() - $refill_info['commit_time'] >= 600)) {
+                }
+                elseif ($code === 258 && (time() - $refill_info['commit_time'] >= 600)) {
                     return [true, ORDER_STATE_NOEXIST];
-                } else {
+                }
+                else {
                     return [false, $resp['msg']];
                 }
             }

+ 2 - 2
helper/refill/api/xyz/hongxudagy/config.php

@@ -6,9 +6,9 @@ namespace refill\hongxudagy;
 class config
 {
     const ORDER_URL = 'http://8.134.12.246:8090/recieverOrder';
-    const QUERY_URL= 'http://8.134.12.246:8090/queryOrder';
+    const QUERY_URL = 'http://8.134.12.246:8090/queryOrder';
 
-    const MER_ID= 'bjgyfl';
+    const MER_ID = 'bjgyfl';
     const KEY = '2b0c17cb64106110f53152fc5bf67896';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_hongxudagy.php";
     const PRICE = 0.992;

+ 7 - 3
helper/refill/api/xyz/hongxudayz/RefillPhone.php

@@ -83,7 +83,8 @@ class RefillPhone extends refill\IRefillPhone
             else
             {
                 $code = $resp['code'];
-                if (in_array($code, [100, 101, 102, 103, 888])) {
+                if (in_array($code, [100, 101, 102, 103, 888]))
+                {
                     $order_status = intval($resp['data']['order_status']);
                     if ($order_status === 0) {
                         $updata['official_sn'] = $resp['data']['cp_id'];
@@ -96,10 +97,13 @@ class RefillPhone extends refill\IRefillPhone
                     } else {
                         return [false, $resp['msg']];
                     }
+
                     return [true, $order_state];
-                } elseif ($code === 258 && (time() - $refill_info['commit_time'] >= 600)) {
+                }
+                elseif ($code === 258 && (time() - $refill_info['commit_time'] >= 600)) {
                     return [true, ORDER_STATE_NOEXIST];
-                } else {
+                }
+                else {
                     return [false, $resp['msg']];
                 }
             }

+ 2 - 2
helper/refill/api/xyz/hongxudayz/config.php

@@ -6,9 +6,9 @@ namespace refill\hongxudayz;
 class config
 {
     const ORDER_URL = 'http://8.134.12.246:8090/recieverOrder';
-    const QUERY_URL= 'http://8.134.12.246:8090/queryOrder';
+    const QUERY_URL = 'http://8.134.12.246:8090/queryOrder';
 
-    const MER_ID= 'yzhfcz';
+    const MER_ID = 'yzhfcz';
     const KEY = '05375eae5804db4515e1bd0ff0adfe10';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_hongxudayz.php";
     const PRICE = 0.992;

+ 0 - 1
helper/refill/policy/ctl_item.php

@@ -109,7 +109,6 @@ class ctl_item
 
     public function lazy_speed()
     {
-//        return $this->mLazySpeed;
         return $this->cur_speed();
     }