Browse Source

yl yunling yunlingfs

xiaoyu 3 years ago
parent
commit
932b98a08f

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

@@ -5292,11 +5292,11 @@ $phone_providers = [
 //    ['name' => 'xc', 'cfg' => $xc_phone],
 //    ['name' => 'xunyin', 'cfg' => $xunyin_phone],
 //    ['name' => 'wantong', 'cfg' => $wantong_phone],
-//    ['name' => 'yunling', 'cfg' => $yunling_phone],
+    ['name' => 'yunling', 'cfg' => $yunling_phone],
 //    ['name' => 'zhongst', 'cfg' => $zhongst_phone],
 //    ['name' => 'luqian', 'cfg' => $luqian_phone],
 //    ['name' => 'afandfs', 'cfg' => $afandfs_phone],
-//    ['name' => 'yunlingfs', 'cfg' => $yunlingfs_phone],
+    ['name' => 'yunlingfs', 'cfg' => $yunlingfs_phone],
 //    ['name' => 'tiancheng', 'cfg' => $tiancheng_phone],
 //    ['name' => 'xunao', 'cfg' => $xunao_phone],
 //    ['name' => 'weiyiman', 'cfg' => $weiyiman_phone],

+ 4 - 4
helper/refill/api/yl/yunlingfs/RefillPhone.php

@@ -18,10 +18,10 @@ class RefillPhone extends refill\IRefillPhone
     private function req_params(int $phone, int $card_type, int $amount, string $order_sn)
     {
         $params['userid'] = config::USER_ID;
-        if($card_type === mtopcard\ChinaTelecomCard) {
-            $params['productid'] = config::product_id[$card_type][$amount];
-        }else{
+        if($card_type === mtopcard\ChinaMobileCard) {
             $params['productid'] = '';
+        }else{
+            $params['productid'] = config::product_id[$card_type][$amount];
         }
         $params['price'] = $amount;
         $params['num'] = 1;
@@ -37,7 +37,7 @@ class RefillPhone extends refill\IRefillPhone
     {
         $order_sn = $params['order_sn'];
         $params = $this->req_params($card_no, $card_type, $amount, $order_sn);
-        if($card_type == mtopcard\ChinaTelecomCard && empty($params['productid'])) {
+        if($card_type != mtopcard\ChinaMobileCard && empty($params['productid'])) {
             return [false, '商品编号获取失败', false];
         }
         $sign = $this->sign($params);

+ 8 - 2
helper/refill/api/yl/yunlingfs/config.php

@@ -9,8 +9,8 @@ class config
     const ORDER_URL = 'http://121.89.243.74:9086/onlinepay.do';
     const QUERY_URL = 'http://121.89.243.74:9086/searchpay.do';
     const BALANCE_URL = 'http://121.89.243.74:9086/searchbalance.do';
-    const USER_ID = '10002543';
-    const KEY = 'c3SRnHJ7Bcj544MsdxY2mesADs33QGtz';
+    const USER_ID = '10003504';
+    const KEY = 'PTX3dypH7YXwmsZk3tXJKdpwaRrQ4K25';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/refill_yunlingfs.php";
     const operator = [
         mtopcard\ChinaMobileCard => 'yd',
@@ -18,6 +18,12 @@ class config
         mtopcard\ChinaTelecomCard => 'dx'
     ];
     const product_id = [
+        mtopcard\ChinaUnicomCard => [
+            30 => '30000000731',
+            50 => '30000000732',
+            100 => '30000000733',
+            200 => '30000000992'
+        ],
         mtopcard\ChinaTelecomCard => [
             30 => '30000000736',
             50 => '30000000737',

BIN
helper/refill/api/yl/yunlingfs/代理接口话费充值文档1.0.6(2020).doc


+ 0 - 9
helper/refill/api/yl/yunlingfs/北京椰子账户信息 (3.txt

@@ -1,9 +0,0 @@
-http://39.101.180.197:8178  代理系统
-登陆名:yezifs 
-ID:10073527
-秘钥:BA804D1914CFCDD19AB86EED110E0EF4
-密码:yezi131419
-
-余额查询接口:http://39.101.180.197:8177/soft/searchbalance.do
-充值请求接口:http://39.101.180.197:8177/soft/onlinepay.do
-订单查询接口:http://39.101.180.197:8177/soft/searchpay.do

+ 10 - 18
helper/refill/api/yl/yunlingfs/新系椰子分省通代理信息.txt

@@ -1,21 +1,13 @@
-代理平台:
-代理登录地址:http://121.89.243.74:7080/login.jsp
-登录账号:yezifs
-登录密码:yezi131419
+代理平台:
+浠g悊鐧诲綍鍦板潃锛歨ttp://121.89.243.74:7080/login.jsp
+登录账号:椰林分省
+鐧诲綍瀵嗙爜锛歽elin123456
 
 
 
-接口使用:
-用户编号(userid):10002543
-秘钥(key):c3SRnHJ7Bcj544MsdxY2mesADs33QGtz
-余额查询地址:http://121.89.243.74:9086/searchbalance.do
-接口充值地址:http://121.89.243.74:9086/onlinepay.do
-主动查单地址:http://121.89.243.74:9086/searchpay.do
-
-2022.2.26新增电信超面值
-30000000736   全国电信30元直充
-30000000737   全国电信50元直充
-30000000738   全国电信100元直充
-30000000739   全国电信200元直充
-30000000740   全国电信300元直充
-30000000741   全国电信500元直充
+接口使用:
+用户编号(userid):10003504
+绉橀挜(key)锛歅TX3dypH7YXwmsZk3tXJKdpwaRrQ4K25
+浣欓�鏌ヨ�鍦板潃锛歨ttp://121.89.243.74:9086/searchbalance.do
+鎺ュ彛鍏呭€煎湴鍧€锛歨ttp://121.89.243.74:9086/onlinepay.do
+涓诲姩鏌ュ崟鍦板潃锛歨ttp://121.89.243.74:9086/searchpay.do

+ 6 - 0
test/TestRefillYl.php

@@ -393,4 +393,10 @@ class TestRefillYl extends TestCase
         $provider = $this->getProvider('shuoruan');
         $resp = $provider->balance();
     }
+
+    public function testYunlingfs()
+    {
+        $provider = $this->getProvider('yunlingfs');
+        $resp = $provider->balance();
+    }
 }