ソースを参照

debug bxtwt callback

stanley-king 4 年 前
コミット
2b8d447e0e

+ 1 - 1
helper/refill/bxtwt/RefillPhone.php

@@ -6,7 +6,7 @@ require_once(BASE_HELPER_PATH . '/refill/bxtwt/config.php');
 
 use refill;
 use Log;
-use refill\beixt\config;
+use refill\bxtwt\config;
 
 class RefillPhone extends refill\IRefillPhone
 {

+ 1 - 1
helper/refill/bxtwt/config.php

@@ -9,6 +9,6 @@ class config
     const REQUEST_URL = 'http://8.129.76.127/APIHfKc/v2/';
     const API_USER_NAME= '08aa9b2e2ef44b14bc6ac53fe8253b36';
     const API_CERT = '44143b70ec8cca16cdb533e3c637f410';
-    const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
+    const NOTIFY_URL = "https://www.xyzshops.cn/mobile/refill_bxtwt.php";
     const API_IP = NET_IP;
 }

+ 2 - 1
test/TestRefill.php

@@ -78,7 +78,8 @@ class TestRefill extends TestCase
     {
         $data = '{"order_number":17179442,"shipping_status":1,"shipping_status_desc":"已发货","shipping_status_message":"","sign":"4d0d9e22410407a3ef374f70fdbc0425","voucher":"501324954073664276","vouchertype":"","voucherurl":"","tradeNo":"780661942259568741"}';
 //        $url = "http://192.168.1.220/mobile/refill_beixt.php";
-        $url = "https://www.xyzshops.cn/mobile/refill_bxtwt.php";
+        $url = "http://192.168.1.220/mobile/refill_bxtwt.php";
+//        $url = "https://www.xyzshops.cn/mobile/refill_bxtwt.php";
 
         $resp = http_post_data($url,$data);
     }