From 5a57b1b73022877150bb7a5fba58d1a636874dfa Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期四, 23 十月 2025 15:01:31 +0800
Subject: [PATCH] 1020更新

---
 ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TUserServiceImpl.java |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TUserServiceImpl.java b/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TUserServiceImpl.java
index d27f0d8..7807147 100644
--- a/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TUserServiceImpl.java
+++ b/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TUserServiceImpl.java
@@ -5,6 +5,7 @@
 import com.ruoyi.common.core.constant.Constants;
 import com.ruoyi.common.core.constant.RedisConstants;
 import com.ruoyi.common.core.exception.GlobalException;
+import com.ruoyi.common.core.web.page.PageInfo;
 import com.ruoyi.common.security.service.TokenService;
 import com.ruoyi.study.domain.TUser;
 import com.ruoyi.study.dto.AppUserQuery;
@@ -40,12 +41,13 @@
     private TokenService tokenService;
 
     @Override
-    public List<AppUserVO> listAll(AppUserQuery query) {
-        return this.baseMapper.listAll(query);
+    public List<AppUserVO> listAll(AppUserQuery query, PageInfo<AppUserVO> pageInfo) {
+        return this.baseMapper.listAll(query, pageInfo);
     }
 
     @Autowired
     private HWSendSms hwSendSms;
+
 
     @Override
     public Boolean phoneCode(String phone) throws Exception {
@@ -81,7 +83,7 @@
          * key为 --> phone_code:手机号码 (phone_code表示该业务为 验证码登录)
          * value为 --> 随机验证码:时间戳 (时间戳用于计算是否超过1分钟的重发时间)
          */
-        redisTemplate.opsForValue().set(RedisConstants.PHONE_CODE + phone, phoneCode + ":" + System.currentTimeMillis(), 3, TimeUnit.MINUTES);
+        redisTemplate.opsForValue().set(RedisConstants.PHONE_CODE + phone, phoneCode + ":" + System.currentTimeMillis(), 5, TimeUnit.MINUTES);
         String sendMessage = "验证码发送成功,您的验证码为:" + phoneCode + ",该验证码三分钟内有效,请及时完成登陆";
         // todo 发送此消息
         System.out.println(sendMessage);
@@ -101,4 +103,9 @@
         return null != vipEndTime && System.currentTimeMillis() <= vipEndTime.getTime();
     }
 
+    @Override
+    public void updateOne(Integer id, Date vipEndTime,Date vipPayTime) {
+        this.baseMapper.updateOne(id,vipPayTime,vipPayTime);
+    }
+
 }

--
Gitblit v1.7.1