Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
Project
Project
Details
Activity
Releases
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
龚小红
oto
Commits
85da46f6
Commit
85da46f6
authored
Aug 05, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除注释
parent
4d75a23f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
83 deletions
+0
-83
BaseUtils.java
src/test/java/com/kjj/utils/BaseUtils.java
+0
-83
No files found.
src/test/java/com/kjj/utils/BaseUtils.java
View file @
85da46f6
...
...
@@ -44,87 +44,4 @@ public class BaseUtils {
network
.
agentCookies
.
put
(
"sso_ticket"
,
"autotest"
);
}
//
// /**
// * 切换vip
// * @param userVersion 1是通用版 2是保险版
// * @param vipType 1是普通用户 2是vip用户
// */
// public static void switchVip(int userVersion, int vipType) {
// String sellerId = getSellerId();
//
// // 登录下,检验是否失效
// ssoLogin();
//
// // 1.切换公司为客集集
// Map<String, Object> changeParams = new HashMap<String, Object>();
// changeParams.put("id",sellerId);
// changeParams.put("companyId",6);
// Response response = network.getResponse(changeParams,MANAGER_CHANGECOMPANY);
// response.body().prettyPrint();
//
// // 2.切换为保险版vip
// Map<String, Object> switchVipParams = new HashMap<String, Object>();
// switchVipParams.put("reason","1");
// switchVipParams.put("sellerId",sellerId);
// switchVipParams.put("userVersion",userVersion);
// switchVipParams.put("vipType",vipType);
// switchVipParams.put("vipStartDate",System.currentTimeMillis());
// switchVipParams.put("vipEndDate",System.currentTimeMillis() + 1000*3600*24*365L);
// response = network.postResponse(switchVipParams,MANAGER_UPDATETYPEORDATE);
//
// // 3.切换公司为空
// changeParams.remove("companyId",6); //去掉公司
// response = network.getResponse(changeParams,MANAGER_CHANGECOMPANY);
//
// // 删除管理后台tku
// network.agentHeaders.remove("X-Csrf-Token");
// network.agentCookies.remove("sso_ticket");
// network.agentCookies.remove("device_no");
// network.agentCookies.remove("csrf_token");
//
// /**
// * 获取tku
// * @param userId 用户id
// * @return 用户tku
// */
// public static String getTku(int userId){
// Map<String, Object> tkuParams = new HashMap<String, Object>();
// tkuParams.put("userId",userId);
// Response response = network.getResponse(tkuParams,AUTOTEST_TKU);
// response.body().prettyPrint();
// return response.jsonPath().getString("data");
// }
//
// /**
// * 账号禁用
// */
// public static void disableUser() {
// // 获取sellerId、userId
// String sellerId = getSellerId();
// String userId = getUserId();
//
// // 取关公众号
// Map<String, Object> unsubscribeParams = new HashMap<String, Object>();
// unsubscribeParams.put("userId", userId);
// unsubscribeParams.put("oaId", 1);
// Response response = network.getResponse(unsubscribeParams, AUTOTEST_UNSUBSCRIBE);
// System.out.println(response.statusCode());
//
// // 登录下,检验是否失效
// ssoLogin();
//
// // 公司改为客集集
// Map<String, Object> changeParams = new HashMap<String, Object>();
// changeParams.put("id", sellerId);
// changeParams.put("companyId", 6);
// response = network.getResponse(changeParams, MANAGER_CHANGECOMPANY);
//
// // 删除账号
// Map<String, Object> params = new HashMap<String, Object>();
// params.put("userId", userId);
// response = network.postResponse(params, MANAGER_DISABLEUSER);
// response.body().prettyPrint();
// }
// }
}
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