update sms 3.1.0 => 3.1.1

2.X
AprilWind 1 year ago
parent a6932f8c0a
commit b0046a2cac

@ -56,7 +56,7 @@
<okhttp.version>4.10.0</okhttp.version> <okhttp.version>4.10.0</okhttp.version>
<!-- SMS 配置 --> <!-- SMS 配置 -->
<sms4j.version>3.1.0</sms4j.version> <sms4j.version>3.1.1</sms4j.version>
<!-- 插件版本 --> <!-- 插件版本 -->
<maven-compiler-plugin.verison>3.11.0</maven-compiler-plugin.verison> <maven-compiler-plugin.verison>3.11.0</maven-compiler-plugin.verison>

@ -48,6 +48,19 @@ public class PlusSmsDao implements SmsDao {
return RedisUtils.getCacheObject(GlobalConstants.GLOBAL_REDIS_KEY + key); return RedisUtils.getCacheObject(GlobalConstants.GLOBAL_REDIS_KEY + key);
} }
/**
* remove
* <p> key
*
* @param key
* @return value
* @author :Wind
*/
@Override
public Object remove(String key) {
return RedisUtils.deleteObject(GlobalConstants.GLOBAL_REDIS_KEY + key);
}
/** /**
* *
*/ */

@ -55,4 +55,28 @@ public class SmsController {
return R.ok(smsResponse); return R.ok(smsResponse);
} }
/**
*
*
* @param phone
*/
@GetMapping("/joinInBlacklist")
public R<Object> joinInBlacklist(String phone){
SmsBlend smsBlend = SmsFactory.getSmsBlend("tx1");
smsBlend.joinInBlacklist(phone);
return R.ok();
}
/**
*
*
* @param phone
*/
@GetMapping("/removeFromBlacklist")
public R<Object> removeFromBlacklist(String phone){
SmsBlend smsBlend = SmsFactory.getSmsBlend("tx1");
smsBlend.removeFromBlacklist(phone);
return R.ok();
}
} }

Loading…
Cancel
Save