From d294abb765e4ed349907c92ce313689c6299ba7d Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期二, 02 十二月 2025 00:17:00 +0800
Subject: [PATCH] feat:地图都改为天地图的接口

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java
index 7175013..0480114 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/SysTaskAttachmentController.java
@@ -65,7 +65,6 @@
     /**
      * 鏌ヨ浠诲姟闄勪欢鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('task:general:query')")
     @GetMapping("/list/{taskId}")
     public AjaxResult list(@PathVariable("taskId") Long taskId) {
         SysTask task = sysTaskService.getTaskDetail(taskId);
@@ -75,12 +74,12 @@
     /**
      * 涓婁紶浠诲姟闄勪欢
      */
-    @PreAuthorize("@ss.hasPermi('task:general:edit')")
+
     @Log(title = "浠诲姟闄勪欢", businessType = BusinessType.INSERT)
     @PostMapping("/upload/{taskId}")
     public AjaxResult upload(@PathVariable("taskId") Long taskId, 
                             @RequestParam("file") MultipartFile file,
-                            @RequestParam(value = "category", required = false) String category) {
+                            @RequestParam(value = "category", required = true) String category) {
         try {
             Long attachmentId= sysTaskService.uploadAttachment(taskId, file, category);
             if (attachmentId > 0) {
@@ -119,7 +118,6 @@
     /**
      * 鍒犻櫎浠诲姟闄勪欢
      */
-    @PreAuthorize("@ss.hasPermi('task:general:edit')")
     @Log(title = "浠诲姟闄勪欢", businessType = BusinessType.DELETE)
     @DeleteMapping("/{attachmentId}")
     public AjaxResult remove(@PathVariable("attachmentId") Long attachmentId) {
@@ -138,7 +136,6 @@
     /**
      * 浠庡井淇ediaId涓婁紶闄勪欢锛堝井淇″皬绋嬪簭涓撶敤锛�
      */
-    @PreAuthorize("@ss.hasPermi('task:general:edit')")
     @Log(title = "浠诲姟闄勪欢", businessType = BusinessType.INSERT)
     @PostMapping("/uploadFromWechat/{taskId}")
     public AjaxResult uploadFromWechat(@PathVariable("taskId") Long taskId,

--
Gitblit v1.9.1