|
@@ -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;
|
|
|
}
|
|
|
|