yangsai@163.com 8 months ago
parent c767f82382
commit 8f832473d2
  1. 6
      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);
}
}
Loading…
Cancel
Save