stanley-king 4 lat temu
rodzic
commit
d9d9bd08a9

+ 7 - 7
helper/refill/api/xyz/xc/RefillPhone.php

@@ -50,17 +50,17 @@ class RefillPhone extends refill\IRefillPhone
     {
         $params['pay_orderid'] = $refill_info['order_sn'];
         $params['pay_memberid'] = config::NUMBER_ID;
-        $sign = $this->sign($params,true);
+        $sign = $this->sign($params, true);
         $params['sign'] = $sign;
 
-        $resp = http_request(config::QUERY_ORDER_URL,$params,'POST');
-        if($resp === false) {
-            return [false,'系统错误'];
-        }
+        $resp = http_request(config::QUERY_ORDER_URL, $params, 'POST');
+        if ($resp === false) {
+            return [false, '系统错误'];
+        } 
         else
         {
-            Log::record($resp,Log::DEBUG);
-            $resp = json_decode($resp,true);
+            Log::record($resp, Log::DEBUG);
+            $resp = json_decode($resp, true);
 
             $order_state = -1;
             $status = $resp['data']['status'];

+ 2 - 3
helper/refill/api/xyz/xc/config.php

@@ -8,8 +8,7 @@ class config
 {
     const ORDER_URL = 'http://202.79.172.201/pay/order/upload';
     const QUERY_ORDER_URL = 'http://202.79.172.201/chaxun/order/queryStatus';
-    const NUMBER_ID= '10010';
+    const NUMBER_ID = '10010';
     const KEY = '11a5e71e0da0e3ae0942cbd6b7c62f2a';
-    const NOTIFY_URL =  BASE_SITE_URL."/mobile/refill_xc.php";
-//    const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
+    const NOTIFY_URL = BASE_SITE_URL . "/mobile/refill_xc.php";
 }