|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |