合并1
parent
a7cbc827c5
commit
227ba63d99
|
@ -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() {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue