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
fcbc5534
Commit
fcbc5534
authored
Mar 27, 2026
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
尝试修复超边界问题
parent
abc2de1e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/main/java/com/xiaomai/cases/polar/points/TestFindStatementPagePermission.java
+4
-0
No files found.
src/main/java/com/xiaomai/cases/polar/points/TestFindStatementPagePermission.java
View file @
fcbc5534
...
...
@@ -95,6 +95,7 @@ public class TestFindStatementPagePermission extends XMBaseTest {
cardId
=
cardTools
.
memberCardCreate
(
"积分自动化会员卡"
).
getString
(
"result"
);
}
JSONObject
memberCard
=
orderTools
.
fetchPageOfMemberCard
(
"积分会员卡"
,
"MEMBER_CARD"
);
Thread
.
sleep
(
500
);
cardId
=
memberCard
.
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getString
(
"id"
);
//会员卡ID
//会员卡购买
...
...
@@ -166,12 +167,15 @@ public class TestFindStatementPagePermission extends XMBaseTest {
String
categoryId1
=
courseCategoryTools
.
getCourseCategoryPage
(
"健美操"
);
Thread
.
sleep
(
500
);
String
courseId1
=
courseTools
.
getPersonalOrGroupCourseId
(
"PERSONAL"
,
"积分自动化私教课"
,
categoryId1
,
"STUDIO"
,
"ONE_TO_MANY"
,
1
,
1
).
getString
(
0
);
JSONArray
personalCoachTime
=
reserveTools
.
getPersonalTimeBlocks
(
xmAppApi
.
getLoginInfo
().
getAdminId
(),
courseId1
,
TimeUtils
.
getTodayTime
());
// 获取当前日期的Calendar实例
Calendar
calendar
=
Calendar
.
getInstance
();
Thread
.
sleep
(
500
);
// 获取第一条的步长 转换成时间戳
int
minuteOffset1
=
personalCoachTime
.
getJSONObject
(
0
).
getIntValue
(
"minuteOffset"
)/
60
;
calendar
.
set
(
Calendar
.
HOUR_OF_DAY
,
minuteOffset1
);
...
...
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