From c1845e01662a27b34d2919b817e0cbc47880d7f0 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Wed, 24 Aug 2022 09:10:32 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/cweb/controller/WechatController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);