From 525be22b79f1cc1407b61b833b20d31d6c1b67f6 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 19 Jun 2023 11:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=AF=BC=E5=87=BA=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A1=A8=E5=8D=95=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/other/export/ExportServices.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crmeb/app/services/other/export/ExportServices.php b/crmeb/app/services/other/export/ExportServices.php index dbc60b908..b522c5785 100644 --- a/crmeb/app/services/other/export/ExportServices.php +++ b/crmeb/app/services/other/export/ExportServices.php @@ -129,7 +129,11 @@ class ExportServices extends BaseServices } $custom_form = ''; foreach ($item['custom_form'] as $custom_form_value) { - $custom_form .= $custom_form_value['title'] . ':' . $custom_form_value['value'] . ';'; + if (is_string($custom_form_value['value'])) { + $custom_form .= $custom_form_value['title'] . ':' . $custom_form_value['value'] . ';'; + } elseif (is_array($custom_form_value['value'])) { + $custom_form .= $custom_form_value['title'] . ':' . implode(',', $custom_form_value['value']) . ';'; + } } $goodsName = [];