|
@@ -4,6 +4,7 @@ namespace App\Models\Inquiry; |
|
@@ -4,6 +4,7 @@ namespace App\Models\Inquiry; |
|
4
|
|
4
|
|
|
5
|
use App\Helper\FormGlobalsoApi;
|
5
|
use App\Helper\FormGlobalsoApi;
|
|
6
|
use App\Models\Base;
|
6
|
use App\Models\Base;
|
|
|
|
7
|
+use App\Utils\LogUtils;
|
|
7
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
8
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
8
|
use Illuminate\Support\Facades\DB;
|
9
|
use Illuminate\Support\Facades\DB;
|
|
9
|
|
10
|
|
|
@@ -83,7 +84,10 @@ class InquiryFormData extends Base |
|
@@ -83,7 +84,10 @@ class InquiryFormData extends Base |
|
83
|
$data['message'].= "<br/>" . $k .': ' . $v;
|
84
|
$data['message'].= "<br/>" . $k .': ' . $v;
|
|
84
|
}
|
85
|
}
|
|
85
|
}
|
86
|
}
|
|
86
|
- !$has_file && (new FormGlobalsoApi())->submitInquiry($ip, $referer, $submit_at, $data);
|
87
|
+ if(!$has_file) {
|
|
|
|
88
|
+ $res = (new FormGlobalsoApi())->submitInquiry($ip, $referer, $submit_at, $data);
|
|
|
|
89
|
+ LogUtils::info('询盘提交', $data, $res?: []);
|
|
|
|
90
|
+ }
|
|
87
|
}
|
91
|
}
|
|
88
|
return true;
|
92
|
return true;
|
|
89
|
}
|
93
|
}
|