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
2276565e
Commit
2276565e
authored
Jan 16, 2021
by
郑江涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
08bf81bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
BuyBookRequestBizImpl.java
...om/pcloud/book/applet/biz/impl/BuyBookRequestBizImpl.java
+6
-11
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/BuyBookRequestBizImpl.java
View file @
2276565e
...
@@ -57,7 +57,6 @@ public class BuyBookRequestBizImpl implements BuyBookRequestBiz {
...
@@ -57,7 +57,6 @@ public class BuyBookRequestBizImpl implements BuyBookRequestBiz {
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
BuyBookRequestBizImpl
.
class
);
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
BuyBookRequestBizImpl
.
class
);
private
static
final
String
GetReaderCenterDataUrl
=
"https://adviser.raysgo.com/readercenter/v1.0/wechatUser/getBuyBookProcessingData"
;
@Autowired
@Autowired
private
BuyBookRequestDao
buyBookRequestDao
;
private
BuyBookRequestDao
buyBookRequestDao
;
@Autowired
@Autowired
...
@@ -316,17 +315,13 @@ public class BuyBookRequestBizImpl implements BuyBookRequestBiz {
...
@@ -316,17 +315,13 @@ public class BuyBookRequestBizImpl implements BuyBookRequestBiz {
LOGGER
.
error
(
"[BuyBookRequestBiz.processingData] 处理数据失败,获取wechatUserId列表失败"
);
LOGGER
.
error
(
"[BuyBookRequestBiz.processingData] 处理数据失败,获取wechatUserId列表失败"
);
return
;
return
;
}
}
String
response
=
HttpUtil
.
post
(
GetReaderCenterDataUrl
,
JSONObject
.
toJSONString
(
weChatUserIds
));
List
<
BuyBookProcessingDataDTO
>
processingData
=
readerConsr
.
getProcessingData
(
weChatUserIds
);
LOGGER
.
info
(
"[BuyBookRequestBizImpl.processingData]请求的填充数据为:{}"
,
response
);
for
(
BuyBookProcessingDataDTO
processingDatum
:
processingData
)
{
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
response
);
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"data"
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
JSONObject
dataObj
=
jsonArray
.
getJSONObject
(
i
);
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"wechatUserId"
,
dataObj
.
get
(
"wechatUserId"
));
param
.
put
(
"wechatUserId"
,
processingDatum
.
getWechatUserId
(
));
param
.
put
(
"miniWechatUserId"
,
dataObj
.
get
(
"miniWechatUserId"
));
param
.
put
(
"miniWechatUserId"
,
processingDatum
.
getMiniWechatUserId
(
));
param
.
put
(
"miniOpenId"
,
dataObj
.
get
(
"miniOpenId"
));
param
.
put
(
"miniOpenId"
,
processingDatum
.
getMiniOpenId
(
));
param
.
put
(
"nickName"
,
dataObj
.
get
(
"nickName"
));
param
.
put
(
"nickName"
,
processingDatum
.
getNickName
(
));
if
(
open
==
1
)
{
if
(
open
==
1
)
{
param
.
put
(
"isDelete"
,
"0"
);
param
.
put
(
"isDelete"
,
"0"
);
param
.
put
(
"replyState"
,
"0"
);
param
.
put
(
"replyState"
,
"0"
);
...
...
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