Browse Source

屏蔽一些短信暴露接口

wuchangfu 1 month ago
parent
commit
4788387486

+ 1 - 1
src/main/java/com/palmnest/webapp/controller/miniprogram/MiniProgramMealCardController.java

@@ -331,7 +331,7 @@ public class MiniProgramMealCardController {
 	 * @param request
 	 * @param request
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/getNeiGouSmsCode")
+	//@RequestMapping(value = "/getNeiGouSmsCode")
 	@ResponseBody
 	@ResponseBody
 	public AppResultDto getNeiGouSmsCode(HttpServletRequest request) {
 	public AppResultDto getNeiGouSmsCode(HttpServletRequest request) {
 
 

+ 1 - 1
src/main/java/com/palmnest/webapp/controller/wechat/MeetingClientController.java

@@ -92,7 +92,7 @@ public class MeetingClientController {
 	 * @param phones
 	 * @param phones
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/sendMsgMeeting")
+	//@RequestMapping(value = "/sendMsgMeeting")
 	@ResponseBody
 	@ResponseBody
 	public AppResultDto sendMsgMeeting(@RequestParam String clientCode, @RequestParam String content, @RequestParam String phones) {
 	public AppResultDto sendMsgMeeting(@RequestParam String clientCode, @RequestParam String content, @RequestParam String phones) {
 		if (!StringUtil.isNotEmpty(clientCode)) {
 		if (!StringUtil.isNotEmpty(clientCode)) {

+ 2 - 2
src/main/java/com/palmnest/webapp/controller/wechat/NeigouNweController.java

@@ -257,7 +257,7 @@ public class NeigouNweController {
 	 * @param request
 	 * @param request
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/getNeiGouSmsCode")
+	// @RequestMapping(value = "/getNeiGouSmsCode")
 	@ResponseBody
 	@ResponseBody
 	public AppResultDto getNeiGouSmsCode(HttpServletRequest request) {
 	public AppResultDto getNeiGouSmsCode(HttpServletRequest request) {
 
 
@@ -301,7 +301,7 @@ public class NeigouNweController {
 	 *
 	 *
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping("/neigouLogin")
+	//@RequestMapping("/neigouLogin")
 	@ResponseBody
 	@ResponseBody
 	public AppResultDto neigouLogin(HttpServletRequest request) {
 	public AppResultDto neigouLogin(HttpServletRequest request) {
 		JSONObject object = new JSONObject();
 		JSONObject object = new JSONObject();

+ 6 - 6
src/main/java/com/palmnest/webapp/controller/wechat/SmsAuthCodeController.java

@@ -41,12 +41,12 @@ public class SmsAuthCodeController {
 
 
 	/**
 	/**
 	 * 获取验证码接口
 	 * 获取验证码接口
-	 *
+	 *  废弃不用(有漏洞). 2024-09-30 by wuchf
 	 * @param request
 	 * @param request
 	 * @param response
 	 * @param response
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/getAuthCode", method = {RequestMethod.GET, RequestMethod.POST})
+	// @RequestMapping(value = "/getAuthCode", method = {RequestMethod.GET, RequestMethod.POST})
 	public @ResponseBody
 	public @ResponseBody
 	String authCode(HttpServletRequest request, HttpServletResponse response) {
 	String authCode(HttpServletRequest request, HttpServletResponse response) {
 
 
@@ -78,12 +78,12 @@ public class SmsAuthCodeController {
 
 
 	/**
 	/**
 	 * 获取验证码接口
 	 * 获取验证码接口
-	 *
+	 * 废弃不用(有漏洞). 2024-09-30 by wuchf
 	 * @param request
 	 * @param request
 	 * @param response
 	 * @param response
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/getSunMeiAuthCode", method = {RequestMethod.GET, RequestMethod.POST})
+	//@RequestMapping(value = "/getSunMeiAuthCode", method = {RequestMethod.GET, RequestMethod.POST})
 	public @ResponseBody
 	public @ResponseBody
 	void getSunMeiAuthCode(HttpServletRequest request, HttpServletResponse response) {
 	void getSunMeiAuthCode(HttpServletRequest request, HttpServletResponse response) {
 
 
@@ -129,12 +129,12 @@ public class SmsAuthCodeController {
 
 
 	/**
 	/**
 	 * 获取验证码接口 新
 	 * 获取验证码接口 新
-	 *
+	 * 废弃不用(有漏洞). 2024-09-30 by wuchf
 	 * @param request
 	 * @param request
 	 * @param response
 	 * @param response
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/getAuthCodeNew", method = {RequestMethod.GET, RequestMethod.POST})
+	// @RequestMapping(value = "/getAuthCodeNew", method = {RequestMethod.GET, RequestMethod.POST})
 	public @ResponseBody
 	public @ResponseBody
 	AppResultDto authCodeNew(HttpServletRequest request, HttpServletResponse response) {
 	AppResultDto authCodeNew(HttpServletRequest request, HttpServletResponse response) {
 		String userMobile = request.getParameter("userMobile");
 		String userMobile = request.getParameter("userMobile");

+ 4 - 4
src/main/java/com/palmnest/webapp/controller/wechat/WeChatIndexController.java

@@ -702,12 +702,12 @@ public class WeChatIndexController extends BaseFormController {
 	/**
 	/**
 	 * 获取短信验证码
 	 * 获取短信验证码
 	 * 校验白名单
 	 * 校验白名单
-	 *
+	 *  废弃不用(有漏洞). 2024-09-30 by wuchf
 	 * @param request
 	 * @param request
 	 * @param response
 	 * @param response
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/getSmsCode")
+	//@RequestMapping(value = "/getSmsCode")
 	@ResponseBody
 	@ResponseBody
 	public AppResultDto getSmsCode(HttpServletRequest request, HttpServletResponse response) {
 	public AppResultDto getSmsCode(HttpServletRequest request, HttpServletResponse response) {
 
 
@@ -1239,11 +1239,11 @@ public class WeChatIndexController extends BaseFormController {
 
 
 	/**
 	/**
 	 * 企业内购获取短信验证码
 	 * 企业内购获取短信验证码
-	 *
+	 * 废弃不用(有漏洞). 2024-09-30 by wuchf
 	 * @param request
 	 * @param request
 	 * @return
 	 * @return
 	 */
 	 */
-	@RequestMapping(value = "/getNeiGouSmsCode")
+	//@RequestMapping(value = "/getNeiGouSmsCode")
 	@ResponseBody
 	@ResponseBody
 	public AppResultDto getNeiGouSmsCode(HttpServletRequest request) {
 	public AppResultDto getNeiGouSmsCode(HttpServletRequest request) {