stanley-king 3 tahun lalu
induk
melakukan
0a87046114
2 mengubah file dengan 14 tambahan dan 5 penghapusan
  1. 3 2
      helper/mtopcard/card_query.php
  2. 11 3
      test/TestCardNo.php

+ 3 - 2
helper/mtopcard/card_query.php

@@ -36,9 +36,9 @@ class card_query
             }
         };
 
-        // "status": 1 //状态 0:空号;1:实号;2:停机;3:库无;4:沉默号;5:风险号
         $status_converter = function ($code)
         {
+            // "status": 1 //状态 0:空号;1:实号;2:停机;3:库无;4:沉默号;5:风险号 6: 未知 7: 流量卡
             if($code === 1) {
                 return 1;
             } elseif($code === 2) {
@@ -341,6 +341,7 @@ class card_query
             $mod_card->replace_card($card_no,$card_type,$org_type,$region_no,$transfer,$status);
         };
 
+        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
         $validate = true;
         $black = 0;
 
@@ -363,7 +364,7 @@ class card_query
         {
             [$succ,$card_type,$region_no,$isTransfer,$status] = $this->tianyan_query($card_no);
             if($succ === false) {
-                return [];
+                return [true, $org_type, -1, false, 1];
             }
         }
 

File diff ditekan karena terlalu besar
+ 11 - 3
test/TestCardNo.php