From 3717a50a7dda3a41279fa3304798bfc5808907c8 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期三, 05 十一月 2025 10:31:30 +0800
Subject: [PATCH] init

---
 /dev/null                                                                               |   39 -------------------
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java                   |   39 -------------------
 ruoyi-applet/src/main/java/com/ruoyi/web/controller/webSocket/WebSocketAuthHandler.java |   29 +-------------
 3 files changed, 2 insertions(+), 105 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TSecretConfigController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TSecretConfigController.java
deleted file mode 100644
index 061274c..0000000
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TSecretConfigController.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.ruoyi.web.controller.api;
-
-
-import com.ruoyi.common.core.domain.R;
-import com.ruoyi.system.model.TSecretConfig;
-import com.ruoyi.system.service.TSecretConfigService;
-import io.swagger.annotations.ApiOperation;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * <p>
- * 密钥 前端控制器
- * </p>
- *
- * @author xiaochen
- * @since 2025-10-13
- */
-@RestController
-@RequestMapping("")
-public class TSecretConfigController {
-
-    private final TSecretConfigService secretConfigService;
-
-    @Autowired
-    public TSecretConfigController(TSecretConfigService secretConfigService) {
-        this.secretConfigService = secretConfigService;
-    }
-
-    @ApiOperation(value = "密钥", response = TSecretConfig.class)
-    @PostMapping(value = "/api/system/getEncryptionKey")
-    public R<TSecretConfig> pageList() {
-        return R.ok(secretConfigService.getById(12879));
-    }
-
-}
-
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java
index 8959f2b..fa9f2fd 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java
@@ -25,45 +25,6 @@
 @Component
 public class TaskUtil {
 
-    @Autowired
-    private RedisCache redisCache;
-    @Autowired
-    private TAppUserService appUserService;
-    @Autowired
-    private TAppUserPositioningService appUserPositioningService;
-
-    //每天0点30分执行
-    @Scheduled(cron = "0 30 0 * * ?")
-    public void dayOfSavePositioning() {
-        try {
-            // 获取前一天时间
-            LocalDate localDate = LocalDate.now().minusDays(1);
-            // 查询所有的用户
-            List<TAppUser> appUserList = appUserService.list(Wrappers.lambdaQuery(TAppUser.class)
-                    .eq(TAppUser::getState, 1)
-                    .eq(TAppUser::getState, 1));
-
-            List<TAppUserPositioning> appUserPositioningList = new ArrayList<>();
-
-            for (TAppUser appUser : appUserList) {
-                TAppUserPositioning appUserPositioning = new TAppUserPositioning();
-                // 获取定位
-                String location = redisCache.getCacheObject(Constants.LOCATION + appUser.getId() + ":" + localDate);
-                if(StringUtils.hasLength(location)){
-                    appUserPositioning.setAppUserId(appUser.getId());
-                    appUserPositioning.setUserLocation(location);
-                    appUserPositioning.setCreateTime(localDate.atStartOfDay());
-                    appUserPositioningList.add(appUserPositioning);
-                }
-            }
-            if(!CollectionUtils.isEmpty(appUserPositioningList)){
-                appUserPositioningService.saveBatch(appUserPositioningList);
-            }
-
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-    }
 
 
 }
diff --git a/ruoyi-applet/src/main/java/com/ruoyi/web/controller/webSocket/WebSocketAuthHandler.java b/ruoyi-applet/src/main/java/com/ruoyi/web/controller/webSocket/WebSocketAuthHandler.java
index b475c5a..77ae9f0 100644
--- a/ruoyi-applet/src/main/java/com/ruoyi/web/controller/webSocket/WebSocketAuthHandler.java
+++ b/ruoyi-applet/src/main/java/com/ruoyi/web/controller/webSocket/WebSocketAuthHandler.java
@@ -23,9 +23,7 @@
 @Slf4j
 public class WebSocketAuthHandler {
 
-    @Autowired
-    private TAppUserService appUserService;
-    
+
     @Autowired
     private RedisCache redisCache;
     
@@ -45,31 +43,8 @@
                 return AuthResult.failure("用户ID不能为空");
             }
 
-            // 查询用户信息
-            TAppUser appUser = appUserService.getById(appUserId);
-            if (appUser == null) {
-                return AuthResult.failure("用户不存在");
-            }
 
-            // 检查用户状态
-            if (appUser.getStatus() == null || appUser.getStatus() != 1) {
-                return AuthResult.failure("用户已被禁用");
-            }
-
-            // 检查用户审核状态
-            if (appUser.getState() == null || appUser.getState() != 1) {
-                return AuthResult.failure("用户未通过审核");
-            }
-
-            // 这里可以添加token验证逻辑
-            if (token != null && !token.trim().isEmpty()) {
-                // 验证token的有效性
-                if (!validateToken(appUserId, token)) {
-                    return AuthResult.failure("认证令牌无效");
-                }
-            }
-
-            return AuthResult.success(appUser);
+            return AuthResult.success();
         } catch (Exception e) {
             log.error("用户认证失败,用户ID: {}, 错误: {}", appUserId, e.getMessage(), e);
             return AuthResult.failure("认证过程中发生错误: " + e.getMessage());

--
Gitblit v1.7.1