Skip to content

Commit 7ef6f04

Browse files
authored
Merge pull request #36 from teamones-open/dev_weijer
fixed: 隐式转换非数组只处理 = >= =< <> 逻辑
2 parents 87d3b9d + aabed77 commit 7ef6f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/think/model/RelationModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2801,7 +2801,7 @@ protected function correctionDataValue($filed, $condition, $filterVal, $editorPa
28012801

28022802
return $newFilterVal;
28032803
}else{
2804-
if(strpos($filterVal, ',') === false){
2804+
if (in_array(strtolower($condition), ["eq", "neq", "gt", "egt", "lt", "elt"]) && strpos($filterVal, ',') === false) {
28052805
return (int)$filterVal;
28062806
}
28072807
}

0 commit comments

Comments
 (0)