xiaoyu 2 years ago
parent
commit
0383e1420c

+ 2 - 2
helper/refill/api/xyz/xuanji/RefillCallBack.php

@@ -1,8 +1,8 @@
 <?php
 
-namespace refill\xuanji;
+namespace refill\jumi_sec;
 
-require_once(BASE_HELPER_RAPI_PATH . '/xuanji/config.php');
+require_once(BASE_HELPER_RAPI_PATH . '/jumi_sec/config.php');
 
 use refill;
 

+ 2 - 2
helper/refill/api/xyz/xuanji/RefillOil.php

@@ -1,8 +1,8 @@
 <?php
 
-namespace refill\xuanji;
+namespace refill\jumi_sec;
 
-require_once(BASE_HELPER_RAPI_PATH . '/xuanji/config.php');
+require_once(BASE_HELPER_RAPI_PATH . '/jumi_sec/config.php');
 
 use refill;
 use Log;

+ 2 - 2
helper/refill/api/xyz/xuanji/config.php

@@ -1,5 +1,5 @@
 <?php
-namespace refill\xuanji;
+namespace refill\jumi_sec;
 
 class config
 {
@@ -9,5 +9,5 @@ class config
 
     const APP_ID = 'CZ27801384';
     const TOKEN = '62zdsr7j1h7maaflc4c8kgx9j9vxu8';
-    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_xuanji.php";
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_jumi_sec.php";
 }

helper/refill/api/xyz/xuanji/对接文档.txt → helper/refill/api/xyz/jumi_sec/对接文档.txt


helper/refill/api/xyz/xuanji/玄机充值系统对接文档.docx → helper/refill/api/xyz/jumi_sec/玄机充值系统对接文档.docx


+ 4 - 0
mobile/callback/refill_jumi_sec.php

@@ -0,0 +1,4 @@
+<?php
+
+refill\util::push_notify('jumi_sec',$_POST);
+echo ('success');

+ 0 - 4
mobile/callback/refill_xuanji.php

@@ -1,4 +0,0 @@
-<?php
-
-refill\util::push_notify('xuanji',$_POST);
-echo ('success');

+ 3 - 3
test/TestRefill.php

@@ -2945,16 +2945,16 @@ class TestRefill extends TestCase
         $resp = $provider->balance();
     }
 
-    public function testXuanji()
+    public function testJumi_sec()
     {
-//        $provider = $this->getProvider('xuanji', 'RefillOil');
+//        $provider = $this->getProvider('jumi_sec', 'RefillOil');
 //        $resp = $provider->balance();
 //        $resp = $provider->add(1000111100021211884, 2, 100, ['order_sn' => $this->make_sn()]);
 //        $resp = $provider->query(['order_sn' => '73491669603140334285']);
 
         $body = '{"appid":"CZ27801384","order":"D20221128031516100180983","morder":"73491669603140334285","status":"3","cash":"100","signature":"1e0d2b0dbec37ebc4a8bd03f0afd03dc"}';
         $params = json_decode($body, true);
-        $provider = $this->getProvider('xuanji', 'RefillCallBack');
+        $provider = $this->getProvider('jumi_sec', 'RefillCallBack');
         $ret = $provider->verify($params);
         $resp = $provider->notify($params);
     }