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
a21a5992
Commit
a21a5992
authored
Sep 28, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bug/errorlog' into 'master'
bug:[none]error日志 See merge request rays/pcloud-book!1425
parents
d4fe6df4
f1f88c4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ReaderConsr.java
...ain/java/com/pcloud/book/consumer/reader/ReaderConsr.java
+9
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/consumer/reader/ReaderConsr.java
View file @
a21a5992
...
@@ -261,6 +261,9 @@ public class ReaderConsr {
...
@@ -261,6 +261,9 @@ public class ReaderConsr {
@ParamLog
(
"公众号用户数量"
)
@ParamLog
(
"公众号用户数量"
)
public
Integer
getAccountUserCountByTime
(
Long
officialAccountsId
,
String
startTime
,
String
endTime
){
public
Integer
getAccountUserCountByTime
(
Long
officialAccountsId
,
String
startTime
,
String
endTime
){
if
(
null
==
officialAccountsId
)
{
return
0
;
}
Integer
count
=
0
;
Integer
count
=
0
;
try
{
try
{
count
=
ResponseHandleUtil
.
parseResponse
(
wechatUserService
.
getAccountUserCountByTime
(
officialAccountsId
,
startTime
,
endTime
),
Integer
.
class
);
count
=
ResponseHandleUtil
.
parseResponse
(
wechatUserService
.
getAccountUserCountByTime
(
officialAccountsId
,
startTime
,
endTime
),
Integer
.
class
);
...
@@ -391,6 +394,9 @@ public class ReaderConsr {
...
@@ -391,6 +394,9 @@ public class ReaderConsr {
@ParamLog
(
"查用户年级标签"
)
@ParamLog
(
"查用户年级标签"
)
public
UserGradeLabelIdDTO
getUserGrade
(
Long
wechatUserId
,
Long
officialAccountsId
)
{
public
UserGradeLabelIdDTO
getUserGrade
(
Long
wechatUserId
,
Long
officialAccountsId
)
{
if
(
null
==
wechatUserId
||
null
==
officialAccountsId
)
{
return
null
;
}
UserGradeLabelIdDTO
dto
=
new
UserGradeLabelIdDTO
();
UserGradeLabelIdDTO
dto
=
new
UserGradeLabelIdDTO
();
try
{
try
{
dto
=
ResponseHandleUtil
.
parseResponse
(
userLabelService
.
getUserGrade
(
wechatUserId
,
officialAccountsId
),
UserGradeLabelIdDTO
.
class
);
dto
=
ResponseHandleUtil
.
parseResponse
(
userLabelService
.
getUserGrade
(
wechatUserId
,
officialAccountsId
),
UserGradeLabelIdDTO
.
class
);
...
@@ -402,6 +408,9 @@ public class ReaderConsr {
...
@@ -402,6 +408,9 @@ public class ReaderConsr {
@ParamLog
(
"查询指定用户是否授权"
)
@ParamLog
(
"查询指定用户是否授权"
)
public
WechatUserOfficialAccounts
getOfficialAccounts
(
Long
officialAccountsId
,
String
openId
,
Long
wechatUserId
)
{
public
WechatUserOfficialAccounts
getOfficialAccounts
(
Long
officialAccountsId
,
String
openId
,
Long
wechatUserId
)
{
if
(
null
==
officialAccountsId
||
null
==
wechatUserId
||
StringUtil
.
isEmpty
(
openId
))
{
return
null
;
}
WechatUserOfficialAccounts
accounts
=
new
WechatUserOfficialAccounts
();
WechatUserOfficialAccounts
accounts
=
new
WechatUserOfficialAccounts
();
try
{
try
{
accounts
=
ResponseHandleUtil
.
parseResponse
(
wechatUserService
.
getOfficialAccounts
(
officialAccountsId
,
openId
,
wechatUserId
),
WechatUserOfficialAccounts
.
class
);
accounts
=
ResponseHandleUtil
.
parseResponse
(
wechatUserService
.
getOfficialAccounts
(
officialAccountsId
,
openId
,
wechatUserId
),
WechatUserOfficialAccounts
.
class
);
...
...
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