Bläddra i källkod

lingzhman48 api update

haru haru 3 år sedan
förälder
incheckning
4ee263def6

+ 10 - 10
data/config/xyz/refill.ini.php

@@ -1490,16 +1490,16 @@ $qijutang_phone = ['name' => 'qijutang', 'store_id' => 75, 'qualitys' => '1',
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 
-$lingzhman48_phone = ['name' => 'lingzhman48', 'store_id' => 76, 'qualitys' => '8',
-    'amount' => [
-        10 => [['goods_id' => 6732, 'price' => 8.95, 'quality' => 8, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        20 => [['goods_id' => 6733, 'price' => 17.9, 'quality' => 8, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        30 => [['goods_id' => 6734, 'price' => 26.85, 'quality' => 8, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        50 => [['goods_id' => 6735, 'price' => 44.75, 'quality' => 8, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        100 => [['goods_id' => 6736, 'price' => 89.5, 'quality' => 8, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        200 => [['goods_id' => 6737, 'price' => 179, 'quality' => 8, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        300 => [['goods_id' => 6738, 'price' => 268.5, 'quality' => 8, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        500 => [['goods_id' => 6739, 'price' => 447.5, 'quality' => 8, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']]
+$lingzhman48_phone = ['name' => 'lingzhman48', 'store_id' => 76, 'qualitys' => '5',
+    'amount' => [
+        10 => [['goods_id' => 6732, 'price' => 9.3, 'quality' => 5, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        20 => [['goods_id' => 6733, 'price' => 18.6, 'quality' => 5, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        30 => [['goods_id' => 6734, 'price' => 27.9, 'quality' => 5, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        50 => [['goods_id' => 6735, 'price' => 46.5, 'quality' => 5, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        100 => [['goods_id' => 6736, 'price' => 93, 'quality' => 5, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        200 => [['goods_id' => 6737, 'price' => 186, 'quality' => 5, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        300 => [['goods_id' => 6738, 'price' => 279, 'quality' => 5, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        500 => [['goods_id' => 6739, 'price' => 465, 'quality' => 5, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 

+ 12 - 7
helper/refill/api/xyz/lingzhman48/config.php

@@ -6,23 +6,28 @@ use mtopcard;
 
 class config
 {
-    //895
-    const ORDER_URL = 'http://47.99.65.204/flow-receiver/fee/recharge';
-    const QUERY_URL = 'http://47.99.65.204/flow-receiver/fee/query/single';
-    const BALANCE_URL = 'http://47.99.65.204/flow-receiver/fee/balance/query';
+    const ORDER_URL = 'http://47.108.202.150/flow-receiver/fee/recharge';
+    const QUERY_URL = 'http://47.108.202.150/flow-receiver/fee/query/single';
+    const BALANCE_URL = 'http://47.108.202.150/flow-receiver/fee/balance/query';
     const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_lingzhman48.php'; //需联系上游配置
     const ACCOUNT = 'yz1988';
     const KEY = '30ba2a10cdb9464fac671c3e4c0cfb97';
 
     const ProductIDS = [
         mtopcard\ChinaMobileCard  => [
-            50 => 'CMCCALLn50r', 100 => 'CMCCALLn100r', 200 => 'CMCCALLn200r'
+            10 => 'CMCCALLr10r', 20 => 'CMCCALLr20r', 30 => 'CMCCALLr30r',
+            50 => 'CMCCALLr50r', 100 => 'CMCCALLr100r', 200 => 'CMCCALLr200r',
+            300 => 'CMCCALLr300r', 500 => 'CMCCALLr500r'
         ],
         mtopcard\ChinaUnicomCard  => [
-            50 => 'CUCCALLn50r', 100 => 'CUCCALLn100r', 200 => 'CUCCALLn200r'
+            10 => 'CUCCALLr10r', 20 => 'CUCCALLr20r', 30 => 'CUCCALLr30r',
+            50 => 'CUCCALLr50r', 100 => 'CUCCALLr100r', 200 => 'CUCCALLr200r',
+            300 => 'CUCCALLr300r', 500 => 'CUCCALLr500r'
         ],
         mtopcard\ChinaTelecomCard => [
-            50 => 'CTCCALLn50r', 100 => 'CTCCALLn100r', 200 => 'CTCCALLn200r'
+            10 => 'CTCCALLr10r', 20 => 'CTCCALLr20r', 30 => 'CTCCALLr30r',
+            50 => 'CTCCALLr50r', 100 => 'CTCCALLr100r', 200 => 'CTCCALLr200r',
+            300 => 'CTCCALLr300r', 500 => 'CTCCALLr500r'
         ]
     ];
 

+ 44 - 34
helper/refill/api/xyz/lingzhman48/椰子慢充.txt

@@ -1,34 +1,44 @@
-http://47.99.65.204/flow-consumer/login.html
-梖瘍	yz1988
-躇鎢	yz1988
-躇埥	30ba2a10cdb9464fac671c3e4c0cfb97
-
-
-
-
-狟等華硊
-http://47.99.65.204/flow-receiver/fee/recharge
-蠶講脤戙華硊
-http://47.99.65.204/flow-receiver/fee/query
-等跺脤戙華硊
-http://47.99.65.204/flow-receiver/fee/query/single
-豻塗脤戙華硊
-http://47.99.65.204/flow-receiver/fee/balance/query
-
-
-痄雄鞣喃莉ⅲ晤鎢		醱硉
-CMCCALLn50r				50	
-CMCCALLn100r			100	
-CMCCALLn200r			200
-
-
-薊籵鞣喃莉ⅲ晤鎢		醱硉
-CUCCALLn50r				50	
-CUCCALLn100r			100
-CUCCALLn200r			200
-
-
-萇陓鞣喃莉ⅲ晤鎢		醱硉
-CTCCALLn50r				50
-CTCCALLn100r			100
-CTCCALLn200r			200
+http://47.108.202.150/flow-consumer/login.html
+韐血噡	yz1988
+密码	yz1988
+撖�𤨎	30ba2a10cdb9464fac671c3e4c0cfb97
+
+
+
+下单地址
+http://47.108.202.150/flow-receiver/fee/recharge
+查询地址
+http://47.108.202.150/flow-receiver/fee/query/single
+余额查询地址
+http://47.108.202.150/flow-receiver/fee/balance/query
+
+全国移动产品编码				面值(元)
+CMCCALLr10r						10
+CMCCALLr20r						20
+CMCCALLr30r						30
+CMCCALLr50r						50
+CMCCALLr100r					100
+CMCCALLr200r					200
+CMCCALLr300r					300
+CMCCALLr500r					500
+
+
+全国联通产品编码				面值(元)
+CUCCALLr10r						10
+CUCCALLr20r						20
+CUCCALLr30r						30
+CUCCALLr50r						50
+CUCCALLr100r					100
+CUCCALLr200r					200
+CUCCALLr300r					300
+CUCCALLr500r					500
+
+全国电信产品编码				面值(元)
+CTCCALLr10r						10
+CTCCALLr20r						20
+CTCCALLr30r						30
+CTCCALLr50r						50
+CTCCALLr100r					100
+CTCCALLr200r					200
+CTCCALLr300r					300
+CTCCALLr500r					500

+ 10 - 6
test/TestRefill.php

@@ -518,12 +518,16 @@ class TestRefill extends TestCase
 
     public function testLingzhman48Phone()
     {
-        $provider = new refill\lingzhman48\RefillPhone([]);
-//        $resp = $provider->add(18500608333, 5, 50, ['order_sn' => $this->make_sn()]);
-//        $resp = $provider->query(['order_sn' => '49951625814151937287']);
-        $data = '{"orderNo":"F2107091503134670764","status":"020","consumerNo":"49951625814151937287","voucherNo":null,"mobile":"18500608333"}';
-        $params = json_decode($data, true);
-        refill\RefillFactory::instance()->notify('lingzhman48', $params);
+//        $provider = $this->getProvider('lingzhman48');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 100, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '39991649558290585085']);
+
+        $body = '{"orderNo":"F2204101038212358481","status":"019","consumerNo":"39991649558290585085","voucherNo":null,"mobile":"18500608333"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('lingzhman48', 'RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
     }
 
     public function testcangbuPhone()