Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
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
xiamai-test
xm-sportstest
Commits
c5538e42
Commit
c5538e42
authored
Aug 22, 2024
by
xyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
93ddc494
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/main/java/com/xiaomai/cases/lunar/order/TestPurchaseDeposit.java
+2
-1
No files found.
src/main/java/com/xiaomai/cases/lunar/order/TestPurchaseDeposit.java
View file @
c5538e42
...
...
@@ -66,6 +66,7 @@ public class TestPurchaseDeposit extends XMBaseTest {
int
cardNum
=
minCardTools
.
countMyUsableCard
(
memberId
);
//获取1张0元储值卡id
cardId
=
minCardTools
.
fetchOnSaleMemberCard
(
"0元储值卡"
,
"DEPOSIT_CARD"
).
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getString
(
"id"
);
String
cardSnapshotId
=
XMJSONPath
.
readPath
(
orderCTools
.
findTenantCardDetailById
(
cardId
,
memberId
),
"$.result.latestSnapshotId"
);
cardName
=
minCardTools
.
fetchOnSaleMemberCard
(
"0元储值卡"
,
"DEPOSIT_CARD"
).
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getString
(
"title"
);
//确认订单页
orderCTools
.
findTenantCardDetailById
(
cardId
,
null
);
...
...
@@ -74,7 +75,7 @@ public class TestPurchaseDeposit extends XMBaseTest {
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"activatePattern"
,
"PURCHASE"
);
jsonObject
.
put
(
"cardId"
,
cardId
);
jsonObject
.
put
(
"cardSnapshotId"
,
cardId
);
jsonObject
.
put
(
"cardSnapshotId"
,
card
Snapshot
Id
);
jsonObject
.
put
(
"memberId"
,
memberId
);
jsonObject
.
put
(
"memo"
,
"自动化C端购买储值卡"
);
jsonObject
.
put
(
"receivableAmount"
,
"0.00"
);
...
...
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