瀏覽代碼

yl cangxin_high chizeng chizeng_normal

xiaoyu 3 年之前
父節點
當前提交
112bfa3812

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

@@ -5406,7 +5406,7 @@ $phone_providers = [
 //    ['name' => 'yuanta', 'cfg' => $yuanta_phone],
 //    ['name' => 'menggu_hf', 'cfg' => $menggu_hf_phone],
 //    ['name' => 'duojing', 'cfg' => $duojing_phone],
-//    ['name' => 'chizeng', 'cfg' => $chizeng_phone],
+    ['name' => 'chizeng', 'cfg' => $chizeng_phone],
 //    ['name' => 'jinxin', 'cfg' => $jinxin_phone],
 //    ['name' => 'kachong', 'cfg' => $kachong_phone],
 //    ['name' => 'xingzy_normal', 'cfg' => $xingzy_normal_phone],
@@ -5442,14 +5442,14 @@ $phone_providers = [
     ['name' => 'yamiao_high', 'cfg' => $yamiao_high_phone],
 //    ['name' => 'yamiao_normal', 'cfg' => $yamiao_normal_phone],
     ['name' => 'cangxin', 'cfg' => $cangxin_phone],
-//    ['name' => 'cangxin_high', 'cfg' => $cangxin_high_phone],
+    ['name' => 'cangxin_high', 'cfg' => $cangxin_high_phone],
 //    ['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' => 'huoshenguo', 'cfg' => $huoshenguo_phone],
 //    ['name' => 'huoshenguo_high', 'cfg' => $huoshenguo_high_phone],
-//    ['name' => 'chizeng_normal', 'cfg' => $chizeng_normal_phone],
+    ['name' => 'chizeng_normal', 'cfg' => $chizeng_normal_phone],
     ['name' => 'xinhengyangnew', 'cfg' => $xinhengyangnew_phone],
 //    ['name' => 'tianchen', 'cfg' => $tianchen_phone],
 //    ['name' => 'yunchonggong_lt', 'cfg' => $yunchonggong_lt_phone],

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

@@ -10,8 +10,8 @@ class config
     const QUERY_URL = 'http://47.98.184.74:9527/order/query';
     const BALANCE_URL = 'http://47.98.184.74:9527/order/balance';
 
-    const clientId = '10020';
-    const Key = 'DUAhOAfjyHwEK2x4tuWRfaKsq6QwY8s1';
+    const clientId = '10047';
+    const Key = 'a9ghNylQM24iYl2Mh59DrzpLch5ct28V';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_cangxin_high.php";
     const PRODUCT = [
         mtopcard\ChinaMobileCard => [

+ 2 - 2
helper/refill/api/yl/cangxin_high/开户信息.txt

@@ -1,5 +1,5 @@
-商户id 10020
-秘钥DUAhOAfjyHwEK2x4tuWRfaKsq6QwY8s1
+商户id 10047
+秘钥a9ghNylQM24iYl2Mh59DrzpLch5ct28V
 对接文档https://www.showdoc.com.cn/1720387349860903/8044417869640483
 
 1320030  全国移动30元

+ 5 - 3
helper/refill/api/yl/chizeng/config.php

@@ -11,9 +11,11 @@ class config
     const QUERY_URL= 'http://123.60.208.38:9086/searchpay.do';
     const BALANCE_URL = 'http://123.60.208.38:9086/searchbalance.do';
 
-    const USER_ID= '10002523';
-    const KEY = 'BASm8ACwBZxjewFcrQssFxz6P8ydDHfc';
-    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_chizeng.php";
+    const USER_ID= '10003143';
+    const KEY = 'bZMyKtsmrkTx4rfcw46YmW5drnk7RiAh';
+//    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_chizeng.php";
+    const NOTIFY_URL = "https://ylapi.xyzshops.cn/mobile/signature.php";
+
     const operator = [
         mtopcard\ChinaMobileCard  => 'yd',
         mtopcard\ChinaUnicomCard  => 'lt',

+ 4 - 4
helper/refill/api/yl/chizeng/对接文档-yezi.txt

@@ -1,12 +1,12 @@
 登录地址:http://123.60.208.38:7080/login.jsp
 
-账户名:yezi1
+账户名:耶林-全国
 
-密码:ye_feng21
+密码:yl123456
 
-id:10002523
+id:10003143
 
-idkey:BASm8ACwBZxjewFcrQssFxz6P8ydDHfc
+idkey:bZMyKtsmrkTx4rfcw46YmW5drnk7RiAh
 
 下单地址:http://123.60.208.38:9086/onlinepay.do
 

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

@@ -11,8 +11,8 @@ class config
     const QUERY_URL= 'http://123.60.208.38:9086/searchpay.do';
     const BALANCE_URL = 'http://123.60.208.38:9086/searchbalance.do';
 
-    const USER_ID= '10002823';
-    const KEY = 'Z2Z2QyR2thKX3FzS8GYEmc7zpdx3tCr7';
+    const USER_ID= '10003144';
+    const KEY = 'hPTPAFr3JNPTbxEFmhnR3Mzm7MZRP7ZZ';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_chizeng_normal.php";
     const operator = [
         mtopcard\ChinaMobileCard  => 'yd',

+ 2 - 2
helper/refill/api/yl/chizeng_normal/对接文档-yezi.txt

@@ -1,6 +1,6 @@
 前台地址: http://123.60.208.38:7080/
-账号:yeye-低价  密码:yeye123456
-id:10002823     key:Z2Z2QyR2thKX3FzS8GYEmc7zpdx3tCr7
+账号:耶林-低价  密码:yl123456
+id:10003144     key:hPTPAFr3JNPTbxEFmhnR3Mzm7MZRP7ZZ
 api接口地址:
 http://123.60.208.38:9086/onlinepay.do 	  下单地址
 http://123.60.208.38:9086/searchbalance.do  余额查询

+ 42 - 0
test/TestRefillYl.php

@@ -277,4 +277,46 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $resp = $provider->notify($params);
     }
+
+    public function testCangxin_high()
+    {
+        $provider = $this->getProvider('cangxin_high');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+        $resp = $provider->query(['order_sn' => '42631648622259046907']);
+
+//        $body = '{"sysOrderNo":"R1648622681393At7McKz","clientId":"10047","verifyString":"e0df61027ee49fc91a39f329928100f3","clientOrderNo":"42631648622259046907","status":"3"}';
+//        $params = json_decode($body, true);
+//        $provider = $this->getProvider('cangxin_high','RefillCallBack');
+//        $ret = $provider->verify($params);
+//        $resp = $provider->notify($params);
+    }
+
+    public function testChizeng()
+    {
+//        $provider = $this->getProvider('chizeng');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '72501648625275495598']);
+
+        $body = '{"orderid":"ZEU22033015287999229","sporderid":"72501648625275495598","userid":"10003143","merchantsubmittime":"20220330153119","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.8","sign":"A051CB62898E9ECEF119CFD2B942E13B"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('chizeng','RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
+
+    public function testChizeng_normal()
+    {
+//        $provider = $this->getProvider('chizeng_normal');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18074608795, 6, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '22251648624513997615']);
+
+        $body = '{"orderid":"TJR22033015167908033","sporderid":"22251648624513997615","userid":"10003144","merchantsubmittime":"20220330151906","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.59","sign":"F7B00BD73CB384F008116D2D6D573B90"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('chizeng_normal','RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
 }