xiaoyu hace 3 años
padre
commit
25a62fde9f

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

@@ -5459,7 +5459,7 @@ $phone_providers = [
 //    ['name' => 'ruierxun', 'cfg' => $ruierxun_phone],
 //    ['name' => 'ningying', 'cfg' => $ningying_phone],
 //    ['name' => 'cangxin_yi', 'cfg' => $cangxin_yi_phone],
-//    ['name' => 'zhenghe', 'cfg' => $zhenghe_phone],
+    ['name' => 'zhenghe', 'cfg' => $zhenghe_phone],
 //    ['name' => 'lexiang', 'cfg' => $lexiang_phone],
 //    ['name' => 'kuaikuai', 'cfg' => $kuaikuai_phone],
 //    ['name' => 'jianjiao', 'cfg' => $jianjiao_phone],

+ 3 - 3
helper/refill/api/yl/zhenghe/api.txt

@@ -1,11 +1,11 @@
 后台参数
 客户地址:http://47.98.208.128:10186/plat/index
-账号:gyhb
+账号:ylwl
 密码:123456
 
 对接参数
-ID:200032
-秘钥:6beadbdac55845e580dd4e363c839b14
+ID:200042
+秘钥:b68c7cef72bc4a6582715196b18e499f
 
 正式环境:
 话费下单地址:http://47.98.208.128:10186/plat/api/old/submitorder

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

@@ -10,8 +10,8 @@ class config
     const QUERY_URL= 'http://47.98.208.128:10186/plat/api/old/queryorder';
     const BALANCE_URL = 'http://47.98.208.128:10186/plat/api/old/queryBalance';
 
-    const USER_ID= '200032';
-    const KEY = '6beadbdac55845e580dd4e363c839b14';
+    const USER_ID= '200042';
+    const KEY = 'b68c7cef72bc4a6582715196b18e499f';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_zhenghe.php";
     const operator = [
         mtopcard\ChinaMobileCard  => 1,

+ 14 - 0
test/TestRefillYl.php

@@ -319,4 +319,18 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $resp = $provider->notify($params);
     }
+
+    public function testZhenghe()
+    {
+//        $provider = $this->getProvider('zhenghe');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '54051648695406464004']);
+
+        $body = '{"szOrderId":"54051648695406464004","fSalePrice":"30.0","szAgentId":"200042","nFlag":"3","szVerifyString":"be8816cd62ad8a36334498ea12b6c86d","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('zhenghe','RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
 }