From 81da61b828e29b7745e1382dfbbaeb685dc083ef Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 23 一月 2024 17:17:55 +0800
Subject: [PATCH] 抖音转链修改

---
 fanli/src/main/java/com/yeshi/fanli/controller/admin/MessageController.java |  144 ++++++++++++++++++++++++------------------------
 1 files changed, 72 insertions(+), 72 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/admin/MessageController.java b/fanli/src/main/java/com/yeshi/fanli/controller/admin/MessageController.java
index 90c7937..6eeb9ae 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/admin/MessageController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/admin/MessageController.java
@@ -1,72 +1,72 @@
-package com.yeshi.fanli.controller.admin;
-
-import java.io.PrintWriter;
-
-import javax.annotation.Resource;
-
-import com.yeshi.fanli.entity.accept.AdminAcceptData;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.yeshi.utils.JsonUtil;
-
-import com.google.gson.Gson;
-import com.yeshi.fanli.dto.msg.MsgCommonDTO;
-import com.yeshi.fanli.exception.config.ConfigException;
-import com.yeshi.fanli.service.inter.config.ConfigService;
-import com.yeshi.fanli.service.inter.msg.MsgConfigService;
-
-@Controller
-@RequestMapping("admin/new/api/v1/message")
-public class MessageController {
-
-	@Resource
-	private ConfigService configService;
-
-	@Resource
-	private MsgConfigService msgConfigService;
-
-	@RequestMapping(value = "getZhuShou")
-	public void getZhuShou(AdminAcceptData acceptData, String callback, PrintWriter out) {
-		// 鏉挎牀蹇渷灏忓姪鎵�
-		MsgCommonDTO zhuShouMsg = msgConfigService.getZhuShouMsg(acceptData.getSystem());
-		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(new Gson().toJson(zhuShouMsg)));
-	}
-
-	@RequestMapping(value = "saveZhuShou", method = RequestMethod.POST)
-	public void saveZhouShou(AdminAcceptData acceptData,String callback, MsgCommonDTO dto, PrintWriter out) {
-		if (dto.getJumpDetail() == null) {
-			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("璇锋寚瀹氳烦杞柟寮�"));
-			return;
-		}
-		try {
-			msgConfigService.addZhuShouMsg(dto,acceptData.getSystem());
-		} catch (ConfigException e) {
-			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(e.getMsg()));
-			return;
-		}
-		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(""));
-	}
-
-	@RequestMapping(value = "getGuanXuan", method = RequestMethod.POST)
-	public void getGuanXuan(AdminAcceptData acceptData,String callback, PrintWriter out) {
-		MsgCommonDTO guanXuan = msgConfigService.getGuanXuanMsg(acceptData.getSystem());
-		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(new Gson().toJson(guanXuan)));
-	}
-
-	@RequestMapping(value = "saveGuanXuan", method = RequestMethod.POST)
-	public void saveGuanXuan(AdminAcceptData acceptData,String callback, MsgCommonDTO dto, PrintWriter out) {
-		if (dto.getJumpDetail() == null) {
-			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("璇锋寚瀹氳烦杞柟寮�"));
-			return;
-		}
-		try {
-			msgConfigService.addGuanXuanMsg(dto,acceptData.getSystem());
-		} catch (ConfigException e) {
-			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(e.getMsg()));
-			return;
-		}
-		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(""));
-	}
-
-}
+package com.yeshi.fanli.controller.admin;
+
+import java.io.PrintWriter;
+
+import javax.annotation.Resource;
+
+import com.yeshi.fanli.entity.accept.AdminAcceptData;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.yeshi.utils.JsonUtil;
+
+import com.google.gson.Gson;
+import com.yeshi.fanli.dto.msg.MsgCommonDTO;
+import com.yeshi.fanli.exception.config.ConfigException;
+import com.yeshi.fanli.service.inter.config.ConfigService;
+import com.yeshi.fanli.service.inter.msg.MsgConfigService;
+
+@Controller
+@RequestMapping("admin/new/api/v1/message")
+public class MessageController {
+
+	@Resource
+	private ConfigService configService;
+
+	@Resource
+	private MsgConfigService msgConfigService;
+
+	@RequestMapping(value = "getZhuShou")
+	public void getZhuShou(AdminAcceptData acceptData, String callback, PrintWriter out) {
+		// 鏉挎牀蹇渷灏忓姪鎵�
+		MsgCommonDTO zhuShouMsg = msgConfigService.getZhuShouMsg(acceptData.getSystem());
+		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(new Gson().toJson(zhuShouMsg)));
+	}
+
+	@RequestMapping(value = "saveZhuShou", method = RequestMethod.POST)
+	public void saveZhouShou(AdminAcceptData acceptData,String callback, MsgCommonDTO dto, PrintWriter out) {
+		if (dto.getJumpDetail() == null) {
+			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("璇锋寚瀹氳烦杞柟寮�"));
+			return;
+		}
+		try {
+			msgConfigService.addZhuShouMsg(dto,acceptData.getSystem());
+		} catch (ConfigException e) {
+			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(e.getMsg()));
+			return;
+		}
+		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(""));
+	}
+
+	@RequestMapping(value = "getGuanXuan", method = RequestMethod.POST)
+	public void getGuanXuan(AdminAcceptData acceptData,String callback, PrintWriter out) {
+		MsgCommonDTO guanXuan = msgConfigService.getGuanXuanMsg(acceptData.getSystem());
+		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(new Gson().toJson(guanXuan)));
+	}
+
+	@RequestMapping(value = "saveGuanXuan", method = RequestMethod.POST)
+	public void saveGuanXuan(AdminAcceptData acceptData,String callback, MsgCommonDTO dto, PrintWriter out) {
+		if (dto.getJumpDetail() == null) {
+			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("璇锋寚瀹氳烦杞柟寮�"));
+			return;
+		}
+		try {
+			msgConfigService.addGuanXuanMsg(dto,acceptData.getSystem());
+		} catch (ConfigException e) {
+			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(e.getMsg()));
+			return;
+		}
+		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(""));
+	}
+
+}

--
Gitblit v1.8.0