|
...
|
...
|
@@ -7,6 +7,7 @@ use App\Models\Base; |
|
|
|
use App\Utils\LogUtils;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class InquiryFormData
|
|
...
|
...
|
@@ -67,6 +68,8 @@ class InquiryFormData extends Base |
|
|
|
$model->save();
|
|
|
|
|
|
|
|
if(!empty($data['name']) && !empty($data['email']) && !empty($data['message'])){
|
|
|
|
Log::channel('inquiry')->info('开始发邮件' . PHP_EOL);
|
|
|
|
|
|
|
|
unset($data['globalso-domain_host_url']);
|
|
|
|
unset($data['globalso-domain']);
|
|
|
|
unset($data['globalso-edition']);
|
|
...
|
...
|
@@ -86,7 +89,7 @@ class InquiryFormData extends Base |
|
|
|
}
|
|
|
|
if(!$has_file) {
|
|
|
|
$res = (new FormGlobalsoApi())->submitInquiry($ip, $referer, $submit_at, $data);
|
|
|
|
LogUtils::info('询盘提交', $data, $res?: []);
|
|
|
|
Log::channel('inquiry')->info('询盘发送邮件', [$data, $res]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $model->id;
|
...
|
...
|
|