Commit e77cc6d2 by guojuxing

会员卡域ID和企业查询的微盟店铺信息

parent 4296d25e
...@@ -31,8 +31,8 @@ import com.gic.member.config.api.service.MemberCardApiService; ...@@ -31,8 +31,8 @@ import com.gic.member.config.api.service.MemberCardApiService;
import com.gic.member.config.api.service.ServiceConfigApiService; import com.gic.member.config.api.service.ServiceConfigApiService;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -47,7 +47,7 @@ import java.util.Map; ...@@ -47,7 +47,7 @@ import java.util.Map;
@RestController @RestController
public class LoginController { public class LoginController {
private final Logger logger = LogManager.getLogger(LoginController.class); private final static Logger logger = LogManager.getLogger(LoginController.class);
@Autowired @Autowired
private EnterpriseApiService enterpriseApiService; private EnterpriseApiService enterpriseApiService;
...@@ -113,6 +113,7 @@ public class LoginController { ...@@ -113,6 +113,7 @@ public class LoginController {
if (StringUtils.isBlank(nationCode)) { if (StringUtils.isBlank(nationCode)) {
nationCode = Constants.NATION_CODE; nationCode = Constants.NATION_CODE;
} }
long startTime = System.currentTimeMillis();
Md5Util md5 = new Md5Util(); Md5Util md5 = new Md5Util();
// password 自身作为盐值 // password 自身作为盐值
if (password.length() != 32) { if (password.length() != 32) {
...@@ -177,6 +178,7 @@ public class LoginController { ...@@ -177,6 +178,7 @@ public class LoginController {
} }
//塞缓存 //塞缓存
UserDetailUtils.setUserDetail(userDetail); UserDetailUtils.setUserDetail(userDetail);
logger.info("登录所花时间:{}", System.currentTimeMillis() - startTime);
return RestResponse.success(userDetail); return RestResponse.success(userDetail);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment