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
f93d018b
Commit
f93d018b
authored
Nov 23, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预支付接口失败判断修改
parent
f2cf1c54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
+8
-2
order-application-service/src/main/java/cn/freemud/service/thirdparty/PaymentNewClient.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
View file @
f93d018b
...
@@ -512,13 +512,19 @@ public class PayServiceImpl {
...
@@ -512,13 +512,19 @@ public class PayServiceImpl {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
AppLogUtil
.
errorLog
(
"获取预支付信息异常"
,
JSONObject
.
toJSONString
(
requestDto
),
null
,
e
);
AppLogUtil
.
errorLog
(
"获取预支付信息异常"
,
JSONObject
.
toJSONString
(
requestDto
),
null
,
e
);
}
}
if
(
response
==
null
||
!
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
.
equals
(
response
.
getCode
()))
{
//预支付接口失败
if
(
null
==
response
||
!
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
,
response
.
getCode
())
||
!
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS
,
response
.
getData
().
getResultCode
())
)
{
String
errorMessage
=
"unified fail"
;
if
(
null
!=
response
){
errorMessage
=
StringUtils
.
isNotEmpty
(
response
.
getMessage
())
?
response
.
getMessage
()
:
response
.
getData
().
getResultMsg
();
}
//打印业务异常
//打印业务异常
if
(
response
!=
null
&&
printUnifiedPayResponseError
){
if
(
response
!=
null
&&
printUnifiedPayResponseError
){
AppLogUtil
.
errorLog
(
"获取预支付信息失败"
,
JSONObject
.
toJSONString
(
requestDto
),
JSONObject
.
toJSONString
(
response
),
null
);
AppLogUtil
.
errorLog
(
"获取预支付信息失败"
,
JSONObject
.
toJSONString
(
requestDto
),
JSONObject
.
toJSONString
(
response
),
null
);
}
}
//预支付失败需要把原因进行记录
//预支付失败需要把原因进行记录
orderPayResponse
.
setMsg
(
response
==
null
?
"unified fail"
:
response
.
getMessage
()
);
orderPayResponse
.
setMsg
(
errorMessage
);
return
orderPayResponse
;
return
orderPayResponse
;
}
}
putDelMq
(
request
.
getPartnerId
(),
request
.
getStoreId
(),
response
.
getData
().
getFmId
(),
orderBean
.
getOid
(),
null
);
putDelMq
(
request
.
getPartnerId
(),
request
.
getStoreId
(),
response
.
getData
().
getFmId
(),
orderBean
.
getOid
(),
null
);
...
...
order-application-service/src/main/java/cn/freemud/service/thirdparty/PaymentNewClient.java
View file @
f93d018b
...
@@ -42,7 +42,7 @@ public interface PaymentNewClient {
...
@@ -42,7 +42,7 @@ public interface PaymentNewClient {
/**
/**
* 创建预支付订单,唤起支付
* 创建预支付订单,唤起支付
*/
*/
@LogIgnoreFeign
(
logMessage
=
"unifiedOrder"
,
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_
CODE
)
@LogIgnoreFeign
(
logMessage
=
"unifiedOrder"
,
statusCodeFieldName
=
ResponseCodeKeyConstant
.
CODE
)
@PostMapping
(
"paymentcenter/unifiedOrder"
)
@PostMapping
(
"paymentcenter/unifiedOrder"
)
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
UnifiedPayResponseDto
>
unifiedOrder
(
@RequestBody
UnifiedOrderRequestDto
requestDto
);
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
UnifiedPayResponseDto
>
unifiedOrder
(
@RequestBody
UnifiedOrderRequestDto
requestDto
);
...
...
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