记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
7217b3ac
Commit
7217b3ac
authored
Dec 02, 2021
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改抖音bug
parent
9350b6ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
PayChannelStrategyDouYinImpl.java
...n/channel/strategy/impl/PayChannelStrategyDouYinImpl.java
+1
-1
DragonOrderRefundsServiceImpl.java
...ce/dragon/service/impl/DragonOrderRefundsServiceImpl.java
+5
-4
No files found.
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/strategy/impl/PayChannelStrategyDouYinImpl.java
View file @
7217b3ac
...
...
@@ -88,7 +88,7 @@ public class PayChannelStrategyDouYinImpl extends AbstractPayChannelStrategyImpl
boolean
notifyResult
=
false
;
if
(
PayDouYinpayUtils
.
getInstance
().
notifySign
(
sign
,
jsonObject
))
{
// 根据配置信息验证签名
//抖音回调 就代表成功了
this
.
completeSuccessOrder
(
dragonOrdersDto
,
""
,
LocalDateTime
.
now
(),
JSON
.
toJSONString
(
jsonObject
));
this
.
completeSuccessOrder
(
dragonOrdersDto
,
null
,
LocalDateTime
.
now
(),
JSON
.
toJSONString
(
jsonObject
));
/*if (WepayConstant.WeixinTradeStateEnum.SUCCESS.getCode().equals(notifyMap.get("result_code"))) {// 业务结果
// 成功
notifyResult = this.completeSuccessOrder(dragonOrdersDto, notifyMap.get("transaction_id"), timeEnd, notifyMap.toString());
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/service/impl/DragonOrderRefundsServiceImpl.java
View file @
7217b3ac
...
...
@@ -486,13 +486,13 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
// 没有订单号
dto
.
setRefundCode
(
""
);
dto
.
setRefundPrice
(
msg
.
getBigDecimal
(
"refund_amount"
).
divide
(
BigDecimal
.
valueOf
(
100
)).
toString
());
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
" yyyy年MM月dd日 "
);
//
SimpleDateFormat sdf = new SimpleDateFormat( " yyyy年MM月dd日 " );
// 抖音没有传回时间
dto
.
setRefundAt
(
sdf
.
format
(
new
Date
()));
//
dto.setRefundAt(sdf.format(new Date()));
//抖音回调没有写错误原因
dto
.
setRefundError
(
""
);
log
.
info
(
"SEND DOUYINPAY NOTIFTURL = "
+
JSON
.
toJSONString
(
dto
));
sendNotifyUrl
(
dto
,
null
);
//
sendNotifyUrl(dto, null);
//创建退款订单日志
mqHandleUtil
.
sendMySqlRedis
(
SqlMapping
.
get
(
"dragon_order_refund_log.insert"
),
...
...
@@ -502,9 +502,10 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
//修改订单 状态
mqHandleUtil
.
sendMySqlRedis
(
SqlMapping
.
get
(
"dragon_order_refund_success.update"
),
new
Object
[]{
nowTime
,
dto
.
getRefundAt
()
,
DragonConstant
.
RefundStatusEnum
.
STATUS_REFUNDED
.
getCode
(),
msg
.
getString
(
"cp_refundno"
)},
new
Object
[]{
nowTime
,
nowTime
,
DragonConstant
.
RefundStatusEnum
.
STATUS_REFUNDED
.
getCode
(),
msg
.
getString
(
"cp_refundno"
)},
DragonConstant
.
MysqlRedisQueueEnum
.
DRAGON_REFUND_KEY
.
getCode
()
);
return
"{\"err_no\": 0, \"err_tips\": \"success\"}"
;
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
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