From 66abc3ce8009e42790c073d752a9a36e022ed668 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 14 一月 2025 08:41:57 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java
index 66a2b62..1adba5d 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java
@@ -135,6 +135,7 @@
         if(sysUser.getRoleType() == 2){
             share.setObjectId(sysUser.getObjectId().longValue());
         }
+        share.setAuditStatus(0);
         share.setDelFlag(0);
         shareService.save(share);
         return R.ok();
@@ -143,6 +144,9 @@
     @ApiOperation(value = "广告管理-分享管理-编辑", tags = {"管理后台"})
     @PostMapping("/manage/edit")
     public R<Void> manageedit(@RequestBody Share share) {
+        if (share.getAuditStatus()==2){
+            share.setAuditStatus(0);
+        }
         shareService.updateById(share);
         return R.ok();
     }

--
Gitblit v1.7.1