Browse Source

Merge branch 'v5.1.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.1.0dev

liaofei 2 years atrás
parent
commit
8e6503cf09
1 changed files with 5 additions and 1 deletions
  1. 5 1
      crmeb/app/services/other/export/ExportServices.php

+ 5 - 1
crmeb/app/services/other/export/ExportServices.php

@@ -129,7 +129,11 @@ class ExportServices extends BaseServices
                 }
                 }
                 $custom_form = '';
                 $custom_form = '';
                 foreach ($item['custom_form'] as $custom_form_value) {
                 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 = [];
                 $goodsName = [];