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
9edee6dc
Commit
9edee6dc
authored
Aug 06, 2024
by
xuyamei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决报错
parent
4082248d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
src/main/java/com/xiaomai/cases/polar/setting/rules/RuleTools.java
+30
-3
No files found.
src/main/java/com/xiaomai/cases/polar/setting/rules/RuleTools.java
View file @
9edee6dc
...
...
@@ -116,20 +116,47 @@ public class RuleTools extends XMBaseTest {
* 获取训练营签到规则
* @return
*/
public
JSONObject
getCampBookingRules
(){
public
JSONObject
getCampBookingRules
(
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Setting
)
.
setApiName
(
"API_getCampBookingRules"
)
.
setTerminal
(
Terminal
.
B
);
super
.
beforeDataRequest
();
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
body
=
new
JSONObject
();
body
.
put
(
"brandId"
,
dataApi
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"studioId"
,
dataApi
.
getLoginInfo
().
getStudioId
());
body
.
put
(
"operatorId"
,
dataApi
.
getLoginInfo
().
getAdminId
());
dataApi
.
doRequest
(
RequestType
.
JSON
,
params
,
body
.
toString
(),
heade
rs
).
assetsSuccess
(
true
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
body
.
toString
(),
datahead
rs
).
assetsSuccess
(
true
);
return
dataApi
.
getBodyInJSON
().
getJSONObject
(
"result"
);
}
/**
* @description:保存训练营签到规则
* @author: xuyamei
* @date: 2024/8/1 10:16
* @param id
* @param xcxAutoSignIn
* @param scanSignIn
* @param signInBeforeMinutes
* @return: void
**/
public
void
saveCampBookingRules
(
String
id
,
boolean
xcxAutoSignIn
,
boolean
scanSignIn
,
int
signInBeforeMinutes
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Setting
)
.
setApiName
(
"API_saveCampBookingRules"
)
.
setTerminal
(
Terminal
.
B
);
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
body
=
new
JSONObject
();
body
.
put
(
"operatorId"
,
dataApi
.
getLoginInfo
().
getAdminId
());
body
.
put
(
"studioId"
,
dataApi
.
getLoginInfo
().
getStudioId
());
body
.
put
(
"brandId"
,
dataApi
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"id"
,
id
);
body
.
put
(
"xcxAutoSignIn"
,
xcxAutoSignIn
);
body
.
put
(
"scanSignIn"
,
scanSignIn
);
body
.
put
(
"signInBeforeMinutes"
,
signInBeforeMinutes
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
body
.
toString
(),
dataheadrs
).
assetsSuccess
(
true
);
}
}
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