This commit is contained in:
as2252258@163.com
2021-02-28 00:43:59 +08:00
parent 72ddcbb2b7
commit e3f66ea878
+5 -4
View File
@@ -47,11 +47,12 @@ abstract class Condition extends BaseObject
*/
public function setValue($value): void
{
if (is_array($value)) {
$this->value = array_map(function ($_value) {
return is_numeric($_value) ? $_value : '\'' . $_value . '\'';
}, $value);
} else {
$this->value = is_numeric($value) ? $value : '\'' . $value . '\'';
if (is_array($this->value)) {
$this->value = array_map(function ($value) {
return is_numeric($value) ? $value : '\''.$value.'\'';
}, $this->value);
}
}