浏览代码

debug oms

stanley-king 9 年之前
父节点
当前提交
7efaaf198c
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      data/logic/delivery.logic.php

+ 5 - 2
data/logic/delivery.logic.php

@@ -82,9 +82,12 @@ class deliveryLogic
         $sign = $this->_getSign($data);
         $headers = array('v_appkey: '.self::$appkey, 'v_sign: '.$sign, 'Content-Type: application/json');
 
-        Log::record(json_encode($data),Log::DEBUG);
-        $result = json_decode($this->_http_json_post(self::$appURL, json_encode($data), $headers));
+        $outdata = json_encode($data);
+        Log::record($outdata,Log::DEBUG);
+        //$result = json_decode($this->_http_json_post(self::$appURL, json_encode($data), $headers));
+        $result = http_request(self::$appURL,$outdata,'POST',false,$headers);
         Log::record("post data={$result}",Log::DEBUG);
+
         return $result;
     }