Browse Source

yl yuanta

xiaoyu 3 years ago
parent
commit
3c338fb64b

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

@@ -5373,7 +5373,7 @@ $phone_providers = [
     ['name' => 'jinfeng', 'cfg' => $jinfeng_phone],
     ['name' => 'hangtong', 'cfg' => $hangtong_phone],
 //    ['name' => 'dashang', 'cfg' => $dashang_phone],
-//    ['name' => 'yuanta', 'cfg' => $yuanta_phone],
+    ['name' => 'yuanta', 'cfg' => $yuanta_phone],
 //    ['name' => 'menggu_hf', 'cfg' => $menggu_hf_phone],
 //    ['name' => 'duojing', 'cfg' => $duojing_phone],
     ['name' => 'chizeng', 'cfg' => $chizeng_phone],

+ 6 - 10
helper/refill/api/yl/yuanta/api.txt

@@ -1,17 +1,13 @@
 后台地址:http://59.110.225.82:8888
-帐号:yezi
-密码:377274
-二级密码:yIOp3278
-appId:Uar9JIo4Zz
-appSecret:qXRRTTqrtAwwwtXp
+帐号:yelin
+密码:161257
+二级密码:PImr8679
+appId:4hN2nZgRit
+appSecret:bduMNryfJoWNkKaZ
 后台-商品列表,可查看已配置商品信息
 后台-安全中心,可配置IP白名单
 接口文档:https://www.showdoc.com.cn/1686453783298366/7925312871840290
 下单接口地址:http://59.110.225.82:8911/api/hf/order/submit
 查单接口地址:http://59.110.225.82:8911/api/order/query
 余额接口地址:http://59.110.225.82:8911/api/account/balance
-提卡接口地址:http://59.110.225.82:8911/api/card/get
-
-2022.3.14 增加电信商品编码
-100 面值    商品编码  100046
-200                 100047
+提卡接口地址:http://59.110.225.82:8911/api/card/get

+ 2 - 2
helper/refill/api/yl/yuanta/config.php

@@ -10,8 +10,8 @@ class config
     const QUERY_URL = 'http://59.110.225.82:8911/api/order/query';
     const BALANCE_URL = 'http://59.110.225.82:8911/api/account/balance';
 
-    const APP_ID = 'Uar9JIo4Zz';
-    const APP_SECRET = 'qXRRTTqrtAwwwtXp';
+    const APP_ID = '4hN2nZgRit';
+    const APP_SECRET = 'bduMNryfJoWNkKaZ';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yuanta.php";
     const PRODUCT = [
         mtopcard\ChinaMobileCard => [

+ 6 - 0
test/TestRefillYl.php

@@ -555,4 +555,10 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $data = $provider->notify($params);
     }
+
+    public function testYuanta()
+    {
+        $provider = $this->getProvider('yuanta');
+        $resp = $provider->balance();
+    }
 }