stanley-king пре 1 година
родитељ
комит
dc3b522e87

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

@@ -176,7 +176,7 @@ $lifang_normal = ['name' => 'lifang_normal', 'store_id' => 384,'qualitys' => '2'
     'official_sn' => true, 'refill_type' => 'api'];
 
 
-$kefei_normal = ['name' => 'kefei_normal', 'store_id' => 385,'qualitys' => '2',
+$kefei_fast = ['name' => 'kefei_fast', 'store_id' => 385,'qualitys' => '2',
     'amount' => [
         50 => [
             ['goods_id' => 9007, 'price' => 49.9, 'quality' => 2, 'card_type' => 'chinaunicom'],
@@ -202,7 +202,7 @@ $phone_providers = [
     ['name' => 'suhu_wozhifu', 'cfg' => $suhu_wozhifu],
     ['name' => 'weisanhuo_normal', 'cfg' => $weisanhuo_normal],
     ['name' => 'yushang_normal', 'cfg' => $yushang_normal],
-    ['name' => 'kefei_normal', 'cfg' => $kefei_normal]
+    ['name' => 'kefei_fast', 'cfg' => $kefei_fast]
 ];
 
 $config['phone_providers'] = $phone_providers;

helper/refill/api/mh/sohan_fast/ReadMe.MD → helper/refill/api/mh/kefei_fast/ReadMe.MD


+ 2 - 2
helper/refill/api/mh/sohan_fast/RefillCallBack.php

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

+ 2 - 2
helper/refill/api/mh/sohan_fast/RefillPhone.php

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

+ 4 - 4
helper/refill/api/mh/sohan_fast/config.php

@@ -1,14 +1,14 @@
 <?php
 
-namespace refill\sohan_fast;
+namespace refill\kefei_fast;
 
 class config
 {
-    public const agentAccount = 'api_test';
-    public const appSecret = '13D5C4F4910EDC34';
+    public const agentAccount = '15652921127';
+    public const appSecret = 'FE805442673DBB58';
     public const ORDER_URL = 'http://api.sohan.hk:50080/API';
 
-    public const NOTIFY_URL = BASE_SITE_URL . "/racc/callback/mh/sohan_fast.php";
+    public const NOTIFY_URL = BASE_SITE_URL . "/racc/callback/mh/kefei_fast.php";
 //    public const NOTIFY_URL = "https://api.mhigh.cn/racc/callback/mh/testcb.php";
     public const ExtHeaders = [
         'User-Agent:Apifox/1.0.0 (https://apifox.com)',

+ 2 - 2
racc/callback/mh/sohan_fast.php

@@ -10,5 +10,5 @@
 $content = json_encode($_POST);
 Log::record("sohan_fast content=$content",Log::DEBUG);
 
-refill\util::push_notify('sohan_fast',$_POST);
-echo ('ok');
+refill\util::push_notify('kefei_fast',$_POST);
+echo ('OK');

+ 2 - 2
test/mh/TestRefill.php

@@ -131,7 +131,7 @@ class TestRefill extends TestCase
 
     public function testSohanFast()
     {
-        $provider = $this->getProvider('sohan_fast');
+        $provider = $this->getProvider('kefei_fast');
         $order_sn = $this->make_sn();
         $resp = $provider->add(13911220681, 4, 1, ['order_sn' => $order_sn, 'regin_no' => 1]);//30为测试产品
         $resp = $provider->query(['order_sn' => $order_sn]);
@@ -153,7 +153,7 @@ class TestRefill extends TestCase
             'Errormsg' => '',
             'Sign' => '2fee99fc128de20c150d8d55ea8bb008'
         ];
-        $provider = $this->getProvider('sohan_fast', 'RefillCallBack');
+        $provider = $this->getProvider('kefei_fast', 'RefillCallBack');
 
         $ret = $provider->verify($post);
         $resp = $provider->notify($post);