diff --git a/application/controllers/Api/Sysset.php b/application/controllers/Api/Sysset.php index 0a5c529..4bee951 100644 --- a/application/controllers/Api/Sysset.php +++ b/application/controllers/Api/Sysset.php @@ -45,5 +45,11 @@ class Api_SyssetController extends Ctrl_Api{ Tool_Fnc::apiMsg('设置成功', '200'); //写入配置 } + 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(); + Tool_Fnc::apiMsg('获取成功', '200',$data); + } } \ No newline at end of file