|
@@ -390,14 +390,14 @@ public class WxaUserApiController extends WxaController {
|
|
|
renderJson(ErrorConstant.ERROR_WXA_SESSION_CONTENT);
|
|
|
return;
|
|
|
}
|
|
|
- DoctorsWechat doctorsWechat = DoctorsWechat.dao.findFirst("select * from doctors_wechat where wxa_openid=?", sessionResult.get("openid"));
|
|
|
+ DoctorsWechat doctorsWechat = DoctorsWechat.dao.findFirst("select * from doctors_wechat where wxa_openid=?", sessionResult.getStr("openid"));
|
|
|
// doctorsWechat.setDoctorId("");
|
|
|
// doctorsWechat.setCreateAt(new Date());
|
|
|
// doctorsWechat.update();
|
|
|
// LoginBean loginBean = new LoginBean();
|
|
|
// loginBean.setSessionId(sessionId);
|
|
|
// renderJson(new ResultBean(loginBean));
|
|
|
- renderText(doctorsWechat.toJson());;
|
|
|
+ renderText(sessionJson);;
|
|
|
} catch (Exception e) {
|
|
|
// TODO: handle exception
|
|
|
renderText(e.toString());
|