mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
搜索条件细节优化
This commit is contained in:
@ -133,8 +133,13 @@ class AppNavService
|
||||
// 等值
|
||||
if(isset($params['is_enable']) && $params['is_enable'] > -1)
|
||||
{
|
||||
|
||||
$where[] = ['is_enable', '=', intval($params['is_enable'])];
|
||||
}
|
||||
if(isset($params['is_need_login']) && $params['is_need_login'] > -1)
|
||||
{
|
||||
$where[] = ['is_need_login', '=', intval($params['is_need_login'])];
|
||||
}
|
||||
if(isset($params['event_type']) && $params['event_type'] > -1)
|
||||
{
|
||||
$where[] = ['event_type', '=', intval($params['event_type'])];
|
||||
|
||||
Reference in New Issue
Block a user