From d5a6a2b326c87f9fa51a6585baee5af378e55a82 Mon Sep 17 00:00:00 2001 From: walkor Date: Tue, 6 Dec 2022 21:15:30 +0800 Subject: [PATCH] save --- src/plugin/admin/app/common/LayuiForm.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugin/admin/app/common/LayuiForm.php b/src/plugin/admin/app/common/LayuiForm.php index 220650c..5242e50 100644 --- a/src/plugin/admin/app/common/LayuiForm.php +++ b/src/plugin/admin/app/common/LayuiForm.php @@ -191,7 +191,7 @@ EOF; $item = json_encode($item, JSON_UNESCAPED_UNICODE); $options_string .= "\r\n $key: $item,"; } else { - $options_string .= "\r\n $key: '$item',"; + $options_string .= "\r\n $key: \"$item\","; } } @@ -263,7 +263,7 @@ EOF; $item = json_encode($item, JSON_UNESCAPED_UNICODE); $options_string .= "\r\n $key: $item,"; } else { - $options_string .= "\r\n $key: '$item',"; + $options_string .= "\r\n $key: \"$item\","; } } @@ -342,7 +342,7 @@ EOF; if (is_array($item)) { continue; } - $options_string .= "\r\n $key: '$item',"; + $options_string .= "\r\n $key: \"$item\","; } $id = $this->createId($field); @@ -396,7 +396,7 @@ EOF; if (is_array($item)) { continue; } - $options_string .= "\r\n $key: '$item',"; + $options_string .= "\r\n $key: \"$item\","; } $id = $this->createId($field); $id_start = "$id-date-start"; @@ -455,7 +455,7 @@ EOF; $item = json_encode($item, JSON_UNESCAPED_UNICODE); $options_string .= "\r\n $key: $item,"; } else { - $options_string .= "\r\n $key: '$item',"; + $options_string .= "\r\n $key: \"$item\","; } } @@ -613,7 +613,7 @@ EOF; $item = json_encode($item, JSON_UNESCAPED_UNICODE); $options_string .= "\r\n".($url?' ':' ')."$key: $item,"; } else { - $options_string .= "\r\n".($url?' ':' ')."$key: '$item',"; + $options_string .= "\r\n".($url?' ':' ')."$key: \"$item\","; } }