Commit eb1a8b4c authored by 龚小红's avatar 龚小红

更改xml文件

parent 6ce349d7
......@@ -966,4 +966,7 @@ public class BasicConfig {
public static final String MANAGER_addExclusiveArea = MANAGER_HOST + "/kjy/manager/exclusiveArea/add";
public static final String MANAGER_searchTemplateList = MANAGER_HOST + "/kjy/manager/game/searchTemplateList";
public static final String MANAGER_getTemplateDetail = MANAGER_HOST + "/kjy/manager/game/getTemplateDetail";
public static final String MANAGER_vipList = MANAGER_HOST + "/kjy/manager/seller/vipList";
public static final String MANAGER_disableUser = MANAGER_HOST + "/kjy/manager/testUser/disableUser";
public static final String MANAGER_updateTypeOrDate = MANAGER_HOST + "/kjy/manager/seller/updateTypeOrDate";
}
......@@ -44,6 +44,87 @@ 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();
// }
// }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment