diff --git a/hai-cweb/src/main/java/com/cweb/controller/WechatController.java b/hai-cweb/src/main/java/com/cweb/controller/WechatController.java index 2f2db978..9aa06379 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/WechatController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/WechatController.java @@ -339,11 +339,11 @@ public class WechatController { HttpServletRequest request, HttpServletResponse response) { try { - HighUser user = highUserService.findByOpenId(openId); + HighUser user = highUserService.findByOpenIdH5(openId); if (user == null) { user = new HighUser(); - user.setName("用户" + IDGenerator.nextId(5)); + user.setName("临时游客"); user.setRegTime(new Date()); user.setGold(0); user.setOpenId(openId); @@ -353,7 +353,7 @@ public class WechatController { // 1:需要填写用户信息 // 2:需要填写手机号 user.setInfoCompleteStatus(1); - highUserService.insertUser(user , null , null); + } // 定义个人所有数据 @@ -361,7 +361,7 @@ public class WechatController { HighUser detailData = highUserService.getDetailDataByUser(user.getId()); detailData.setPassword(null); highUserModel.setHighUser(detailData); - SessionObject so = new SessionObject(user.getOpenId(), 1, highUserModel); + SessionObject so = new SessionObject(user.getPhone(), 1, highUserModel); userCenter.save(request, response, so); return ResponseMsgUtil.success(so);