Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
ffc13e4f
Commit
ffc13e4f
authored
Jul 01, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
Lal See merge request 8timerv2/8timerapiv200!290
parents
ab4ff0b0
659cd8ad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletions
+14
-1
src/main/java/cn/timer/api/controller/LoginController.java
+11
-1
src/main/resources/application-dev.yml
+1
-0
src/main/resources/application-pro.yml
+1
-0
src/main/resources/application-test.yml
+1
-0
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
ffc13e4f
...
@@ -154,6 +154,9 @@ public class LoginController {
...
@@ -154,6 +154,9 @@ public class LoginController {
@Value
(
"${config-8timer.qyxx.summary}"
)
@Value
(
"${config-8timer.qyxx.summary}"
)
private
String
summary
;
private
String
summary
;
@Value
(
"${config-8timer.authentication-code}"
)
public
String
authentication_code
;
@Autowired
@Autowired
private
HttpSession
session
;
private
HttpSession
session
;
...
@@ -284,10 +287,17 @@ public class LoginController {
...
@@ -284,10 +287,17 @@ public class LoginController {
String
code
=
entRegisterDto
.
getCode
().
toString
();
String
code
=
entRegisterDto
.
getCode
().
toString
();
String
codeRedis
=
session
.
getAttribute
(
phone
)
!=
null
?
session
.
getAttribute
(
phone
).
toString
()
:
""
;
String
codeRedis
=
session
.
getAttribute
(
phone
)
!=
null
?
session
.
getAttribute
(
phone
).
toString
()
:
""
;
if
(
authentication_code
!=
null
&&
!(
""
).
equals
(
authentication_code
))
{
if
(
authentication_code
.
equals
(
code
))
{
return
ResultUtil
.
success
(
"验证码正确"
);
}
}
if
(
code
==
null
||
!
code
.
equals
(
codeRedis
))
{
if
(
code
==
null
||
!
code
.
equals
(
codeRedis
))
{
return
ResultUtil
.
error
(
"验证码不符"
);
return
ResultUtil
.
error
(
"验证码不符"
);
}
}
return
ResultUtil
.
success
(
"验证码正确"
);
return
ResultUtil
.
success
(
"验证码正确"
);
}
}
...
...
src/main/resources/application-dev.yml
View file @
ffc13e4f
...
@@ -172,6 +172,7 @@ logging:
...
@@ -172,6 +172,7 @@ logging:
config-8timer
:
config-8timer
:
machine8timerUrl
:
'
http://test-8timer-fk.youlingrc.com'
machine8timerUrl
:
'
http://test-8timer-fk.youlingrc.com'
authentication-code
:
'
888888'
register-free-time
:
90
#系统赠送时间
register-free-time
:
90
#系统赠送时间
register-company-max-num
:
100
#默认最大公司数量
register-company-max-num
:
100
#默认最大公司数量
register-childAccount-max-num
:
10
#默认最大子账号数量
register-childAccount-max-num
:
10
#默认最大子账号数量
...
...
src/main/resources/application-pro.yml
View file @
ffc13e4f
...
@@ -147,6 +147,7 @@ logging:
...
@@ -147,6 +147,7 @@ logging:
config-8timer
:
config-8timer
:
machine8timerUrl
:
'
http://test-8timer-fk.youlingrc.com'
machine8timerUrl
:
'
http://test-8timer-fk.youlingrc.com'
authentication-code
:
'
'
register-free-time
:
90
#系统赠送时间
register-free-time
:
90
#系统赠送时间
register-company-max-num
:
100
register-company-max-num
:
100
register-childAccount-max-num
:
10
register-childAccount-max-num
:
10
...
...
src/main/resources/application-test.yml
View file @
ffc13e4f
...
@@ -146,6 +146,7 @@ logging:
...
@@ -146,6 +146,7 @@ logging:
config-8timer
:
config-8timer
:
machine8timerUrl
:
'
http://test-8timer-fk.youlingrc.com'
machine8timerUrl
:
'
http://test-8timer-fk.youlingrc.com'
authentication-code
:
'
888888'
register-free-time
:
90
#系统赠送时间
register-free-time
:
90
#系统赠送时间
register-company-max-num
:
100
register-company-max-num
:
100
register-childAccount-max-num
:
10
register-childAccount-max-num
:
10
...
...
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