|
|
|
@ -48,7 +48,12 @@ class Api_SyssetController extends Ctrl_Api{ |
|
|
|
|
public function getUserinfoAction(){ |
|
|
|
|
$uid = empty($this->POST['uid'])?Tool_Fnc::apiMsg('请先登录', '500'):$this->POST['uid']; |
|
|
|
|
$UserModel = new UserModel(); |
|
|
|
|
$data = $UserModel->field('id,username,type,realname,faculties,specialized,group,teacher,phone,status,is_delete')->where("id={$uid}")->fRow(); |
|
|
|
|
$data = $UserModel->field("*")->where("id={$uid}")->fRow(); |
|
|
|
|
//获取笼位数量 |
|
|
|
|
$Cagemodel = new CageModel(); |
|
|
|
|
$CageNum = $Cagemodel->field('count(*) as num')->where("user_id={$uid}")->fRow(); |
|
|
|
|
$data['cage_num'] = $CageNum['num']; |
|
|
|
|
unset($data['password']); |
|
|
|
|
Tool_Fnc::apiMsg('获取成功', '200',$data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|