cbx
fjj 2024-01-11 22:26:52 +08:00
parent a7cbc827c5
commit 227ba63d99
2 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ public class Doctor {
private String userName; private String userName;
private Integer reviewStatus; private Integer reviewStatus;
private String phone; private String phone;
private String password; private String pwd;
private String name; private String name;
private String imagePic; private String imagePic;
private String jobTitle; private String jobTitle;
@ -82,12 +82,12 @@ public class Doctor {
this.phone = phone; this.phone = phone;
} }
public String getPassword() { public String getPwd() {
return password; return pwd;
} }
public void setPassword(String password) { public void setPwd(String pwd) {
this.password = password; this.pwd = pwd;
} }
public String getName() { public String getName() {

View File

@ -31,7 +31,7 @@ public class HealthDoctorService {
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
if (s.equals(data.getSysUser().getPassword())){ if (s.equals(data.getDoctor().getPwd())){
Map<String, Object> token = tokenService.createToken(data); Map<String, Object> token = tokenService.createToken(data);
String accessToken = (String) token.get("access_token"); String accessToken = (String) token.get("access_token");
doctorVo.setSessionId(accessToken); doctorVo.setSessionId(accessToken);