|
@@ -226,7 +226,7 @@ class U8ServerService extends Service
|
|
];
|
|
];
|
|
|
|
|
|
file_put_contents('record_purchase.txt',"请求参数:" . json_encode($post) . PHP_EOL,8);
|
|
file_put_contents('record_purchase.txt',"请求参数:" . json_encode($post) . PHP_EOL,8);
|
|
- $return = $this->post_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',"返回结果:" . json_encode($return). PHP_EOL,8);
|
|
|
|
|
|
//剔除数据
|
|
//剔除数据
|
|
@@ -368,7 +368,7 @@ class U8ServerService extends Service
|
|
];
|
|
];
|
|
|
|
|
|
file_put_contents('record_purchase.txt',"请求参数:" . json_encode($post) . PHP_EOL,8);
|
|
file_put_contents('record_purchase.txt',"请求参数:" . json_encode($post) . PHP_EOL,8);
|
|
- $return = $this->post_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',"返回结果:" . json_encode($return). PHP_EOL,8);
|
|
|
|
|
|
//剔除数据
|
|
//剔除数据
|
|
@@ -663,7 +663,7 @@ class U8ServerService extends Service
|
|
return $return;
|
|
return $return;
|
|
}
|
|
}
|
|
|
|
|
|
- public function post_helper($url, $data, $header = [], $timeout = 20){
|
|
|
|
|
|
+ public function post_u8_helper($url, $data, $header = [], $timeout = 40){
|
|
$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);
|