|
@@ -367,9 +367,9 @@ class U8ServerService extends Service
|
|
"bodys"=>$bodys
|
|
"bodys"=>$bodys
|
|
];
|
|
];
|
|
|
|
|
|
- file_put_contents('record_purchase.txt',"请求参数:" . json_encode($post) . PHP_EOL,8);
|
|
|
|
|
|
+ file_put_contents('record_purchase.txt',date("Y-m-d H:i:s") . "请求参数:" . json_encode($post) . PHP_EOL,8);
|
|
$return = $this->post_u8_helper($this->u8_api,json_encode($post), ['Content-Type:application/json']);
|
|
$return = $this->post_u8_helper($this->u8_api,json_encode($post), ['Content-Type:application/json']);
|
|
- file_put_contents('record_purchase.txt',"返回结果:" . json_encode($return). PHP_EOL,8);
|
|
|
|
|
|
+ file_put_contents('record_purchase.txt',date("Y-m-d H:i:s") ."返回结果:" . json_encode($return). PHP_EOL,8);
|
|
|
|
|
|
//剔除数据
|
|
//剔除数据
|
|
$id = array_diff($id, [$value['id']]);
|
|
$id = array_diff($id, [$value['id']]);
|
|
@@ -663,7 +663,7 @@ class U8ServerService extends Service
|
|
return $return;
|
|
return $return;
|
|
}
|
|
}
|
|
|
|
|
|
- public function post_u8_helper($url, $data, $header = [], $timeout = 40){
|
|
|
|
|
|
+ public function post_u8_helper($url, $data, $header = [], $timeout = 50){
|
|
$ch = curl_init();
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|