From 190c272ea31bb1e3d7d93e75b1ff0fd0c3cfe22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 14 Jul 2025 10:59:34 +0800 Subject: [PATCH] eee --- Traits/QueryTrait.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index ef40943..c941570 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -1058,12 +1058,12 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq */ private function sprintf(string $column, mixed $value, string $opera = '='): string { -// if (is_string($value)) { -// [$alias, $field] = explode('.', $value); -// if (in_array($alias, $this->_alias)) { -// return $column . ' ' . $opera . ' ' . $value; -// } -// } + if (is_string($value)) { + [$alias, $field] = explode('.', $value); + if (in_array($alias, $this->_alias)) { + return $column . ' ' . $opera . ' ' . $value; + } + } $this->pushParam($value); return $column . ' ' . $opera . ' ?'; }