Kaynağa Gözat

yl huoshenguo

xiaoyu 3 yıl önce
ebeveyn
işleme
f39f973af1

+ 8 - 6
helper/refill/api/yl/huoshenguo/config.php

@@ -10,8 +10,8 @@ class config
     const QUERY_URL = 'http://120.26.89.236:8911/api/order/query';
     const BALANCE_URL = 'http://120.26.89.236:8911/api/account/balance';
 
-    const APP_ID = 'xaPOF8SAEG';
-    const APP_SECRET = 'JKMrdDVUHUwJZIDV';
+    const APP_ID = '38mGJE1bA5';
+    const APP_SECRET = 'gesSELbHxIcoZbMn';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_huoshenguo.php";
     const PRODUCT = [
         mtopcard\ChinaMobileCard => [
@@ -23,10 +23,12 @@ class config
             500 => 100039,
         ],
         mtopcard\ChinaUnicomCard => [
-            30  => 100105,
-            50  => 100106,
-            100 => 100107,
-            200 => 100108,
+            30  => 100094,
+            50  => 100095,
+            100 => 100096,
+            200 => 100097,
+            300 => 100046,
+            500 => 100047,
         ],
         mtopcard\ChinaTelecomCard => [
             30  => 100012,

+ 6 - 39
helper/refill/api/yl/huoshenguo/开户信息.txt

@@ -1,9 +1,9 @@
 后台地址:http://120.26.89.236:8888
-帐号:yezi
-密码:591023
-二级密码:TLEt4898
-appId:xaPOF8SAEG
-appSecret:JKMrdDVUHUwJZIDV
+帐号:YL
+密码:695073
+二级密码:ShPe4277
+appId:38mGJE1bA5
+appSecret:gesSELbHxIcoZbMn
 后台-商品列表,可查看已配置商品信息
 后台-安全中心,可配置IP白名单
 接口文档:https://www.showdoc.com.cn/1686453783298366/7925312871840290
@@ -11,37 +11,4 @@ appSecret:JKMrdDVUHUwJZIDV
 通用直充接口:http://120.26.89.236:8911/api/order/submit
 卡密提取接口:http://120.26.89.236:8911/api/card/get
 查单接口接口:http://120.26.89.236:8911/api/order/query
-余额接口接口:http://120.26.89.236:8911/api/account/balance
-
-
-100001	移动30
-100002	移动50
-100003	移动100
-100004	移动200
-100038	移动300
-100039	移动500
-
-100012	电信30
-100010	电信50
-100011	电信100
-100017	电信200
-100048	电信300
-100049	电信500
-
-100034	联通30
-100035	联通50
-100036	联通100
-100037	联通200
-100046	联通300
-100047	联通500
-
-100062	高价联通30
-100063	高价联通50
-100064	高价联通100
-100065	高价联通200
-
-2022.3.9修改联通编码
-100105 电渠联通(快充)30
-100106 电渠联通(快充)50
-100107 电渠联通(快充)100
-100108 电渠联通(快充)200
+余额接口接口:http://120.26.89.236:8911/api/account/balance

+ 14 - 0
test/TestRefillYl.php

@@ -361,4 +361,18 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $resp = $provider->notify($params);
     }
+
+    public function testHuoshenguo()
+    {
+        $provider = $this->getProvider('huoshenguo');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
+        $resp = $provider->query(['order_sn' => '31891648711311837528']);
+
+//        $body = '{"orderId":"220113125625000016","appId":"xaPOF8SAEG","outOrderId":"90691642049771400349","sign":"b00285a7eabef29b0a0ad400ce8a3ea0","orderStatus":"3","completeTime":"20220113125843","orderDesc":"\u8ba2\u5355\u5931\u8d25"}';
+//        $params = json_decode($body, true);
+//        $provider = $this->getProvider('huoshenguo', 'RefillCallBack');
+//        $ret = $provider->verify($params);
+//        $resp = $provider->notify($params);
+    }
 }