From 59139c3f3f6e5d0994b1488b718ed62317f309c9 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 25 七月 2020 15:03:01 +0800 Subject: [PATCH] #当前本版十分完美、冻结 --- src/main/java/com/zy/common/web/AuthController.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/common/web/AuthController.java b/src/main/java/com/zy/common/web/AuthController.java index 51e204a..beb3a50 100644 --- a/src/main/java/com/zy/common/web/AuthController.java +++ b/src/main/java/com/zy/common/web/AuthController.java @@ -66,7 +66,7 @@ if (user.getStatus()!=1){ return R.parse(CodeRes.USER_10002); } - if (!Cools.md5(user.getPassword()).equals(password)){ + if (!user.getPassword().equals(password)){ return R.parse(CodeRes.USER_10003); } String token = Cools.enToken(System.currentTimeMillis() + mobile, user.getPassword()); @@ -74,6 +74,7 @@ UserLogin userLogin = new UserLogin(); userLogin.setUserId(user.getId()); userLogin.setToken(token); + userLogin.setCreateTime(new Date()); userLoginService.insert(userLogin); Map<String, Object> res = new HashMap<>(); res.put("username", user.getUsername()); -- Gitblit v1.9.1