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
9c151683
Commit
9c151683
authored
Aug 16, 2019
by
daixing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dx-C1000884' of
ssh://begitlab.chubanyun.me:12122/rays/pcloud-book
into dx-C1000884
parents
b2857c4a
4e327851
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
BookGroupClassifyBizImpl.java
.../pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
+4
-0
BookProps.java
.../main/java/com/pcloud/book/util/properties/BookProps.java
+7
-6
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
View file @
9c151683
...
@@ -29,6 +29,7 @@ import com.pcloud.book.group.vo.*;
...
@@ -29,6 +29,7 @@ import com.pcloud.book.group.vo.*;
import
com.pcloud.book.keywords.dao.BookKeywordDao
;
import
com.pcloud.book.keywords.dao.BookKeywordDao
;
import
com.pcloud.book.keywords.entity.BookKeyword
;
import
com.pcloud.book.keywords.entity.BookKeyword
;
import
com.pcloud.book.util.common.ThreadPoolUtils
;
import
com.pcloud.book.util.common.ThreadPoolUtils
;
import
com.pcloud.book.util.properties.BookProps
;
import
com.pcloud.common.core.aspect.ParamLog
;
import
com.pcloud.common.core.aspect.ParamLog
;
import
com.pcloud.common.core.constant.SystemCode
;
import
com.pcloud.common.core.constant.SystemCode
;
import
com.pcloud.common.core.enums.NotifyOriginTypeEnum
;
import
com.pcloud.common.core.enums.NotifyOriginTypeEnum
;
...
@@ -151,10 +152,13 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -151,10 +152,13 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
bookGroupClassify
.
setRank
(
rank
);
bookGroupClassify
.
setRank
(
rank
);
bookGroupClassifyDao
.
insert
(
bookGroupClassify
);
bookGroupClassifyDao
.
insert
(
bookGroupClassify
);
final
Long
wechatGroupNum
=
weixinQrcodeBiz
.
countWechatGroup
();
final
Long
wechatGroupNum
=
weixinQrcodeBiz
.
countWechatGroup
();
// 只有生产环境才有30个限制
if
(
"pro"
.
equalsIgnoreCase
(
BookProps
.
getSystemEnv
()))
{
if
(
null
==
wechatGroupNum
||
wechatGroupNum
<=
30
)
{
if
(
null
==
wechatGroupNum
||
wechatGroupNum
<=
30
)
{
log
.
info
(
"[新增分类] : 可用微信群数量:{}个"
,
wechatGroupNum
);
log
.
info
(
"[新增分类] : 可用微信群数量:{}个"
,
wechatGroupNum
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"群二维码数量不足,您可以明天再创建群。"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"群二维码数量不足,您可以明天再创建群。"
);
}
}
}
WeixinQrcodeDTO
oneQrcode
=
weixinQrcodeBiz
.
getOneQrcode
();
WeixinQrcodeDTO
oneQrcode
=
weixinQrcodeBiz
.
getOneQrcode
();
if
(
oneQrcode
==
null
)
{
if
(
oneQrcode
==
null
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"系统二维码数量不足,请联系客服人员补充二维码数量!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"系统二维码数量不足,请联系客服人员补充二维码数量!"
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/util/properties/BookProps.java
View file @
9c151683
...
@@ -34,8 +34,7 @@ public class BookProps {
...
@@ -34,8 +34,7 @@ public class BookProps {
*/
*/
private
static
String
jisuAppKey
;
private
static
String
jisuAppKey
;
@Value
(
"group.luck.url"
)
private
static
String
systemEnv
;
private
String
groupLuckUrl
;
public
static
String
getJisuAppKey
()
{
public
static
String
getJisuAppKey
()
{
return
jisuAppKey
;
return
jisuAppKey
;
...
@@ -73,11 +72,13 @@ public class BookProps {
...
@@ -73,11 +72,13 @@ public class BookProps {
BookProps
.
appCode
=
appCode
;
BookProps
.
appCode
=
appCode
;
}
}
public
String
getGroupLuckUrl
()
{
return
groupLuckUrl
;
public
static
String
getSystemEnv
()
{
return
systemEnv
;
}
}
public
void
setGroupLuckUrl
(
String
groupLuckUrl
)
{
@Value
(
"${system.env}"
)
this
.
groupLuckUrl
=
groupLuckUrl
;
public
void
setSystemEnv
(
String
systemEnv
)
{
BookProps
.
systemEnv
=
systemEnv
;
}
}
}
}
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