Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
ff15c0e7
Commit
ff15c0e7
authored
Nov 17, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志打印
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
d1baacf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
order-application-service/src/main/java/cn/freemud/handler/WeChatLiveMsgHandle.java
+4
-4
No files found.
order-application-service/src/main/java/cn/freemud/handler/WeChatLiveMsgHandle.java
View file @
ff15c0e7
...
@@ -12,10 +12,10 @@ import cn.freemud.enums.ResponseResult;
...
@@ -12,10 +12,10 @@ import cn.freemud.enums.ResponseResult;
import
cn.freemud.interceptor.ServiceException
;
import
cn.freemud.interceptor.ServiceException
;
import
cn.freemud.redis.RedisCache
;
import
cn.freemud.redis.RedisCache
;
import
cn.freemud.service.thirdparty.EcologyAdminApplicationClient
;
import
cn.freemud.service.thirdparty.EcologyAdminApplicationClient
;
import
cn.freemud.utils.AppLogUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
com.freemud.application.sdk.api.ordercenter.entities.v1.OrderBeanV1
;
import
com.freemud.application.sdk.api.ordercenter.entities.v1.OrderBeanV1
;
import
com.freemud.application.sdk.api.ordercenter.entities.v1.ProductBeanV1
;
import
com.freemud.application.sdk.api.ordercenter.entities.v1.ProductBeanV1
;
import
com.freemud.application.sdk.api.ordercenter.enums.OrderClientType
;
import
com.freemud.application.sdk.api.ordercenter.enums.OrderClientType
;
...
@@ -90,7 +90,7 @@ public class WeChatLiveMsgHandle {
...
@@ -90,7 +90,7 @@ public class WeChatLiveMsgHandle {
accessToken
=
this
.
refreshAccessToken
(
orderBean
.
getAppId
(),
orderBean
.
getParentCode
());
accessToken
=
this
.
refreshAccessToken
(
orderBean
.
getAppId
(),
orderBean
.
getParentCode
());
weChatBaseResponse
=
weChatClient
.
orderApply
(
accessToken
,
request
,
WeChatConstant
.
OrderMethod
.
ORDER_PAY
);
weChatBaseResponse
=
weChatClient
.
orderApply
(
accessToken
,
request
,
WeChatConstant
.
OrderMethod
.
ORDER_PAY
);
}
}
Ap
iLog
.
printLog
(
"视频直播订单数据上报"
,
JSON
.
toJSONString
(
request
),
JSON
.
toJSONString
(
weChatBaseResponse
),
accessToken
);
Ap
pLogUtil
.
printLog
(
"视频直播订单数据上报"
,
JSON
.
toJSONString
(
request
),
JSON
.
toJSONString
(
weChatBaseResponse
)
);
if
(
"0"
.
equals
(
weChatBaseResponse
.
getErrcode
()))
{
if
(
"0"
.
equals
(
weChatBaseResponse
.
getErrcode
()))
{
if
(
flag
==
0
)
{
if
(
flag
==
0
)
{
...
@@ -100,7 +100,7 @@ public class WeChatLiveMsgHandle {
...
@@ -100,7 +100,7 @@ public class WeChatLiveMsgHandle {
requestVO
.
setOpenid
(
Objects
.
isNull
(
openid
)
?
""
:
openid
.
toString
());
requestVO
.
setOpenid
(
Objects
.
isNull
(
openid
)
?
""
:
openid
.
toString
());
requestVO
.
setFinish_all_delivery
(
0
);
requestVO
.
setFinish_all_delivery
(
0
);
weChatBaseResponse
=
weChatClient
.
orderApply
(
accessToken
,
request
,
WeChatConstant
.
OrderMethod
.
ORDER_SEND
);
weChatBaseResponse
=
weChatClient
.
orderApply
(
accessToken
,
request
,
WeChatConstant
.
OrderMethod
.
ORDER_SEND
);
Ap
iLog
.
printLog
(
"视频直播发货数据上报"
,
JSON
.
toJSONString
(
requestVO
),
JSON
.
toJSONString
(
weChatBaseResponse
),
accessToken
);
Ap
pLogUtil
.
printLog
(
"视频直播发货数据上报"
,
JSON
.
toJSONString
(
requestVO
),
JSON
.
toJSONString
(
weChatBaseResponse
)
);
}
}
}
}
}
}
...
@@ -130,7 +130,7 @@ public class WeChatLiveMsgHandle {
...
@@ -130,7 +130,7 @@ public class WeChatLiveMsgHandle {
// 调用失败
// 调用失败
return
ResponseUtil
.
error
(
ResponseResult
.
SYSTEM_BUSINESS_ERROR
.
getCode
(),
"错误码"
+
ResponseResult
.
SYSTEM_BUSINESS_ERROR
.
getCode
()
+
",创建视频号订单异常,请稍后再试。"
);
return
ResponseUtil
.
error
(
ResponseResult
.
SYSTEM_BUSINESS_ERROR
.
getCode
(),
"错误码"
+
ResponseResult
.
SYSTEM_BUSINESS_ERROR
.
getCode
()
+
",创建视频号订单异常,请稍后再试。"
);
}
}
Ap
iLog
.
printLog
(
"视频直播订单创建"
,
JSON
.
toJSONString
(
requestVO
),
JSON
.
toJSONString
(
weChatBaseResponse
),
accessToken
);
Ap
pLogUtil
.
printLog
(
"视频直播订单创建"
,
JSON
.
toJSONString
(
requestVO
),
JSON
.
toJSONString
(
weChatBaseResponse
)
);
if
(
"0"
.
equals
(
weChatBaseResponse
.
getErrcode
()))
{
if
(
"0"
.
equals
(
weChatBaseResponse
.
getErrcode
()))
{
// 调用成功
// 调用成功
OrderCreateResponseVO
data
=
weChatBaseResponse
.
getData
();
OrderCreateResponseVO
data
=
weChatBaseResponse
.
getData
();
...
...
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