|
@@ -10,6 +10,7 @@ use App\Models\Inquiry\InquiryForm; |
|
@@ -10,6 +10,7 @@ use App\Models\Inquiry\InquiryForm; |
|
10
|
use App\Models\Inquiry\PhoneData;
|
10
|
use App\Models\Inquiry\PhoneData;
|
|
11
|
use App\Rules\Ids;
|
11
|
use App\Rules\Ids;
|
|
12
|
use App\Services\BatchExportService;
|
12
|
use App\Services\BatchExportService;
|
|
|
|
13
|
+use App\Utils\LogUtils;
|
|
13
|
use Illuminate\Http\Request;
|
14
|
use Illuminate\Http\Request;
|
|
14
|
use Illuminate\Support\Facades\Storage;
|
15
|
use Illuminate\Support\Facades\Storage;
|
|
15
|
use Illuminate\Support\Str;
|
16
|
use Illuminate\Support\Str;
|
|
@@ -135,7 +136,7 @@ class InquiryController extends BaseController |
|
@@ -135,7 +136,7 @@ class InquiryController extends BaseController |
|
135
|
{
|
136
|
{
|
|
136
|
if(!empty($this->param['form_id'])){
|
137
|
if(!empty($this->param['form_id'])){
|
|
137
|
$data = $logic->getFormDataList(true);
|
138
|
$data = $logic->getFormDataList(true);
|
|
138
|
- $field = InquiryForm::getField($this->param['form_id']);
|
139
|
+ $field = InquiryForm::getField($this->param['form_id'], $this->user['project_id']);
|
|
139
|
$map = [
|
140
|
$map = [
|
|
140
|
'submit_time' => '询盘发送时间',
|
141
|
'submit_time' => '询盘发送时间',
|
|
141
|
];
|
142
|
];
|
|
@@ -179,8 +180,12 @@ class InquiryController extends BaseController |
|
@@ -179,8 +180,12 @@ class InquiryController extends BaseController |
|
179
|
if(!empty($this->param['form_id'])){
|
180
|
if(!empty($this->param['form_id'])){
|
|
180
|
$item = array_merge($item, $item['data']);
|
181
|
$item = array_merge($item, $item['data']);
|
|
181
|
}
|
182
|
}
|
|
182
|
-
|
183
|
+ LogUtils::info('Inquiry_export', [$map, $item]);
|
|
183
|
foreach ($map as $field => $name) {
|
184
|
foreach ($map as $field => $name) {
|
|
|
|
185
|
+ if(empty($item[$field])){
|
|
|
|
186
|
+ $item[$field] = '';
|
|
|
|
187
|
+ continue;
|
|
|
|
188
|
+ }
|
|
184
|
if(is_array($item[$field])){
|
189
|
if(is_array($item[$field])){
|
|
185
|
$item[$field] = implode(',',$item[$field]);
|
190
|
$item[$field] = implode(',',$item[$field]);
|
|
186
|
}
|
191
|
}
|