正在显示
1 个修改的文件
包含
7 行增加
和
0 行删除
| @@ -11,6 +11,7 @@ use App\Rules\Ids; | @@ -11,6 +11,7 @@ use App\Rules\Ids; | ||
| 11 | use App\Services\BatchExportService; | 11 | use App\Services\BatchExportService; |
| 12 | use Illuminate\Http\Request; | 12 | use Illuminate\Http\Request; |
| 13 | use Illuminate\Support\Facades\Storage; | 13 | use Illuminate\Support\Facades\Storage; |
| 14 | +use Illuminate\Support\Str; | ||
| 14 | 15 | ||
| 15 | /** | 16 | /** |
| 16 | * 精准询盘 | 17 | * 精准询盘 |
| @@ -131,6 +132,12 @@ class InquiryController extends BaseController | @@ -131,6 +132,12 @@ class InquiryController extends BaseController | ||
| 131 | if(!empty($this->param['form_id'])){ | 132 | if(!empty($this->param['form_id'])){ |
| 132 | $item = array_merge($item, $item['data']); | 133 | $item = array_merge($item, $item['data']); |
| 133 | } | 134 | } |
| 135 | + | ||
| 136 | + foreach ($map as $field => $name) { | ||
| 137 | + if (Str::startsWith($item[$field], '=')) { | ||
| 138 | + $item[$field] = "'" . $item[$field]; | ||
| 139 | + } | ||
| 140 | + } | ||
| 134 | } | 141 | } |
| 135 | 142 | ||
| 136 | //生成文件,发送到客户端 | 143 | //生成文件,发送到客户端 |
-
请 注册 或 登录 后发表评论