Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
e3a0545a
Commit
e3a0545a
authored
Mar 29, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信支付时间异常处理
parent
95fb4672
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
LicenceOrderApiServiceImpl.java
.../service/out/impl/licence/LicenceOrderApiServiceImpl.java
+1
-1
LicenceOrderServiceTest.java
...anage3-service/src/test/java/LicenceOrderServiceTest.java
+14
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/licence/LicenceOrderApiServiceImpl.java
View file @
e3a0545a
...
...
@@ -207,7 +207,7 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
logger
.
info
(
"微信回调的订单已处理!"
);
return
ServiceResponse
.
success
(
false
);
}
Date
payTime
=
DateUtil
.
strToDate
(
DateUtil
.
FORMAT_DATETIME_14
,
timeEnd
);
Date
payTime
=
DateUtil
.
strToDate
(
timeEnd
,
DateUtil
.
FORMAT_DATETIME_14
);
//更新订单状态
licenceOrderService
.
updateLicenceOrderType
(
licenceOrder
.
getOrderId
(),
1
,
licenceOrder
.
getEnterpriseId
(),
licenceOrder
.
getWxEnterpriseId
(),
"系统"
,
1
);
//保存微信订单id
...
...
haoban-manage3-service/src/test/java/LicenceOrderServiceTest.java
View file @
e3a0545a
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.licence.LicenceOrderDTO
;
...
...
@@ -50,4 +52,16 @@ public class LicenceOrderServiceTest {
ServiceResponse
<
Boolean
>
booleanServiceResponse
=
licenceOrderApiService
.
wxRefund
(
513736803677659139L
);
}
@Test
public
void
test6
(){
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"infoType"
,
"license_refund"
);
json
.
put
(
"openCorpId"
,
"wp59NLDQAAWfAU-uhldYZyNZnPXz_1xg"
);
json
.
put
(
"orderId"
,
"OI00000D4BD3E76423DDEB15475B1T"
);
json
.
put
(
"timeStamp"
,
"1680072171"
);
json
.
put
(
"orderStatus"
,
1
);
json
.
put
(
"buyerUserId"
,
"WangJianFeng"
);
licenceOrderApiService
.
qywxCallBack
(
JSON
.
toJSONString
(
json
));
}
}
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