stanley-king 1 ano atrás
pai
commit
8a32890e40
3 arquivos alterados com 14 adições e 14 exclusões
  1. 1 1
      shop/control/store_vr_order.php
  2. 11 11
      test/TestRefill.php
  3. 2 2
      test/TestRefillCB.php

+ 1 - 1
shop/control/store_vr_order.php

@@ -146,7 +146,7 @@ class store_vr_orderControl extends BaseSellerControl
             else {
                 $order_id = $order_info['order_id'];
                 $params = ['state_type' => $state_type,'order_id' => $order_id,'channel_name' => $refill_info['channel_name']];
-                $resp = http_request(BASE_SITE_URL . '/mobile/refill_inner.php',$params,'POST');
+                $resp = http_request(BASE_SITE_URL . '/mobile/callback/refill_inner.php',$params,'POST');
                 if($resp !== 'success') {
                     showDialog("失败",'','error');
                 } else {

+ 11 - 11
test/TestRefill.php

@@ -4248,7 +4248,7 @@ class TestRefill extends TestCase
         $params['pay_type'] = '';
         $params['tel'] = 18500608333;
         $params['mchid'] = 10014;
-        $resp = http_request($this->mReqHost . "/mobile/refill_weit.php", $params, 'POST');
+        $resp = http_request($this->mReqHost . "/mobile/callback/refill_weit.php", $params, 'POST');
     }
 
     public function testYifaCB()
@@ -4333,7 +4333,7 @@ class TestRefill extends TestCase
     public function testGFTDCB()
     {
         $data = '{"channelOrderNumber":"79091610959059372019","orderNumber":"GYFL1610959060397001","message":"充值成功","storage":"881036222bd8f067ff47d248c75f4c8d","voucher":"","status":101}';
-        $url = "http://192.168.1.220/mobile/refill_gftd.php?" . $data;
+        $url = "http://192.168.1.220/mobile/callback/refill_gftd.php?" . $data;
         $resp = http_post_data($url, $data, ['Content-Type: application/json;charset=UTF-8;', 'Accept:application/json;charset=UTF-8;']);
     }
 
@@ -4351,7 +4351,7 @@ class TestRefill extends TestCase
     public function testTianjtJDVerify()
     {
         $data = 'onlystr=920661883198026632&sign=533151e3f0dff5f507786aabc37b18f7&amt=100&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_tianjt.php&jdno&cardtype=Sinoepc&batchid=26106&cardno=1000111100020654226&orgid=1590993600&status=3';
-        $url = "http://192.168.1.220/mobile/refill_tianjt.php?" . $data;
+        $url = "http://192.168.1.220/mobile/callback/refill_tianjt.php?" . $data;
         $resp = http_request($url);
     }
 
@@ -4359,21 +4359,21 @@ class TestRefill extends TestCase
     {
         $data = 'onlystr=820663525320005221&pddno&sign=4b1e8645f7541ced34855779448d9d52&amt=100&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhcpdd.php&cardtype=Sinoepc&batchid=3&cardno=1000111100020445281&orgid=1590993600&status=2';
 
-        $url = "https://www.xyzshops.cn/mobile/refill_suhcpdd.php?" . $data;
+        $url = "https://www.xyzshops.cn/mobile/callback/refill_suhcpdd.php?" . $data;
         $resp = http_request($url);
     }
 
     public function testSuhcTMVerify()
     {
         $data = 'onlystr=180662473867058221&sign=5ff5f95d54a89e78dbb49923f6b20c08&amt=100&notifyurl=https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_suhctm.php&cardtype=Sinoepc&batchid=3&cardno=1000111100020445281&orgid=1590993600&status=3';
-        $url = "https://www.xyzshops.cn/mobile/refill_suhctm.php?" . $data;
+        $url = "https://www.xyzshops.cn/mobile/callback/refill_suhctm.php?" . $data;
         $resp = http_request($url);
     }
 
     public function testBeixtVerify()
     {
         $data = '{"order_number":18219726,"shipping_status":4,"shipping_status_desc":"发货失败","shipping_status_message":"","sign":"863b4d972f2a4d39a9af7396879116c4","voucher":"","vouchertype":"","voucherurl":"","tradeNo":"100662475851197741"}';
-        $url = "https://www.xyzshops.cn/mobile/refill_bxtwt.php";
+        $url = "https://www.xyzshops.cn/mobile/callback/refill_bxtwt.php";
 
         $headers = ['Content-Type: application/json'];
         $resp = http_post_data($url, $data, $headers);
@@ -4525,8 +4525,8 @@ class TestRefill extends TestCase
 
     public function testTianjtCB()
     {
-//        $notifyurl = BASE_SITE_URL . "/mobile/refill_tianjt.php";
-        $notifyurl = "https://www.xyzshops.cn/mobile/refill_tianjt.php";
+//        $notifyurl = BASE_SITE_URL . "/mobile/callback/refill_tianjt.php";
+        $notifyurl = "https://www.xyzshops.cn/mobile/callback/refill_tianjt.php";
 //        $notifyurl = "https%3A%2F%2Fwww.xyzshops.cn%2Fmobile%2Frefill_tianjt.php";
 
         $params = ['onlystr' => '690665858589475818',
@@ -4557,7 +4557,7 @@ class TestRefill extends TestCase
             'sgn' => 'AC9AFD254DE682D8440A97CA68B992DA'
         ];
 
-        $resp = http_request("https://www.xyzshops.cn/mobile/refill_bjb.php", $params, 'POST');
+        $resp = http_request("https://www.xyzshops.cn/mobile/callback/refill_bjb.php", $params, 'POST');
     }
 
     public function testJiecCB()
@@ -4570,7 +4570,7 @@ class TestRefill extends TestCase
         $params['op_no'] = '800663597981819221';
         $params['sign'] = '2510046895e8e12322c8a32547905ee9';
 
-        $resp = http_request($this->mReqHost . "/mobile/refill_jiec.php", $params, 'POST');
+        $resp = http_request($this->mReqHost . "/mobile/callback/refill_jiec.php", $params, 'POST');
     }
 
 
@@ -4808,7 +4808,7 @@ class TestRefill extends TestCase
     public function testRefillInnerCB()
     {
         $params = ['state_type' => 'order_cancel', 'order_id' => 311, 'channel_name' => 'lx'];
-        $resp = http_request(BASE_SITE_URL . '/mobile/refill_inner.php', $params, 'POST');
+        $resp = http_request(BASE_SITE_URL . '/mobile/callback/refill_inner.php', $params, 'POST');
     }
 
     public function testArgs()

+ 2 - 2
test/TestRefillCB.php

@@ -105,7 +105,7 @@ class TestRefillCancel extends TestCase
 
         $prov = new Gftd();
         $result = $prov->params($params);
-        $resp = http_post_data("https://www.xyzshops.cn/mobile/refill_gftd.php",json_encode($result,JSON_UNESCAPED_UNICODE),config::ExtHeaders);
+        $resp = http_post_data("https://www.xyzshops.cn/mobile/callback/refill_gftd.php",json_encode($result,JSON_UNESCAPED_UNICODE),config::ExtHeaders);
         Log::record($resp,Log::DEBUG);
     }
 
@@ -125,7 +125,7 @@ class TestRefillCancel extends TestCase
 
         $prov = new Gftd();
         $result = $prov->params($params);
-        $resp = http_post_data("https://www.xyzshops.cn/mobile/refill_gftd.php",json_encode($result,JSON_UNESCAPED_UNICODE),config::ExtHeaders);
+        $resp = http_post_data("https://www.xyzshops.cn/mobile/callback/refill_gftd.php",json_encode($result,JSON_UNESCAPED_UNICODE),config::ExtHeaders);
         Log::record($resp,Log::DEBUG);
     }