刘韬 пре 5 година
родитељ
комит
52caceabd0

+ 2 - 5
PacsOnline_Wechat_Doctor/src/main/java/com/zskk/controller/WxaUserApiController.java

@@ -80,14 +80,11 @@ public class WxaUserApiController extends WxaController {
 			doctorsWechatfind.setUpdateAt(new Date());
 			doctorsWechatfind.update();
 		}
-		Doctors doctors = null;
-//		if (doctorsWechatfind.getDoctorId()!=null) {
-//			doctors = Doctors.dao.findById(doctorsWechatfind.getDoctorId());
-//		}
 		accessTokenCache.set("wxa:session:" + sessionId, apiResult.getJson());
 		LoginBean loginBean = new LoginBean();
 		loginBean.setSessionId(sessionId);
-		if (doctors != null) {
+		if (doctorsWechatfind.getDoctorId() != null) {
+			Doctors doctors = Doctors.dao.findById(doctorsWechatfind.getDoctorId());
 			doctors.setPassword("");
 			DoctorBean doctorBean = JSON.parseObject(doctors.toJson(), DoctorBean.class);
 			Institution institution = Institution.dao.findById(doctorBean.getInstitution_id());