stanley-king 3 年之前
父節點
當前提交
10e785e9fd
共有 4 個文件被更改,包括 6 次插入7 次删除
  1. 2 0
      helper/refill_proxy.php
  2. 3 4
      mobile/control/refill.php
  3. 1 1
      mobile/framework/function/function.php
  4. 0 2
      server/send_refillex.php

+ 2 - 0
helper/refill_proxy.php

@@ -17,6 +17,8 @@ class refill_proxy
         $params['sign'] = md5($body);
 
         $resp = $this->http_request($url,$params,'POST');
+        Log::record("resp={$resp}",Log::DEBUG);
+
         if(empty($resp)) {
             return [false,'网络错误'];
         }

+ 3 - 4
mobile/control/refill.php

@@ -119,8 +119,8 @@ class refillControl extends merchantControl
             refill\util::push_queue_order($this->mchid(),$mch_order,ORDER_STATE_QUEUE);
             return self::outsuccess(['state' => true]);
         } else {
-            $code = $state;
-            return self::outerr($code, '提交失败');
+            Log::record("refill::util::push_add state={$state}",Log::DEBUG);
+            return self::outerr(208, '提交失败');
         }
     }
 
@@ -198,8 +198,7 @@ class refillControl extends merchantControl
             refill\util::push_queue_order($this->mchid(),$mch_order,ORDER_STATE_QUEUE);
             return self::outsuccess(['state' => true]);
         } else {
-            $code = $state;
-            return self::outerr($code, '提交失败');
+            return self::outerr(208, '提交失败');
         }
     }
 

+ 1 - 1
mobile/framework/function/function.php

@@ -85,7 +85,7 @@ function joutput_error($code,$message = '',$type='')
     if(!empty($type) && $type == 'web') {
         echo(json_encode($data,JSON_UNESCAPED_UNICODE));
     } else {
-        echo(json_encode($data));
+        echo(json_encode($data,JSON_UNESCAPED_UNICODE));
     }
 }
 

+ 0 - 2
server/send_refillex.php

@@ -54,8 +54,6 @@ class RefillSender
 
         $proxy = new refill_proxy("210fe406954220f56085997d6a4c5b80");
         $resp = $proxy->send("http://test.xyzshops.cn/mobile/index.php", $params);
-        $resp = json_encode($resp);
-        Log::record("resp={$resp}",Log::DEBUG);
     }
 }