|
...
|
...
|
@@ -5,6 +5,7 @@ |
|
|
|
* Date: 2025/02/26
|
|
|
|
* Time: 10:14
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Console\Commands\Inquiry;
|
|
|
|
|
|
|
|
use App\Models\Inquiry\InquiryInfo;
|
|
...
|
...
|
@@ -116,7 +117,7 @@ class PostInquiryForward extends Command |
|
|
|
|
|
|
|
public function visit(InquiryRelayDetail $detail, InquiryRelayDetailLog $log)
|
|
|
|
{
|
|
|
|
$website = $detail['website'];
|
|
|
|
$website = 'https://' . $detail['website'] . '/';
|
|
|
|
if ($detail['is_v6']) {
|
|
|
|
$data = [
|
|
|
|
'ip' => $detail['ip'],
|
|
...
|
...
|
@@ -136,7 +137,7 @@ class PostInquiryForward extends Command |
|
|
|
}
|
|
|
|
} else {
|
|
|
|
//v4 v5分离项目 往测试链接推
|
|
|
|
$project_info = InquiryProject::select(['is_split', 'test_domain'])->where('domain', $website)->first();
|
|
|
|
$project_info = InquiryProject::select(['is_split', 'test_domain'])->where('domain', 'like', '%' . $detail['website'] . '%')->first();
|
|
|
|
if (!$project_info) {
|
|
|
|
$log->status = InquiryRelayDetailLog::STATUS_FAIL;
|
|
|
|
$log->remark = '获取域名对应项目失败';
|
|
...
|
...
|
@@ -194,7 +195,7 @@ class PostInquiryForward extends Command |
|
|
|
|
|
|
|
public function v6Inquiry($detail, $log)
|
|
|
|
{
|
|
|
|
$website = $detail['website'];
|
|
|
|
$website = 'https://' . $detail['website'] . '/';
|
|
|
|
$data = [
|
|
|
|
'name' => $detail['name'],
|
|
|
|
'phone' => $detail['phone'],
|
|
...
|
...
|
@@ -231,7 +232,6 @@ class PostInquiryForward extends Command |
|
|
|
'submit_time' => date('Y-m-d H:i:s'),
|
|
|
|
'source' => 5,
|
|
|
|
];
|
|
|
|
|
|
|
|
$result = Http::withoutVerifying()->timeout(30)->post('https://www.globalso.site/api/external-interface/add/fa043f9cbec6b38f', $data);
|
|
|
|
$res['data'][0]['status'] = 'success';
|
|
|
|
//兼容接口返回格式
|
...
|
...
|
|