diff --git a/application/controllers/Api/Basicinfo.php b/application/controllers/Api/Basicinfo.php index 8e80b57..5af5737 100644 --- a/application/controllers/Api/Basicinfo.php +++ b/application/controllers/Api/Basicinfo.php @@ -28,7 +28,12 @@ class Api_BasicinfoController extends Ctrl_Api{ } //获取基因列表接口 public function groupAction(){ - $data = $this->GroupModel->getModelList(); + $uid = empty($this->POST['uid'])?Tool_Fnc::apiMsg('用户信息获取失败', '500'):$this->POST['uid']; + $usermodel = new UserModel(); + $user = $usermodel->field('*')->where("id={$uid}")->fRow(); + $da['id'] = $user['id']; + $da['title'] = $user['group']; + $data[] = $da; Tool_Fnc::apiMsg('获取成功', '200',$data); }