From b0046a2cac18cf727f8e9e5163a7665ef48f67f6 Mon Sep 17 00:00:00 2001
From: AprilWind <2100166581@qq.com>
Date: Thu, 18 Jan 2024 10:52:47 +0800
Subject: [PATCH] update sms 3.1.0 => 3.1.1
---
pom.xml | 2 +-
.../common/sms/core/dao/PlusSmsDao.java | 13 ++++++++++
.../demo/controller/SmsController.java | 24 +++++++++++++++++++
3 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 40de637e..a3b165bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,7 +56,7 @@
根据key移除缓存 + * + * @param key 缓存键 + * @return 被删除的value + * @author :Wind + */ + @Override + public Object remove(String key) { + return RedisUtils.deleteObject(GlobalConstants.GLOBAL_REDIS_KEY + key); + } + /** * 清空 */ diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/SmsController.java b/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/SmsController.java index fb809f3f..256c4383 100644 --- a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/SmsController.java +++ b/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/SmsController.java @@ -55,4 +55,28 @@ public class SmsController { return R.ok(smsResponse); } + /** + * 加入黑名单 + * + * @param phone 手机号 + */ + @GetMapping("/joinInBlacklist") + public R