优化短信方法名
This commit is contained in:
parent
f20360f7ff
commit
f0e8642dec
|
@ -26,7 +26,7 @@ public interface SmsApi {
|
|||
* @param value 参数Value
|
||||
* @return 是否发送成功
|
||||
*/
|
||||
boolean sendCode(String mobile, String key, String value);
|
||||
boolean send(String mobile, String key, String value);
|
||||
|
||||
/**
|
||||
* 效验短信验证码
|
||||
|
|
|
@ -26,7 +26,7 @@ public class SmsApiImpl implements SmsApi {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean sendCode(String mobile, String key, String value) {
|
||||
public boolean send(String mobile, String key, String value) {
|
||||
// 短信参数
|
||||
Map<String, String> params = new HashMap<>();
|
||||
params.put(key, value);
|
||||
|
|
|
@ -105,7 +105,7 @@ public class SysAuthServiceImpl implements SysAuthService {
|
|||
}
|
||||
|
||||
// 发送短信
|
||||
smsApi.sendCode(mobile, "code", code);
|
||||
smsApi.send(mobile, "code", code);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user