Commit 1ccc1cb7 by chamberone

feat: add logs

1 parent befb7829
...@@ -34,12 +34,14 @@ import cn.hutool.core.lang.Validator; ...@@ -34,12 +34,14 @@ import cn.hutool.core.lang.Validator;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.crypto.SecureUtil; import cn.hutool.crypto.SecureUtil;
import lombok.extern.slf4j.Slf4j;
/** /**
* 用户业务层 * 用户业务层
* *
*/ */
@Service @Service
@Slf4j
public class UserService { public class UserService {
/** /**
...@@ -58,6 +60,8 @@ public class UserService { ...@@ -58,6 +60,8 @@ public class UserService {
public Result<?> userLogin(String account, String password) { public Result<?> userLogin(String account, String password) {
UserEntity user = userDao.findByAccountAndPassword(account, SecureUtil.md5(password)); UserEntity user = userDao.findByAccountAndPassword(account, SecureUtil.md5(password));
System.out.println(account + " : " + password + " : " + SecureUtil.md5(password));
log.info("{}:{}:{}:{}", account, password, SecureUtil.md5(password), user);
if (null != user) { if (null != user) {
// 生成token // 生成token
UserLoginDTO userDTO = BeanUtil.copyProperties(user, UserLoginDTO.class); UserLoginDTO userDTO = BeanUtil.copyProperties(user, UserLoginDTO.class);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!