瀏覽代碼

yl xianghongrui

xiaoyu 3 年之前
父節點
當前提交
49b2525151

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

@@ -5385,7 +5385,7 @@ $phone_providers = [
 //    ['name' => 'wenye', 'cfg' => $wenye_phone],
 //    ['name' => 'xinyang', 'cfg' => $xinyang_phone],
 //    ['name' => 'guochuang', 'cfg' => $guochuang_phone],
-//    ['name' => 'xianghongrui', 'cfg' => $xianghongrui_phone],
+    ['name' => 'xianghongrui', 'cfg' => $xianghongrui_phone],
 //    ['name' => 'dianchong', 'cfg' => $dianchong_phone],
     ['name' => 'wangliantx', 'cfg' => $wangliantx_phone],
 //    ['name' => 'zhuojian', 'cfg' => $zhuojian_phone],

+ 2 - 3
helper/refill/api/yl/xianghongrui/config.php

@@ -6,13 +6,12 @@ namespace refill\xianghongrui;
 use mtopcard;
 class config
 {
-    //yd948 dl95
     const ORDER_URL = 'http://123.60.50.146:9086/onlinepay.do';
     const QUERY_URL= 'http://123.60.50.146:9086/searchpay.do';
     const BALANCE_UTL = 'http://123.60.50.146:9086/searchbalance.do';
 
-    const USER_ID= '10002503';
-    const KEY = 'ZcWJfd4Jt63JAwiymPEXzGDHyjy8H62F';
+    const USER_ID= '10002703';
+    const KEY = 'SZK4aartZDaTMiKHn37yaCeJRe8Ak7bT';
     const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_xianghongrui.php";
     const operator = [
         mtopcard\ChinaMobileCard  => 'yd',

+ 3 - 3
helper/refill/api/yl/xianghongrui/账号.txt

@@ -1,8 +1,8 @@
 http://123.60.50.146:7080/
-账号:yezi
+账号:椰林
 密码:yezi123456
-id:    10002503
-密钥:ZcWJfd4Jt63JAwiymPEXzGDHyjy8H62F
+id:    10002703
+密钥:SZK4aartZDaTMiKHn37yaCeJRe8Ak7bT
 
 
 

+ 14 - 0
test/TestRefillYl.php

@@ -221,6 +221,7 @@ class TestRefillYl extends TestCase
         $ret = $provider->verify($params);
         $resp = $provider->notify($params);
     }
+
     public function testWangliantx()
     {
 //        $provider = $this->getProvider('wangliantx');
@@ -235,4 +236,17 @@ class TestRefillYl extends TestCase
         $resp = $provider->notify($params);
     }
 
+    public function testXianghongrui()
+    {
+//        $provider = $this->getProvider('xianghongrui');
+//        $resp = $provider->balance();
+//        $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
+//        $resp = $provider->query(['order_sn' => '87461648535891960493']);
+
+        $body = '{"orderid":"JTH22032914388095709","sporderid":"87461648535891960493","userid":"10002703","merchantsubmittime":"20220329143837","resultno":"9","parvalue":"30","remark1":"","payno":"","fundbalance":"-28.5","sign":"A2F64CAE7B37AE11D4F95468BC836EC0"}';
+        $params = json_decode($body, true);
+        $provider = $this->getProvider('xianghongrui', 'RefillCallBack');
+        $ret = $provider->verify($params);
+        $resp = $provider->notify($params);
+    }
 }