Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun-user-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-backend
liyeyun-user-web
Commits
176783e3
Commit
176783e3
authored
Nov 30, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送次数 zset计算 还有swagger上不能用 /
parent
b62a85f1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
SysUserInfoServiceImpl.java
...user/moudle/user/service/impl/SysUserInfoServiceImpl.java
+1
-1
ForgetVo.java
src/main/java/com/lyy/user/moudle/user/vo/ForgetVo.java
+1
-1
RegisterVo.java
src/main/java/com/lyy/user/moudle/user/vo/RegisterVo.java
+4
-4
No files found.
src/main/java/com/lyy/user/moudle/user/service/impl/SysUserInfoServiceImpl.java
View file @
176783e3
...
...
@@ -181,7 +181,7 @@ public class SysUserInfoServiceImpl extends ServiceImpl<SysUserInfoMapper, SysUs
RedisUtil
.
delZset
(
key
,
0
,
startTime
.
getTime
());
Long
count
=
RedisUtil
.
countZset
(
key
,
startTime
.
getTime
(),
now
.
getTime
());
if
(
count
==
null
||
count
<=
limitSms
)
{
RedisUtil
.
addZset
(
key
,
phone
,
now
.
getTime
());
RedisUtil
.
addZset
(
key
,
now
.
getTime
()
,
now
.
getTime
());
}
else
{
throw
new
ServiceException
(
"短信发送频繁,每日短信发送次数为"
+
limitSms
);
}
...
...
src/main/java/com/lyy/user/moudle/user/vo/ForgetVo.java
View file @
176783e3
...
...
@@ -19,7 +19,7 @@ import javax.validation.constraints.Size;
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel
(
value
=
"忘记
/
修改密码"
)
@ApiModel
(
value
=
"忘记
修改密码"
)
public
class
ForgetVo
{
@NotEmpty
(
message
=
"密码不能为空"
)
...
...
src/main/java/com/lyy/user/moudle/user/vo/RegisterVo.java
View file @
176783e3
...
...
@@ -23,8 +23,8 @@ import javax.validation.constraints.Size;
public
class
RegisterVo
{
@NotEmpty
(
message
=
"密码不能为空"
)
@Size
(
min
=
6
,
max
=
12
,
message
=
"密码长度需要在6到12
之间"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9
_]{6,12}$"
,
message
=
"密码只能包含字母和数字
"
)
@Size
(
min
=
6
,
max
=
20
,
message
=
"密码长度需要在6到20
之间"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9
~!@#$%^&*()_+?]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20
"
)
@ApiModelProperty
(
value
=
"密码"
,
required
=
true
)
private
String
password
;
@NotEmpty
(
message
=
"手机号不能为空"
)
...
...
@@ -36,8 +36,8 @@ public class RegisterVo {
private
String
code
;
@NotEmpty
(
message
=
"密码不能为空"
)
@Size
(
min
=
6
,
max
=
12
,
message
=
"密码长度需要在6到12
之间"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9
_]{6,12}$"
,
message
=
"密码只能包含字母和数字
"
)
@Size
(
min
=
6
,
max
=
20
,
message
=
"密码长度需要在6到20
之间"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9
~!@#$%^&*()_+?]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20
"
)
@ApiModelProperty
(
value
=
"确认密码"
,
required
=
true
)
private
String
checkPassword
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment