|
...
|
...
|
@@ -5,6 +5,7 @@ namespace App\Models\Inquiry; |
|
|
|
use App\Models\Base;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class InquiryForm
|
|
...
|
...
|
@@ -36,10 +37,11 @@ class InquiryForm extends Base |
|
|
|
'phone' => '电话',
|
|
|
|
'mobile' => '电话',
|
|
|
|
'message' => '询盘内容',
|
|
|
|
'company' => '公司名称'
|
|
|
|
'company' => '公司名称',
|
|
|
|
'file' => '文件'
|
|
|
|
];
|
|
|
|
if($field){
|
|
|
|
return $map[$field] ?? $field;
|
|
|
|
return $map[Str::lower($field)] ?? Str::studly($field);
|
|
|
|
}
|
|
|
|
return $map;
|
|
|
|
}
|
|
...
|
...
|
@@ -70,6 +72,10 @@ class InquiryForm extends Base |
|
|
|
unset($data['globalso-domain']);
|
|
|
|
unset($data['globalso-edition']);
|
|
|
|
unset($data['globalso-date']);
|
|
|
|
|
|
|
|
//数组key转为小写
|
|
|
|
$data = array_change_key_case($data, CASE_LOWER);
|
|
|
|
|
|
|
|
ksort($data);
|
|
|
|
$field = array_keys($data);
|
|
|
|
$sign = md5(json_encode($field));
|
...
|
...
|
|