Browse Source

guantu guantufs

xiaoyu 3 năm trước cách đây
mục cha
commit
e46cfcb51a

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

@@ -5425,7 +5425,7 @@ $phone_providers = [
 //    ['name' => 'lexiangyd', 'cfg' => $lexiangyd_phone],
 //    ['name' => 'lexianglt', 'cfg' => $lexianglt_phone],
 //    ['name' => 'lexiangdx', 'cfg' => $lexiangdx_phone],
-//    ['name' => 'guantu', 'cfg' => $guantu_phone],
+    ['name' => 'guantu', 'cfg' => $guantu_phone],
 //    ['name' => 'yiqian', 'cfg' => $yiqian_phone],
 //    ['name' => 'yinghuochong', 'cfg' => $yinghuochong_phone],
 //    ['name' => 'meixu', 'cfg' => $meixu_phone],
@@ -5435,7 +5435,7 @@ $phone_providers = [
 //    ['name' => 'baixuan', 'cfg' => $baixuan_phone],
 //    ['name' => 'baixuan_normal', 'cfg' => $baixuan_normal_phone],
 //    ['name' => 'cangbuyd', 'cfg' => $cangbuyd_phone],
-//    ['name' => 'guantufs', 'cfg' => $guantufs_phone],
+    ['name' => 'guantufs', 'cfg' => $guantufs_phone],
 //    ['name' => 'cangbu_high', 'cfg' => $cangbu_high_phone],
 //    ['name' => 'ruixunda', 'cfg' => $ruixunda_phone],
 //    ['name' => 'dashang_kami', 'cfg' => $dashang_kami_phone],

+ 2 - 4
helper/refill/api/yl/guantu/config.php

@@ -10,8 +10,8 @@ class config
     const QUERY_URL = 'http://8.142.121.158:8911/api/order/query';
     const BALANCE_URL = 'http://8.142.121.158:8911/api/account/balance';
 
-    const APP_ID = 'sprTIuIsst';
-    const APP_SECRET = 'xixZCAZjsMLjCjoR';
+    const APP_ID = 't7gmui2D3w';
+    const APP_SECRET = 'wDuesIDEmqheNPoC';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_guantu.php";
     const PRODUCT = [
         mtopcard\ChinaMobileCard => [
@@ -25,8 +25,6 @@ class config
             50  => 100010,
             100 => 100011,
             200 => 100012,
-            300 => 100096,
-            500 => 100097
         ],
         mtopcard\ChinaTelecomCard => [
             30  => 100013,

+ 6 - 5
helper/refill/api/yl/guantu/开户信息.txt

@@ -1,9 +1,10 @@
 后台地址:http://8.142.121.158:8888
-帐号:yz01
-密码:471350
-二级密码:uwFm1156
-appId:sprTIuIsst
-appSecret:xixZCAZjsMLjCjoR
+全国账号
+帐号:yl001
+密码:583175
+二级密码:EcOF1448
+appId:t7gmui2D3w
+appSecret:wDuesIDEmqheNPoC
 后台-商品列表,可查看已配置商品信息
 后台-安全中心,可配置IP白名单
 接口文档:https://www.showdoc.com.cn/1686453783298366/7925312871840290

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

@@ -10,8 +10,8 @@ class config
     const QUERY_URL = 'http://8.142.121.158:8911/api/order/query';
     const BALANCE_URL = 'http://8.142.121.158:8911/api/account/balance';
 
-    const APP_ID = '2ShLSBpImt';
-    const APP_SECRET = 'QjJeQUacifyTfKAy';
+    const APP_ID = 'ytQM4a4XO7';
+    const APP_SECRET = 'wzMwQdoWeyiETyMN';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_guantufs.php";
     const PRODUCT = [
         mtopcard\ChinaMobileCard => [

+ 5 - 5
helper/refill/api/yl/guantufs/开户信息.txt

@@ -1,9 +1,9 @@
 后台地址:http://8.142.121.158:8888
-帐号:yzfs01
-密码:905575
-二级密码:NBPo4834
-appId:2ShLSBpImt
-appSecret:QjJeQUacifyTfKAy
+帐号:ylfs001
+密码:529340
+二级密码:gtjJ8032
+appId:ytQM4a4XO7
+appSecret:wzMwQdoWeyiETyMN
 后台-商品列表,可查看已配置商品信息
 后台-安全中心,可配置IP白名单
 接口文档:https://www.showdoc.com.cn/1686453783298366/7925312871840290

+ 14 - 0
test/TestRefillYl.php

@@ -95,4 +95,18 @@ class TestRefillYl extends TestCase
 //        $ret = $provider->verify($params);
 //        $resp = $provider->notify($params);
     }
+
+    public function testGuantu()
+    {
+//        $provider = $this->getProvider('guantu');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '59041648111767968756']);
+
+        $body = ' {"orderId":"220324164934076577","appId":"t7gmui2D3w","outOrderId":"59041648111767968756","sign":"e957df33cfaa777cd3c2349cd2023996","orderStatus":"3","completeTime":"20220324165033","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('guantu','RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
 }