|
@@ -79,9 +79,7 @@ public class WxaUserApiController extends WxaController {
|
|
|
doctorsWechatfind.setUpdateAt(new Date());
|
|
|
doctorsWechatfind.update();
|
|
|
}
|
|
|
- DoctorsWechat doctorsWechat = DoctorsWechat.dao.findFirst("select * from doctors_wechat where wxa_openid=?",
|
|
|
- apiResult.getStr("openid"));
|
|
|
- Doctors doctors = Doctors.dao.findById(doctorsWechat.getDoctorId());
|
|
|
+ Doctors doctors = Doctors.dao.findById(doctorsWechatfind.getDoctorId());
|
|
|
accessTokenCache.set("wxa:session:" + sessionId, apiResult.getJson());
|
|
|
LoginBean loginBean = new LoginBean();
|
|
|
loginBean.setSessionId(sessionId);
|