优化短信方法名

This commit is contained in:
阿沐 2022-09-29 23:11:39 +08:00
parent e34df5aaaa
commit 865376041b
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ public interface SmsApi {
* @param value 参数Value
* @return 是否发送成功
*/
boolean send(String mobile, String key, String value);
boolean sendCode(String mobile, String key, String value);
/**
* 效验短信验证码

View File

@ -26,7 +26,7 @@ public class SmsApiImpl implements SmsApi {
}
@Override
public boolean send(String mobile, String key, String value) {
public boolean sendCode(String mobile, String key, String value) {
// 短信参数
Map<String, String> params = new HashMap<>();
params.put(key, value);

View File

@ -105,7 +105,7 @@ public class SysAuthServiceImpl implements SysAuthService {
}
// 发送短信
smsApi.send(mobile, "code", code);
smsApi.sendCode(mobile, "code", code);
}
@Override