Skip to content

Commit dad6acb

Browse files
committed
改进复合查询
1 parent 8a13000 commit dad6acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ThinkPHP/Lib/Core/Db.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ protected function parseThinkWhere($key,$val) {
550550
break;
551551
case '_complex':
552552
// 复合查询条件
553-
$whereStr = substr($this->parseWhere($val),6);
553+
$whereStr = is_string($val)? $val : substr($this->parseWhere($val),6);
554554
break;
555555
case '_query':
556556
// 字符串模式查询条件

0 commit comments

Comments
 (0)