Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
1fa27b01
Commit
1fa27b01
authored
Aug 16, 2022
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotfix: [1008088] 去除授权码15长度限制
parent
48a64faf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
BookAuthCodeBizImpl.java
...m/pcloud/book/copyright/biz/impl/BookAuthCodeBizImpl.java
+1
-1
BookSceneAuthBizImpl.java
.../pcloud/book/copyright/biz/impl/BookSceneAuthBizImpl.java
+1
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/copyright/biz/impl/BookAuthCodeBizImpl.java
View file @
1fa27b01
...
@@ -153,7 +153,7 @@ public class BookAuthCodeBizImpl implements BookAuthCodeBiz {
...
@@ -153,7 +153,7 @@ public class BookAuthCodeBizImpl implements BookAuthCodeBiz {
public
Integer
checkCode
(
CheckCodeParam
checkCodeParam
,
Long
channelId
,
Long
wechatUserId
)
{
public
Integer
checkCode
(
CheckCodeParam
checkCodeParam
,
Long
channelId
,
Long
wechatUserId
)
{
String
code
=
checkCodeParam
.
getCode
();
String
code
=
checkCodeParam
.
getCode
();
Integer
authBookType
=
checkCodeParam
.
getAuthBookType
();
Integer
authBookType
=
checkCodeParam
.
getAuthBookType
();
if
(
StringUtils
.
isEmpty
(
code
)
||
code
.
length
()
!=
15
)
{
if
(
StringUtils
.
isEmpty
(
code
))
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"此码错误,请重新验证"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"此码错误,请重新验证"
);
}
}
BookAuthInfoVO
authBookInfo
=
bookAuthInfoBiz
.
getAuthBookInfo
(
checkCodeParam
.
getBookId
(),
channelId
,
checkCodeParam
.
getAdviserId
(),
checkCodeParam
.
getSceneId
(),
authBookType
);
BookAuthInfoVO
authBookInfo
=
bookAuthInfoBiz
.
getAuthBookInfo
(
checkCodeParam
.
getBookId
(),
channelId
,
checkCodeParam
.
getAdviserId
(),
checkCodeParam
.
getSceneId
(),
authBookType
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/copyright/biz/impl/BookSceneAuthBizImpl.java
View file @
1fa27b01
...
@@ -315,7 +315,7 @@ public class BookSceneAuthBizImpl implements BookSceneAuthBiz {
...
@@ -315,7 +315,7 @@ public class BookSceneAuthBizImpl implements BookSceneAuthBiz {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
CheckAuthCodeVO
checkSceneAuthCode
(
UseAuthCodeVO
useAuthCodeVO
,
Long
channelId
,
Long
wechatUserId
)
{
public
CheckAuthCodeVO
checkSceneAuthCode
(
UseAuthCodeVO
useAuthCodeVO
,
Long
channelId
,
Long
wechatUserId
)
{
String
code
=
useAuthCodeVO
.
getAuthCode
();
String
code
=
useAuthCodeVO
.
getAuthCode
();
if
(
StringUtils
.
isEmpty
(
code
)
||
code
.
length
()
!=
15
)
{
if
(
StringUtils
.
isEmpty
(
code
))
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"此码错误,请重新验证"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"此码错误,请重新验证"
);
}
}
BookSceneAuthCode
bookSceneAuthCode
=
bookSceneAuthCodeDao
.
getByCode
(
code
);
BookSceneAuthCode
bookSceneAuthCode
=
bookSceneAuthCodeDao
.
getByCode
(
code
);
...
...
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