Browse Source

yl ruixunda hangtong

xiaoyu 3 years ago
parent
commit
76c77edc4b

+ 11 - 11
data/config/yl/refill.ini.php

@@ -2713,7 +2713,7 @@ $hangtong_phone = ['name' => 'hangtong', 'store_id' => 126,'qualitys' => '1',
 //            ['goods_id' => 7101, 'price' => 19, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom']
 //        ],
         30 => [
-            ['goods_id' => 7102, 'price' => 28.74, 'quality' => 1, 'card_type' => 'chinamobile'],
+//            ['goods_id' => 7102, 'price' => 28.74, 'quality' => 1, 'card_type' => 'chinamobile'],
             ['goods_id' => 7102, 'price' => 28.2, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7102, 'price' => 28.38, 'quality' => 1, 'card_type' => 'chinatelecom']
         ],
@@ -2732,14 +2732,14 @@ $hangtong_phone = ['name' => 'hangtong', 'store_id' => 126,'qualitys' => '1',
             ['goods_id' => 7105, 'price' => 188, 'quality' => 1, 'card_type' => 'chinaunicom'],
             ['goods_id' => 7105, 'price' => 189.2, 'quality' => 1, 'card_type' => 'chinatelecom']
         ],
-        300 => [
-            ['goods_id' => 7106, 'price' => 282, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7106, 'price' => 283.8, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ],
-        500 => [
-            ['goods_id' => 7107, 'price' => 470, 'quality' => 1, 'card_type' => 'chinaunicom'],
-            ['goods_id' => 7107, 'price' => 473, 'quality' => 1, 'card_type' => 'chinatelecom']
-        ]
+//        300 => [
+//            ['goods_id' => 7106, 'price' => 282, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7106, 'price' => 283.8, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ],
+//        500 => [
+//            ['goods_id' => 7107, 'price' => 470, 'quality' => 1, 'card_type' => 'chinaunicom'],
+//            ['goods_id' => 7107, 'price' => 473, 'quality' => 1, 'card_type' => 'chinatelecom']
+//        ]
     ],
     'refill_type' => 'api'];
 
@@ -5401,7 +5401,7 @@ $phone_providers = [
 //    ['name' => 'shimier', 'cfg' => $shimier_phone],
 //    ['name' => 'zhongst_mix', 'cfg' => $zhongst_mix_phone],
 //    ['name' => 'jinfeng', 'cfg' => $jinfeng_phone],
-//    ['name' => 'hangtong', 'cfg' => $hangtong_phone],
+    ['name' => 'hangtong', 'cfg' => $hangtong_phone],
 //    ['name' => 'dashang', 'cfg' => $dashang_phone],
 //    ['name' => 'yuanta', 'cfg' => $yuanta_phone],
 //    ['name' => 'menggu_hf', 'cfg' => $menggu_hf_phone],
@@ -5437,7 +5437,7 @@ $phone_providers = [
 //    ['name' => 'cangbuyd', 'cfg' => $cangbuyd_phone],
     ['name' => 'guantufs', 'cfg' => $guantufs_phone],
 //    ['name' => 'cangbu_high', 'cfg' => $cangbu_high_phone],
-//    ['name' => 'ruixunda', 'cfg' => $ruixunda_phone],
+    ['name' => 'ruixunda', 'cfg' => $ruixunda_phone],
 //    ['name' => 'dashang_kami', 'cfg' => $dashang_kami_phone],
     ['name' => 'yamiao_high', 'cfg' => $yamiao_high_phone],
 //    ['name' => 'yamiao_normal', 'cfg' => $yamiao_normal_phone],

+ 3 - 3
helper/refill/api/yl/hangtong/config.php

@@ -10,8 +10,8 @@ class config
     const QUERY_URL = 'http://47.108.161.207/flow-receiver/api/v2/query/single';
     const BALANCE_URL = 'http://47.108.161.207/flow-receiver/api/v2/balance/query';
     const NOTIFY_URL = BASE_SITE_URL . '/mobile/callback/refill_hangtong.php';
-    const ACCOUNT = 'yezi';
-    const KEY = '9074ca3652384ab2a9c7278842ec1147';
+    const ACCOUNT = 'yelin';
+    const KEY = '83077c1510db4e8ba7942a5bb50f57be';
     const operator = [
         mtopcard\ChinaMobileCard  => 'CMCC',
         mtopcard\ChinaUnicomCard  => 'CUCC',
@@ -22,7 +22,7 @@ class config
             30 => 'CMCCALLr30r', 50 => 'CMCCALLr50r', 100 => 'CMCCALLr100r', 200 => 'CMCCALLr200r'
         ],
         mtopcard\ChinaUnicomCard => [
-            30 => 'CUCCALLr30sP00000', 50 => 'CUCCALLr50sP00001', 100 => 'CUCCALLr100sP00002', 200 => 'CUCCALLr200sP00003'
+            30 => 'CUCCALLr30r', 50 => 'CUCCALLr50r', 100 => 'CUCCALLr100r', 200 => 'CUCCALLr200r'
         ],
         mtopcard\ChinaTelecomCard => [
             30 => 'CTCCALLr30r', 50 => 'CTCCALLr50r', 100 => 'CTCCALLr100r', 200 => 'CTCCALLr200r'

+ 15 - 23
helper/refill/api/yl/hangtong/椰子.txt

@@ -1,16 +1,15 @@
-账号	yezi
+账号 yelin
 密码	123456
-密钥	9074ca3652384ab2a9c7278842ec1147
+密钥 83077c1510db4e8ba7942a5bb50f57be
 
 
 下单地址
-http://47.109.31.191/flow-receiver/api/v2/recharge
+http://47.108.161.207/flow-receiver/api/v2/recharge
 查询地址
-http://47.109.31.191/flow-receiver/api/v2/query/single
+http://47.108.161.207/flow-receiver/api/v2/query/single
 余额查询地址
-http://47.109.31.191/flow-receiver/api/v2/balance/query
+http://47.108.161.207/flow-receiver/api/v2/balance/query
 
-原IP:47.109.31.191换成47.108.161.207
 
 移动快充产品编码		面值
 CMCCALLr30r				30
@@ -19,22 +18,15 @@ CMCCALLr100r			100
 CMCCALLr200r			200
 
 
-联通快充产品编码		面值
-CUCCALLr30r				30
-CUCCALLr50r				50
-CUCCALLr100r			100
-CUCCALLr200r			200
+联通快充产品编码       面值
+CUCCALLr30r             30
+CUCCALLr50r             50
+CUCCALLr100r            100
+CUCCALLr200r            200
 
 
-电信快充产品编码		面值
-CTCCALLr30r				30
-CTCCALLr50r				50
-CTCCALLr100r			100
-CTCCALLr200r			200
-
-2022.3.2修改联调编码
-联通溢面产品编码		面值
-CUCCALLr30sP00000		30
-CUCCALLr50sP00001		50
-CUCCALLr100sP00002		100
-CUCCALLr200sP00003		200
+电信快充产品编码  面值
+CTCCALLr30r    30
+CTCCALLr50r    50
+CTCCALLr100r   100
+CTCCALLr200r   200

+ 6 - 6
helper/refill/api/yl/ruixunda/config.php

@@ -10,15 +10,15 @@ class config
     const QUERY_URL = 'http://120.76.172.131:8911/api/order/query';
     const BALANCE_URL = 'http://120.76.172.131:8911/api/account/balance';
 
-    const APP_ID = 'kU6tn6YMjx';
-    const APP_SECRET = 'UTzLpEOYVTPcCmwW';
+    const APP_ID = 'IvpY5p7PF2';
+    const APP_SECRET = 'uptqPXHeSAqUeqpV';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_ruixunda.php";
     const PRODUCT = [
         mtopcard\ChinaMobileCard => [
-//            30  => 100116,
-//            50  => 100117,
-//            100 => 100118,
-//            200 => 100119,
+            30  => 100116,
+            50  => 100117,
+            100 => 100118,
+            200 => 100119,
         ],
         mtopcard\ChinaUnicomCard => [
             30  => 100007,

+ 19 - 0
helper/refill/api/yl/ruixunda/商品编码.txt

@@ -0,0 +1,19 @@
+全国移动30     100001                11省移动30    100116
+全国移动50      100002                11省移动50    100117
+全国移动100     100003                11省移动100   100118
+全国移动200    100004                 11省移动200   100119
+全国移动300    100005
+全国移动500    100006
+
+全国联通30     100007
+全国联通50     100008
+全国联通100    100009
+全国联通200    100010
+全国联通300    100011
+全国联通500    100012
+
+全国电信30     100013            移动分省30      100018
+全国电信50     100014            移动分省50      100019
+全国电信100    100015            移动分省100     100020
+全国电信200    100016           移动分省200     100021
+全国电信300    100017            移动分省300     100022

+ 6 - 13
helper/refill/api/yl/ruixunda/开户信息.txt

@@ -1,9 +1,9 @@
 后台地址:http://120.76.172.131:8888
-帐号:bjyz
-密码:072751
-二级密码:IwZY0888
-appId:kU6tn6YMjx
-appSecret:UTzLpEOYVTPcCmwW
+帐号:yelin1
+密码:108967
+二级密码:bRyE7438
+appId:IvpY5p7PF2
+appSecret:uptqPXHeSAqUeqpV
 后台-商品列表,可查看已配置商品信息
 后台-安全中心,可配置IP白名单
 接口文档:https://www.showdoc.com.cn/1686453783298366/7925312871840290
@@ -11,11 +11,4 @@ appSecret:UTzLpEOYVTPcCmwW
 通用直充接口:http://120.76.172.131:8911/api/order/submit
 卡密提取接口:http://120.76.172.131:8911/api/card/get
 查单接口接口:http://120.76.172.131:8911/api/order/query
-余额接口接口:http://120.76.172.131:8911/api/account/balance
-
-2022.2.27 更改 移动编码
-超面值移动编码
-30        100116
-50        100117
-100      100118
-200      100119
+余额接口接口:http://120.76.172.131:8911/api/account/balance

BIN
helper/refill/api/yl/ruixunda/瑞讯达商品代码.docx


+ 28 - 0
test/TestRefillYl.php

@@ -179,4 +179,32 @@ class TestRefillYl extends TestCase
 //        $ret = $provider->verify($params);
 //        $data = $provider->notify($params);
     }
+
+    public function testRuixunda()
+    {
+//        $provider = $this->getProvider('ruixunda');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '33231648458371654420']);
+
+        $body = '{"orderId":"220328170618202120","appId":"IvpY5p7PF2","outOrderId":"33231648458371654420","sign":"c28dda0d82efac178933e34465c6bf10","orderStatus":"3","completeTime":"20220328170623","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('ruixunda', 'RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
+
+    public function testHangtong()
+    {
+//        $provider = $this->getProvider('hangtong');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '74101648459089504352']);
+
+        $body = '{"phone":"18500608333","orderNo":"F2203281718158019474","status":"fail","otherNo":"74101648459089504352","msg":"提交/充值失败","ext":null}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('hangtong', 'RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
 }