From e16302f9d475c7cc4dd18c5abf1a23cb5502e362 Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期三, 28 五月 2025 14:57:56 +0800
Subject: [PATCH] 密码验证加-

---
 src/main/java/com/whyc/controller/ProcessSurveyController.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/whyc/controller/ProcessSurveyController.java b/src/main/java/com/whyc/controller/ProcessSurveyController.java
index b938482..0089f20 100644
--- a/src/main/java/com/whyc/controller/ProcessSurveyController.java
+++ b/src/main/java/com/whyc/controller/ProcessSurveyController.java
@@ -1,11 +1,11 @@
 package com.whyc.controller;
 
+import com.whyc.constant.YamlProperties;
 import com.whyc.dto.ProcessServerDao;
 import com.whyc.dto.Response;
 import com.whyc.pojo.ProcessSurvey;
 import com.whyc.service.ProcessSurveyService;
 import com.whyc.util.ActionUtil;
-import com.whyc.util.JasyptUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.*;
@@ -15,7 +15,7 @@
 @RestController
 @RequestMapping("processSurvey")
 @Api(tags = "鏁版嵁绠$悊-鍚庡彴绾跨▼绠$悊")
-public class ProcessSurveyController {
+public class ProcessSurveyController extends BaseController{
     @Resource
     private ProcessSurveyService service;
     @GetMapping("/getAll")
@@ -24,13 +24,13 @@
         return service.getAll();
     }
 
-    @PutMapping()
+    @PostMapping("update")
     @ApiOperation(value = "閫氳繃id鏇存柊")
     public Response update(@RequestBody ProcessSurvey survey){
         return service.updateById(survey);
     }
 
-    @PutMapping("/updateFlag")
+    @PostMapping("/updateFlag")
     @ApiOperation(value = "閫氳繃鏈嶅姟鍚嶄慨鏀规爣璇�")
     public Response updateFlagByName(@RequestBody ProcessSurvey survey){
         return service.updateServerFlagByName(survey);
@@ -39,7 +39,7 @@
     @PostMapping("/judgeRestart")
     @ApiOperation(value = "楠岃瘉閲嶅惎瀵嗙爜")
     public Response judgeRestart(@RequestParam String password){
-        String default_pwd=(String) ActionUtil.EncryptionMD5(JasyptUtils.decrypt(ProcessServerDao.RESTART_PWD_ENCRYPT));
+        String default_pwd=(String) ActionUtil.EncryptionMD5(YamlProperties.restartPasswd);
         String restart_pwd=(String) ActionUtil.EncryptionMD5(password);
         if(restart_pwd.equals(default_pwd)){
             return new Response().set(1,true,"楠岃瘉閫氳繃");

--
Gitblit v1.9.1