From 2ed6444f45d227e2acc6de65c3e8b582440fb83a Mon Sep 17 00:00:00 2001
From: luofl <1442745593@qq.com>
Date: 星期四, 06 三月 2025 09:20:40 +0800
Subject: [PATCH] 迭代版本:2.28

---
 ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java
index f1bd4ef..d96f746 100644
--- a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java
+++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java
@@ -261,12 +261,12 @@
 	@Override
 	public R<LoginVo> registerAccount(RegisterAccount registerAccount) {
 		//校验验证码
-		String code = redisService.getCacheObject(registerAccount.getPhone());
-		if(!"999999".equals(registerAccount.getCode())){
-			if(null == code || !code.equals(registerAccount.getCode())){
-				return R.fail("验证码错误");
-			}
-		}
+//		String code = redisService.getCacheObject(registerAccount.getPhone());
+//		if(!"999999".equals(registerAccount.getCode())){
+//			if(null == code || !code.equals(registerAccount.getCode())){
+//				return R.fail("验证码错误");
+//			}
+//		}
 		//使用jscode获取微信openid
 		Map<String, Object> map = weChatUtil.code2Session(registerAccount.getJscode());
 		Integer errcode = Integer.valueOf(map.get("errcode").toString());
@@ -474,7 +474,7 @@
 			
 			//获取微信推广二维码
 			String fileName = UUID.randomUUID() + ".jpg";
-			String getwxacodeunlimit = weChatUtil.getwxacodeunlimit("pages/login/login", "id=" + appUser.getId(), EnvVersion.RELEASE, filePath + fileName);
+			String getwxacodeunlimit = weChatUtil.getwxacodeunlimit("pages/start/start", "id=" + appUser.getId(), EnvVersion.RELEASE, filePath + fileName);
 			appUser.setQrCode(getwxacodeunlimit);
 			this.updateById(appUser);
 
@@ -492,8 +492,8 @@
 		loginVo.setFailureTime(Long.valueOf(tokenApplet.get("expires_in").toString()));
 		return R.ok(loginVo);
 	}
-	
-	
+
+
 	/**
 	 * 会员等级变化
 	 */
@@ -894,7 +894,7 @@
 					.eq(AppUser::getStatus, 1).in(AppUser::getId, replaceable));
 			for (AppUser appUser : list) {
 				Long data = orderClient.getOrderCountByAppUserId(appUser.getId()).getData();
-				if(data == 0){
+				if(data == 0L){
 					appUser.setChangePromoter(1);
 					this.updateById(appUser);
 				}
@@ -973,6 +973,8 @@
 				Set<Integer> shopIds = shopR.getData();
 				if (!CollectionUtils.isEmpty(shopIds)){
 					appUser.setShopIds(shopIds);
+				}else {
+					return new Page<>();
 				}
 			}
 		}
@@ -1053,4 +1055,9 @@
 			}
 		}
 	}
+
+	@Override
+	public List<AppUser> getAppUserByPhoneNoFilter(String phone) {
+		return this.baseMapper.getAppUserByPhoneNoFilter(phone);
+	}
 }

--
Gitblit v1.7.1