Commit 202aef7b authored by wangjiangze's avatar wangjiangze

分前端酒店筛选列表条件更新

parent 60922f7b
......@@ -18,10 +18,10 @@ class FrontAction extends CommonAction{
$hotelModel = D("Hotel");
$spModel = D("Sp");
if($userInfo['sp_ids']&&$userInfo['grade']>=3){
$hotel_lists = $hotelModel->where("`status`=0 and sp_id in(".$userInfo['sp_ids'].")")->select();
$hotel_lists = $hotelModel->where("sp_id in(".$userInfo['sp_ids'].")")->select();
$sp_lists = $spModel->where("`status`=0 and id in(".$userInfo['sp_ids'].")")->select();
}else{
$hotel_lists = $hotelModel->where("`status`=0")->select();
$hotel_lists = $hotelModel->select();
$sp_lists = $spModel->where("`status`=0")->select();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment