Parcourir la source

lingzhman 150 170 171 intercept guochuang 辽宁移动调价 10-500 978

haru haru il y a 3 ans
Parent
commit
a4626cf724

helper/refill/api/xyz/guochuang/52dadc8502ba52d77a074a571063b7c.png → helper/refill/api/xyz/guochuang/20211225广东调价函.png


BIN
helper/refill/api/xyz/guochuang/20220212辽宁移动调价函.png


+ 1 - 1
helper/refill/api/xyz/guochuang/config.php

@@ -64,7 +64,7 @@ class config
     const Price = [
         //移动
         "4-10-2" => 9.99, "4-20-2" => 19.98, "4-30-2" => 29.895, "4-50-2" => 49.825, "4-100-2" => 99.65, "4-200-2" => 199.3, "4-300-2" => 298.95, "4-500-2" => 498.25,//天津 2
-        "4-10-6" => 9.8, "4-20-6" => 19.6, "4-30-6" => 29.4, "4-50-6" => 49, "4-100-6" => 98, "4-200-6" => 196, "4-300-6" => 294, "4-500-6" => 490,//辽宁 6
+        "4-10-6" => 9.78, "4-20-6" => 19.56, "4-30-6" => 29.34, "4-50-6" => 48.9, "4-100-6" => 97.8, "4-200-6" => 195.6, "4-300-6" => 293.4, "4-500-6" => 489,//辽宁 6
         "4-10-9" => 9.94, "4-20-9" => 19.88, "4-30-9" => 29.82, "4-50-9" => 49.7, "4-100-9" => 99.4,//上海 9
         "4-10-8" => 10.01, "4-20-8" => 20.02, "4-30-8" => 30.03, "4-50-8" => 50.05, "4-100-8" => 100.1, "4-200-8" => 200.2, "4-300-8" => 300.3, "4-500-8" => 500.5,//黑龙江 8
         "4-10-29" => 9.82, "4-20-29" => 19.64, "4-30-29" => 29.46, "4-50-29" => 49.1, "4-100-29" => 98.2, "4-200-29" => 196.4, "4-300-29" => 294.6, "4-500-29" => 491,//青海 29

+ 10 - 1
helper/refill/api/xyz/lingzhman/RefillPhone.php

@@ -33,12 +33,21 @@ class RefillPhone extends refill\IRefillPhone
         return $isTransfer;
     }
 
+    private function card_no_none_support($card_no)
+    {
+        $no = substr($card_no, 0, 3);
+        if(in_array($no,[150, 170, 171])) return true;
+        return false;
+    }
+
     public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
     {
         if($this->none_support($card_no)) {
             return [false, '不支持转网', false];
         }
-
+        if($this->card_no_none_support($card_no)) {
+            return [false, '不支持虚拟号段', false];
+        }
         $params = $this->req_params($card_no, $params['order_sn']);
         $params['flowCode'] = config::ProductIDS[$card_type][$amount];
         if (empty($params['flowCode'])) {