update sms 3.1.0 => 3.1.1

This commit is contained in:
AprilWind
2024-01-18 10:52:47 +08:00
parent a6932f8c0a
commit b0046a2cac
3 changed files with 38 additions and 1 deletions

View File

@@ -55,4 +55,28 @@ public class SmsController {
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();
}
}