发送短信增加防抖
This commit is contained in:
@@ -35,6 +35,7 @@ import com.getui.push.v2.sdk.dto.req.message.ios.IosDTO;
|
|||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
import com.github.qcloudsms.SmsSingleSenderResult;
|
import com.github.qcloudsms.SmsSingleSenderResult;
|
||||||
|
import com.sqx.common.annotation.Debounce;
|
||||||
import com.sqx.common.exception.SqxException;
|
import com.sqx.common.exception.SqxException;
|
||||||
import com.sqx.common.utils.DateUtils;
|
import com.sqx.common.utils.DateUtils;
|
||||||
import com.sqx.common.utils.PageUtils;
|
import com.sqx.common.utils.PageUtils;
|
||||||
@@ -1146,6 +1147,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Debounce(interval = 60000, value = "#phone")
|
||||||
public Result sendMsg(String phone, String state, String pwd) {
|
public Result sendMsg(String phone, String state, String pwd) {
|
||||||
int code = (int) ((Math.random() * 9 + 1) * 100000);
|
int code = (int) ((Math.random() * 9 + 1) * 100000);
|
||||||
System.out.println("sendMsg code is " + code);
|
System.out.println("sendMsg code is " + code);
|
||||||
|
|||||||
Reference in New Issue
Block a user