mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
教师信息没有的只是返回kid
This commit is contained in:
@@ -241,8 +241,13 @@ public class TeacherApi extends ApiBaseController {
|
||||
if(StringUtils.isBlank(id)){
|
||||
return badRequest("参数异常");
|
||||
}
|
||||
Account a = accountService.get(id);
|
||||
if(a==null) {
|
||||
return badRequest("用户不对,数据错误,请联系管理员");
|
||||
}
|
||||
Teacher teacher = service.get(id);
|
||||
Map<String,Object> rs=new HashMap<String,Object>();
|
||||
rs.put("sysId",a.getSysId());
|
||||
if(teacher!=null){
|
||||
rs.put("id",id);
|
||||
rs.put("photo",teacher.getPhoto());
|
||||
|
||||
Reference in New Issue
Block a user