Parcourir la source

cangxin dx update fs_code

xiaoyu il y a 2 ans
Parent
commit
2f4a7418d4

+ 2 - 1
admin/control/provider_province_cfg.php

@@ -89,7 +89,8 @@ class provider_province_cfgControl extends SystemControl
                 'guochuang'
             ],
             mtopcard\ChinaTelecomCard => [
-                'guochuang'
+                'guochuang',
+                'cangxin'
             ]
         ];
 

+ 2 - 0
helper/refill/api/xyz/cangxin/RefillPhone.php

@@ -22,6 +22,8 @@ class RefillPhone extends refill\IRefillPhone
         $params['account'] = $phone;
         if ($card_type === mtopcard\ChinaMobileCard) {
             $params['skuCode'] = config::CMCC_product_code[$regin_no][$amount];
+        } elseif ($card_type === mtopcard\ChinaTelecomCard){
+            $params['skuCode'] = config::CTCC_product_code[$regin_no][$amount];
         } else {
             $params['skuCode'] = config::PRODUCT[$card_type][$amount];
         }

+ 12 - 0
helper/refill/api/xyz/cangxin/config.php

@@ -65,5 +65,17 @@ class config
             50 => 'scyd50', 100 => 'scyd100', 200 => 'scyd200'
         ], //四川
     ];
+
+    const CTCC_product_code = [
+        23 => [
+            30 => 'scdx30', 50 => 'scdx50', 100 => 'scdx100', 200 => 'scdx200'
+        ], //四川
+        9 => [
+            30 => '2060030', 50 => '2060050', 100 => '20600100', 200 => '20600200'
+        ], //上海
+        2 => [
+            30 => '2150030', 50 => '2150050', 100 => '21500100', 200 => '21500200'
+        ], //天津
+    ];
     const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
 }

+ 23 - 1
helper/refill/api/xyz/cangxin/开户信息.txt

@@ -70,4 +70,26 @@ hbyd200
 四川移动50-200
 scyd50
 scyd100
-scyd200
+scyd200
+
+2022.12.19
+ 沧兴 电信分省 价格942
+
+电信四川
+scdx30
+scdx50
+scdx100
+scdx200
+
+电信上海
+2060030
+2060050
+20600100
+20600200
+
+
+电信天津
+2150030
+2150050
+21500100
+21500200

+ 2 - 0
helper/refill/api/yl/cangxin/RefillPhone.php

@@ -22,6 +22,8 @@ class RefillPhone extends refill\IRefillPhone
         $params['account'] = $phone;
         if ($card_type === mtopcard\ChinaMobileCard) {
             $params['skuCode'] = config::CMCC_product_code[$regin_no][$amount];
+        } elseif ($card_type === mtopcard\ChinaTelecomCard){
+            $params['skuCode'] = config::CTCC_product_code[$regin_no][$amount];
         } else {
             $params['skuCode'] = config::PRODUCT[$card_type][$amount];
         }

+ 12 - 0
helper/refill/api/yl/cangxin/config.php

@@ -65,5 +65,17 @@ class config
             50 => 'scyd50', 100 => 'scyd100', 200 => 'scyd200'
         ], //四川
     ];
+
+    const CTCC_product_code = [
+        23 => [
+            30 => 'scdx30', 50 => 'scdx50', 100 => 'scdx100', 200 => 'scdx200'
+        ], //四川
+        9 => [
+            30 => '2060030', 50 => '2060050', 100 => '20600100', 200 => '20600200'
+        ], //上海
+        2 => [
+            30 => '2150030', 50 => '2150050', 100 => '21500100', 200 => '21500200'
+        ], //天津
+    ];
     const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
 }