Commit 9e7c5ac8 by 墨竹

Merge remote-tracking branch 'origin/developer' into developer

parents 80c68c0e f96bc87b
......@@ -556,7 +556,7 @@ public class LoginController extends WebBaseController {
*/
@RequestMapping("/gic-login-check")
@IgnoreLogin
public ModelAndView gicLogin(String code, String hbEnt) {
public ModelAndView gicLogin(String code, String hbEnt,String hbPage) {
logger.info("gic登录clerkId={},hbEnt={}", code, hbEnt);
PowerClerkDTO clerkDTO = this.userService.haobanLoginBack(code);
if (clerkDTO == null) {
......@@ -568,14 +568,19 @@ public class LoginController extends WebBaseController {
String loginPhoneNumber = clerkDTO.getPhoneNumber();
Map<String, String> retMap = new HashMap<>();
retMap.put("wxEnterpriseId", hbEnt);
retMap.put("hbPage", hbPage) ;
retMap.put("enterpriseId", gicEnterpriseId);
retMap.put("phoneNumber", loginPhoneNumber);
retMap.put("timestamp", System.currentTimeMillis()+"") ;
String ret = JSONObject.toJSONString(retMap);
AES aes = SecureUtil.aes(LOGIN_KEY.getBytes());
String random = aes.encryptHex(ret);
String pageStr = "";
if(StringUtils.isNotBlank(hbPage)) {
pageStr += "&hbPage="+hbPage ;
}
RedisUtil.setCache(random, 1,10L,TimeUnit.MINUTES);
ModelAndView model = new ModelAndView(new RedirectView("/haoban-3/#/loginMore?random=" + random, false, false));
ModelAndView model = new ModelAndView(new RedirectView("/haoban-3/#/loginMore?random=" + random+pageStr, false, false));
return model;
}
......
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