订单导出增加自定义表单内容

This commit is contained in:
evoxwht 2023-06-19 11:04:15 +08:00
parent 0ffea0976b
commit 525be22b79

View File

@ -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 = [];