|
@@ -83,7 +83,7 @@ public class WxaUserApiController extends WxaController {
|
|
|
doctors.setPassword("");
|
|
|
String tokenKey = "TOKEN_WXA_" + StrKit.getRandomUUID();
|
|
|
String doctorsStr = JSON.toJSONString(doctors);
|
|
|
- Redis.use("pc").setex("think" + tokenKey, 7200, doctorsStr);
|
|
|
+ Redis.use("pc").setex("think" + tokenKey, 7200, doctors.toJson());
|
|
|
loginBean.setDoctorBean(doctors);
|
|
|
loginBean.setToken(tokenKey);
|
|
|
}
|
|
@@ -276,7 +276,7 @@ public class WxaUserApiController extends WxaController {
|
|
|
doctors.setPassword("");
|
|
|
String tokenKey = "TOKEN_WXA_" + StrKit.getRandomUUID();
|
|
|
String doctorsStr = JSON.toJSONString(doctors);
|
|
|
- Redis.use("pc").setex("think" + tokenKey, 7200, doctorsStr);
|
|
|
+ Redis.use("pc").setex("think" + tokenKey, 7200, doctors.toJson());
|
|
|
loginBean.setDoctorBean(doctors);
|
|
|
loginBean.setToken(tokenKey);
|
|
|
renderJson(new ResultBean(loginBean));
|