This commit is contained in:
walkor 2022-12-06 21:15:30 +08:00
parent f606f5a234
commit d5a6a2b326

View File

@ -191,7 +191,7 @@ EOF;
$item = json_encode($item, JSON_UNESCAPED_UNICODE); $item = json_encode($item, JSON_UNESCAPED_UNICODE);
$options_string .= "\r\n $key: $item,"; $options_string .= "\r\n $key: $item,";
} else { } 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); $item = json_encode($item, JSON_UNESCAPED_UNICODE);
$options_string .= "\r\n $key: $item,"; $options_string .= "\r\n $key: $item,";
} else { } else {
$options_string .= "\r\n $key: '$item',"; $options_string .= "\r\n $key: \"$item\",";
} }
} }
@ -342,7 +342,7 @@ EOF;
if (is_array($item)) { if (is_array($item)) {
continue; continue;
} }
$options_string .= "\r\n $key: '$item',"; $options_string .= "\r\n $key: \"$item\",";
} }
$id = $this->createId($field); $id = $this->createId($field);
@ -396,7 +396,7 @@ EOF;
if (is_array($item)) { if (is_array($item)) {
continue; continue;
} }
$options_string .= "\r\n $key: '$item',"; $options_string .= "\r\n $key: \"$item\",";
} }
$id = $this->createId($field); $id = $this->createId($field);
$id_start = "$id-date-start"; $id_start = "$id-date-start";
@ -455,7 +455,7 @@ EOF;
$item = json_encode($item, JSON_UNESCAPED_UNICODE); $item = json_encode($item, JSON_UNESCAPED_UNICODE);
$options_string .= "\r\n $key: $item,"; $options_string .= "\r\n $key: $item,";
} else { } 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); $item = json_encode($item, JSON_UNESCAPED_UNICODE);
$options_string .= "\r\n".($url?' ':' ')."$key: $item,"; $options_string .= "\r\n".($url?' ':' ')."$key: $item,";
} else { } else {
$options_string .= "\r\n".($url?' ':' ')."$key: '$item',"; $options_string .= "\r\n".($url?' ':' ')."$key: \"$item\",";
} }
} }