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