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

View File

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