刘韬 5 年 前
コミット
b35b0c3684

+ 1 - 1
PacsOnline_Wechat_Doctor/src/main/java/com/zskk/common/ZskkConfig.java

@@ -87,7 +87,7 @@ public class ZskkConfig extends JFinalConfig {
 		me.add(redisPlugin);
 		
 		RedisPlugin redisPluginPc = new RedisPlugin("pc", "10.46.159.65", 6379, 2000, "Zskk_2019", 0);
-		redisPluginPc.setSerializer(new JdkSerializer()); // 需要使用fst高性能序列化的用户请删除这一行(Fst jar依赖请查看WIKI)
+		redisPluginPc.setSerializer(new JsonSerializer()); // 需要使用fst高性能序列化的用户请删除这一行(Fst jar依赖请查看WIKI)
 		me.add(redisPluginPc);
 	}
 

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

@@ -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));