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
2f5076af
Commit
2f5076af
authored
Sep 16, 2019
by
高鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-rsy' into 'master'
群名称#校验 See merge request rays/pcloud-book!152
parents
186c4ada
c6afc4cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+3
-0
BookGroupClassifyBizImpl.java
.../pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
+3
-0
GroupQrcodeBizImpl.java
...va/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
+3
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
2f5076af
...
@@ -418,6 +418,9 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -418,6 +418,9 @@ public class BookGroupBizImpl implements BookGroupBiz {
||
StringUtil
.
isEmpty
(
bookGroup
.
getJoinSlogan
())
)
{
||
StringUtil
.
isEmpty
(
bookGroup
.
getJoinSlogan
())
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误!"
);
}
}
if
(
bookGroup
.
getGroupQrcodeName
().
contains
(
"#"
)){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"名称不能包含#!"
);
}
BookGroup
group
=
bookGroupDao
.
getById
(
bookGroup
.
getId
());
BookGroup
group
=
bookGroupDao
.
getById
(
bookGroup
.
getId
());
if
(
null
==
group
)
{
if
(
null
==
group
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"群二维码不存在!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"群二维码不存在!"
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
View file @
2f5076af
...
@@ -306,6 +306,9 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -306,6 +306,9 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
if
(
isHaveThisClassify
)
{
if
(
isHaveThisClassify
)
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"已存在该分类!"
);
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"已存在该分类!"
);
}
}
if
(
classify
!=
null
&&
classify
.
contains
(
"#"
))
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"名称不能包含#!"
);
}
}
}
@ParamLog
(
"获取社群下有多少分类"
)
@ParamLog
(
"获取社群下有多少分类"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
View file @
2f5076af
...
@@ -420,6 +420,9 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
...
@@ -420,6 +420,9 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
if
(
wechatGroupName
==
null
)
{
if
(
wechatGroupName
==
null
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"微信群名称不能为空"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"微信群名称不能为空"
);
}
}
if
(
wechatGroupName
.
contains
(
"#"
))
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"名称不能包含#"
);
}
ChangeGroupNameDTO
changeGroupNameDTO
=
groupQrcodeDao
.
getUpdateGroupNameParam
(
id
);
ChangeGroupNameDTO
changeGroupNameDTO
=
groupQrcodeDao
.
getUpdateGroupNameParam
(
id
);
groupQrcodeDao
.
modifyNameById
(
wechatGroupName
,
id
,
updateUser
);
groupQrcodeDao
.
modifyNameById
(
wechatGroupName
,
id
,
updateUser
);
if
(
changeGroupNameDTO
!=
null
)
{
if
(
changeGroupNameDTO
!=
null
)
{
...
...
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