正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -123,7 +123,7 @@ class postInquiry extends Command | @@ -123,7 +123,7 @@ class postInquiry extends Command | ||
| 123 | 'referrer_url' => $detail['referrer'], | 123 | 'referrer_url' => $detail['referrer'], |
| 124 | 'user_agent' => $detail['user_agent'], | 124 | 'user_agent' => $detail['user_agent'], |
| 125 | ]; | 125 | ]; |
| 126 | - $res = Http::withoutVerifying()->timeout(10)->post($website . 'api/traffic_visit/', $data)->json(); | 126 | + $res = Http::withoutVerifying()->timeout(30)->post($website . 'api/traffic_visit/', $data)->json(); |
| 127 | if (empty($res['status']) || $res['status'] != 200) { | 127 | if (empty($res['status']) || $res['status'] != 200) { |
| 128 | $log->status = ReInquiryDetailLog::STATUS_FAIL; | 128 | $log->status = ReInquiryDetailLog::STATUS_FAIL; |
| 129 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); | 129 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); |
| @@ -219,7 +219,7 @@ class postInquiry extends Command | @@ -219,7 +219,7 @@ class postInquiry extends Command | ||
| 219 | } else { | 219 | } else { |
| 220 | $data['__amp_source_origin'] = trim($website, '/'); | 220 | $data['__amp_source_origin'] = trim($website, '/'); |
| 221 | } | 221 | } |
| 222 | - $res = Http::withoutVerifying()->timeout(10)->withHeaders(['User-Agent' => $detail['user_agent']])->post($website . 'api/inquiryQd?source=5', $data)->json(); | 222 | + $res = Http::withoutVerifying()->timeout(30)->withHeaders(['User-Agent' => $detail['user_agent']])->post($website . 'api/inquiryQd?source=5', $data)->json(); |
| 223 | if (empty($res['code']) || $res['code'] != 200) { | 223 | if (empty($res['code']) || $res['code'] != 200) { |
| 224 | $log->status = ReInquiryDetailLog::STATUS_FAIL; | 224 | $log->status = ReInquiryDetailLog::STATUS_FAIL; |
| 225 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); | 225 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); |
| @@ -243,7 +243,7 @@ class postInquiry extends Command | @@ -243,7 +243,7 @@ class postInquiry extends Command | ||
| 243 | 'source' => 5, | 243 | 'source' => 5, |
| 244 | ]; | 244 | ]; |
| 245 | 245 | ||
| 246 | - $result = Http::withoutVerifying()->timeout(10)->post('https://form.globalso.com/api/external-interface/add/fa043f9cbec6b38f', $data); | 246 | + $result = Http::withoutVerifying()->timeout(30)->post('https://form.globalso.com/api/external-interface/add/fa043f9cbec6b38f', $data); |
| 247 | $res = $result->json(); | 247 | $res = $result->json(); |
| 248 | //兼容接口返回格式 | 248 | //兼容接口返回格式 |
| 249 | if (!empty($res['data'][0]['status'])) { | 249 | if (!empty($res['data'][0]['status'])) { |
| @@ -273,7 +273,7 @@ class postInquiry extends Command | @@ -273,7 +273,7 @@ class postInquiry extends Command | ||
| 273 | ksort($data); | 273 | ksort($data); |
| 274 | $data['token'] = md5( json_encode($data, JSON_UNESCAPED_UNICODE ) . date("Y-m-d")); | 274 | $data['token'] = md5( json_encode($data, JSON_UNESCAPED_UNICODE ) . date("Y-m-d")); |
| 275 | $url = 'https://' . $detail['re_website'] . '/index.php?route=api/ai_inquiry/add'; | 275 | $url = 'https://' . $detail['re_website'] . '/index.php?route=api/ai_inquiry/add'; |
| 276 | - $res = Http::withoutVerifying()->timeout(10)->post($url, $data)->json(); | 276 | + $res = Http::withoutVerifying()->timeout(30)->post($url, $data)->json(); |
| 277 | if (empty($res['code']) || $res['code'] != 200) { | 277 | if (empty($res['code']) || $res['code'] != 200) { |
| 278 | $log->status = ReInquiryDetailLog::STATUS_FAIL; | 278 | $log->status = ReInquiryDetailLog::STATUS_FAIL; |
| 279 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); | 279 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); |
| @@ -292,7 +292,7 @@ class postInquiry extends Command | @@ -292,7 +292,7 @@ class postInquiry extends Command | ||
| 292 | 'post_id' => $log['url'], | 292 | 'post_id' => $log['url'], |
| 293 | 'message' => $detail['message'], | 293 | 'message' => $detail['message'], |
| 294 | ]; | 294 | ]; |
| 295 | - $res = Http::withoutVerifying()->timeout(10)->post('https://fob.ai.cc/api/ad_to_scrm', $data)->json(); | 295 | + $res = Http::withoutVerifying()->timeout(30)->post('https://fob.ai.cc/api/ad_to_scrm', $data)->json(); |
| 296 | if (empty($res['status']) || $res['status'] != 200) { | 296 | if (empty($res['status']) || $res['status'] != 200) { |
| 297 | $log->status = ReInquiryDetailLog::STATUS_FAIL; | 297 | $log->status = ReInquiryDetailLog::STATUS_FAIL; |
| 298 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); | 298 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); |
-
请 注册 或 登录 后发表评论