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
f3c41ba1
Commit
f3c41ba1
authored
Dec 16, 2024
by
xuyamei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决报错
parent
07fe3508
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/main/java/com/xiaomai/cases/polar/course/TestEditPersonalCourse.java
+6
-2
No files found.
src/main/java/com/xiaomai/cases/polar/course/TestEditPersonalCourse.java
View file @
f3c41ba1
...
@@ -58,7 +58,7 @@ public class TestEditPersonalCourse extends BaseTestImpl {
...
@@ -58,7 +58,7 @@ public class TestEditPersonalCourse extends BaseTestImpl {
String
courseName
=
"存量瑜伽课程"
+
TimeUtils
.
getCurrentTime
();
String
courseName
=
"存量瑜伽课程"
+
TimeUtils
.
getCurrentTime
();
JSONObject
body
=
new
JSONObject
();
JSONObject
body
=
new
JSONObject
();
body
.
put
(
"categoryId"
,
c
ourseDetail
.
getString
(
"categoryId"
)
);
body
.
put
(
"categoryId"
,
c
ategoryId
);
body
.
put
(
"courseName"
,
courseName
);
body
.
put
(
"courseName"
,
courseName
);
body
.
put
(
"duration"
,
duration
);
// 时长
body
.
put
(
"duration"
,
duration
);
// 时长
body
.
put
(
"difficulty"
,
difficulty
);
// 难度
body
.
put
(
"difficulty"
,
difficulty
);
// 难度
...
@@ -81,7 +81,11 @@ public class TestEditPersonalCourse extends BaseTestImpl {
...
@@ -81,7 +81,11 @@ public class TestEditPersonalCourse extends BaseTestImpl {
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
body
.
toString
(),
headers
).
assetsSuccess
(
true
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
body
.
toString
(),
headers
).
assetsSuccess
(
true
);
try
{
Thread
.
sleep
(
3000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
String
[]
keys
=
{
"courseName"
,
"duration"
,
"difficulty"
,
"color"
,
"coverId"
,
"timeUnit"
,
"categoryId"
,
"sourceId"
,
"sourceType"
,
"brandId"
,
"sizeType"
,
"allArea"
,
"capacity"
,
"minCapacity"
};
String
[]
keys
=
{
"courseName"
,
"duration"
,
"difficulty"
,
"color"
,
"coverId"
,
"timeUnit"
,
"categoryId"
,
"sourceId"
,
"sourceType"
,
"brandId"
,
"sizeType"
,
"allArea"
,
"capacity"
,
"minCapacity"
};
String
[]
values
=
{
courseName
,
String
.
valueOf
(
duration
),
String
.
valueOf
(
difficulty
),
"#AACF53"
,
"0"
,
"MINUTE"
,
categoryId
,
xmAppApi
.
getLoginInfo
().
getStudioId
(),
"STUDIO"
,
xmAppApi
.
getLoginInfo
().
getBrandId
(),
"ONE_TO_MANY"
,
"false"
,
String
.
valueOf
(
capacity
),
"1"
};
String
[]
values
=
{
courseName
,
String
.
valueOf
(
duration
),
String
.
valueOf
(
difficulty
),
"#AACF53"
,
"0"
,
"MINUTE"
,
categoryId
,
xmAppApi
.
getLoginInfo
().
getStudioId
(),
"STUDIO"
,
xmAppApi
.
getLoginInfo
().
getBrandId
(),
"ONE_TO_MANY"
,
"false"
,
String
.
valueOf
(
capacity
),
"1"
};
// 校验内容与编辑的是否一致
// 校验内容与编辑的是否一致
...
...
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