Ver Fonte

星科源 大版本修改

cqp há 2 horas atrás
pai
commit
120f48fb46
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 1 1
      app/Jobs/ProcessDataJob.php
  2. 3 3
      app/Service/U8ThirdPartyService.php

+ 1 - 1
app/Jobs/ProcessDataJob.php

@@ -22,7 +22,7 @@ class ProcessDataJob implements ShouldQueue
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
 
     protected $data;
-    public $timeout = 40;
+    public $timeout = 50;
 
     public function __construct($data)
     {

+ 3 - 3
app/Service/U8ThirdPartyService.php

@@ -164,7 +164,7 @@ class U8ThirdPartyService extends Service
         $json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
 
         // 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 (! isset($result['code'])) return [false, '接口响应异常,请检查用友服务'];
@@ -267,7 +267,7 @@ class U8ThirdPartyService extends Service
         $json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
 
         // 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 (! isset($result['code'])) return [false, '接口响应异常,请检查用友服务状态'];
@@ -377,7 +377,7 @@ class U8ThirdPartyService extends Service
         $json = json_encode($final_data, JSON_UNESCAPED_UNICODE);
 
         // 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 (!isset($result['code'])) return [false, '接口响应异常,请检查用友服务状态'];