发送短信增加防抖

This commit is contained in:
GYJ
2025-03-06 14:05:16 +08:00
parent d5941e5ed0
commit d1c250b41c

View File

@@ -35,6 +35,7 @@ import com.getui.push.v2.sdk.dto.req.message.ios.IosDTO;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.github.qcloudsms.SmsSingleSenderResult;
import com.sqx.common.annotation.Debounce;
import com.sqx.common.exception.SqxException;
import com.sqx.common.utils.DateUtils;
import com.sqx.common.utils.PageUtils;
@@ -1146,6 +1147,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
@Override
@Debounce(interval = 60000, value = "#phone")
public Result sendMsg(String phone, String state, String pwd) {
int code = (int) ((Math.random() * 9 + 1) * 100000);
System.out.println("sendMsg code is " + code);