|
@@ -164,7 +164,7 @@ class U8ThirdPartyService extends Service
|
|
|
$json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
|
|
$json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
|
|
|
// 7. 发送 POST 请求
|
|
// 7. 发送 POST 请求
|
|
|
- list($status, $result) = $this->post_helper1($url, $json, $header, 30);
|
|
|
|
|
|
|
+ list($status, $result) = $this->post_helper1($url, $json, $header, 40);
|
|
|
|
|
|
|
|
if (! $status) return [false, $result];
|
|
if (! $status) return [false, $result];
|
|
|
if (! isset($result['code'])) return [false, '接口响应异常,请检查用友服务'];
|
|
if (! isset($result['code'])) return [false, '接口响应异常,请检查用友服务'];
|
|
@@ -267,7 +267,7 @@ class U8ThirdPartyService extends Service
|
|
|
$json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
|
|
$json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
|
|
|
// 8. 调用 POST 助手发送
|
|
// 8. 调用 POST 助手发送
|
|
|
- list($status, $result) = $this->post_helper1($url, $json, $header, 30);
|
|
|
|
|
|
|
+ list($status, $result) = $this->post_helper1($url, $json, $header, 40);
|
|
|
|
|
|
|
|
if (! $status) return [false, $result];
|
|
if (! $status) return [false, $result];
|
|
|
if (! isset($result['code'])) return [false, '接口响应异常,请检查用友服务状态'];
|
|
if (! isset($result['code'])) return [false, '接口响应异常,请检查用友服务状态'];
|
|
@@ -377,7 +377,7 @@ class U8ThirdPartyService extends Service
|
|
|
$json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
|
|
$json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
|
|
|
// 8. 调用 POST 助手发送请求
|
|
// 8. 调用 POST 助手发送请求
|
|
|
- list($status, $result) = $this->post_helper1($url, $json, $header, 30);
|
|
|
|
|
|
|
+ list($status, $result) = $this->post_helper1($url, $json, $header, 40);
|
|
|
|
|
|
|
|
if (!$status) return [false, $result];
|
|
if (!$status) return [false, $result];
|
|
|
if (!isset($result['code'])) return [false, '接口响应异常,请检查用友服务状态'];
|
|
if (!isset($result['code'])) return [false, '接口响应异常,请检查用友服务状态'];
|