|
|
@ -54,7 +54,7 @@ class Api_SyssetController extends Ctrl_Api{ |
|
|
|
$data = $UserModel->field("*")->where("id={$uid}")->fRow(); |
|
|
|
$data = $UserModel->field("*")->where("id={$uid}")->fRow(); |
|
|
|
//获取笼位数量 |
|
|
|
//获取笼位数量 |
|
|
|
$Cagemodel = new CageModel(); |
|
|
|
$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']; |
|
|
|
$data['cage_num'] = $CageNum['num']; |
|
|
|
unset($data['password']); |
|
|
|
unset($data['password']); |
|
|
|
Tool_Fnc::apiMsg('获取成功', '200',$data); |
|
|
|
Tool_Fnc::apiMsg('获取成功', '200',$data); |
|
|
|