diff --git a/application/controllers/Api/Sysset.php b/application/controllers/Api/Sysset.php index c11a8f8..eec37e5 100644 --- a/application/controllers/Api/Sysset.php +++ b/application/controllers/Api/Sysset.php @@ -54,7 +54,7 @@ class Api_SyssetController extends Ctrl_Api{ $data = $UserModel->field("*")->where("id={$uid}")->fRow(); //获取笼位数量 $Cagemodel = new CageModel(); - $CageNum = $Cagemodel->field('count(*) as num')->where("c_user_id={$uid}")->fRow(); + $CageNum = $Cagemodel->field('count(*) as num')->where("c_user_id={$uid} and is_delete=0")->fRow(); $data['cage_num'] = $CageNum['num']; unset($data['password']); Tool_Fnc::apiMsg('获取成功', '200',$data);