作者 赵彬吉

update

... ... @@ -100,7 +100,10 @@ class postInquiry extends Command
}else{
//v4 v5分离项目 往测试链接推
$website = $detail['re_website'];
$site_array = file_get_contents('https://www.quanqiusou.cn/extend_api/saas/split.php');
$client = new \GuzzleHttp\Client();
$site_array = $client->request('GET', "https://www.quanqiusou.cn/extend_api/saas/split.php", [
'proxy' => env('CURL_PROXY'), // 代理服务器地址和端口号
])->getBody()->getContents();
$site_array = json_decode($site_array, true);
$mail_urls = array_column($site_array, 'main_url');
$key = array_search($detail['re_website'], $mail_urls);
... ... @@ -171,7 +174,7 @@ class postInquiry extends Command
];
$res = Http::withoutVerifying()->post('https://form.globalso.com/api/external-interface/add/fa043f9cbec6b38f', $data)->json();
if(empty($res['code']) || $res['code'] != 200){
if(empty($res['data']['code']) || $res['data']['code'] != 200){
$log->status = ReInquiryDetailLog::STATUS_FAIL;
$log->remark = $res['message'] ?? '';
$log->save();
... ...