This commit is contained in:
2020-12-24 11:12:23 +08:00
parent 5a7c7176dc
commit f18031c2c0
18 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ namespace Database\Orm;
use ReflectionException;
use Snowflake\Core\JSON;
use Snowflake\Core\Json;
use Snowflake\Core\Str;
use Snowflake\Exception\NotFindClassException;
use Snowflake\Snowflake;
@@ -205,7 +205,7 @@ trait Condition
if (is_numeric($value)) {
return $value;
} else {
if (!is_null(JSON::decode($value))) {
if (!is_null(Json::decode($value))) {
return $value;
}
return '\'' . Str::encode($value) . '\'';