Bläddra i källkod

yl youhenew‘

xiaoyu 3 år sedan
förälder
incheckning
1e9108a090

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

@@ -5446,7 +5446,7 @@ $phone_providers = [
 //    ['name' => 'jiyemei', 'cfg' => $jiyemei_phone],
 //    ['name' => 'baixuannew_high', 'cfg' => $baixuannew_high_phone],
 //    ['name' => 'baixuannew_normal', 'cfg' => $baixuannew_normal_phone],
-//    ['name' => 'youhenew', 'cfg' => $youhenew_phone],
+    ['name' => 'youhenew', 'cfg' => $youhenew_phone],
 //    ['name' => 'huoshenguo', 'cfg' => $huoshenguo_phone],
 //    ['name' => 'huoshenguo_high', 'cfg' => $huoshenguo_high_phone],
 //    ['name' => 'chizeng_normal', 'cfg' => $chizeng_normal_phone],
@@ -5470,7 +5470,7 @@ $phone_providers = [
 //    ['name' => 'ruixundaman', 'cfg' => $ruixundaman_phone],
 //    ['name' => 'ruizhi_tax', 'cfg' => $ruizhi_tax_phone],
 //    ['name' => 'pengxinda', 'cfg' => $pengxinda_phone],
-//    ['name' => 'huazhong', 'cfg' => $huazhong_phone],
+    ['name' => 'huazhong', 'cfg' => $huazhong_phone],
     ['name' => 'yamiaoman', 'cfg' => $yamiaoman_phone],
 //    ['name' => 'kailinyu', 'cfg' => $kailinyu_phone],
 //    ['name' => 'kuaikuaifs', 'cfg' => $kuaikuaifs_phone],

+ 4 - 4
helper/refill/api/yl/youhenew/account.txt

@@ -1,5 +1,5 @@
-API id :200038
-API 密钥:9e1e8df50a0d4d3abba6f05a82793333
+API id :200039
+API 密钥:c607ecc2cfaf4182b514e74875f6a212
 
 接口IP:118.31.168.250
 
@@ -9,5 +9,5 @@ API 密钥:9e1e8df50a0d4d3abba6f05a82793333
 
 
 登陆地址:http://118.31.168.250:10186/plat/index
-账号:yezinew
-密码:4oM!cNDmIv95Drph
+账号:yelin
+密码:juC7^ZM6jQ8D#bSI

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

@@ -10,8 +10,8 @@ class config
     const QUERY_URL= 'http://118.31.168.250:10186/plat/api/old/queryorder';
     const BALANCE_URL = 'http://118.31.168.250:10186/plat/api/old/queryBalance';
 
-    const USER_ID= '200038';
-    const KEY = '9e1e8df50a0d4d3abba6f05a82793333';
+    const USER_ID= '200039';
+    const KEY = 'c607ecc2cfaf4182b514e74875f6a212';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_youhenew.php";
     const operator = [
         mtopcard\ChinaMobileCard  => 1,

+ 14 - 0
test/TestRefillYl.php

@@ -151,4 +151,18 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $resp = $provider->notify($params);
     }
+
+    public function testYouhenew()
+    {
+//        $provider = $this->getProvider('youhenew');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(13699279618, 4, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '24941648452249459365']);
+
+        $body = ' {"szOrderId":"24941648452249459365","fSalePrice":"28.74","szAgentId":"200039","nFlag":"3","szVerifyString":"57fa9c6232850f75841bee763d479dca","szPhoneNum":"13699279618","szRtnMsg":"","nDemo":"30"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('youhenew', 'RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
 }