Commit 84796c3c authored by 张艳玲's avatar 张艳玲

update

parent aa65d808
...@@ -17,7 +17,7 @@ public interface AdminAuthorization { ...@@ -17,7 +17,7 @@ public interface AdminAuthorization {
default void adminAuth(){ default void adminAuth(){
// 创建用户 并传到network里 // 创建用户 并传到network里
BasicConfig.AUTH_KEY = BaseUtils.createAuthKey(); // BasicConfig.AUTH_KEY = BaseUtils.createAuthKey();
network.agentCookies.put("authKey",AUTH_KEY); network.agentCookies.put("authKey",AUTH_KEY);
System.out.println("用户AUTH_KEY:"+AUTH_KEY); System.out.println("用户AUTH_KEY:"+AUTH_KEY);
...@@ -28,7 +28,7 @@ public interface AdminAuthorization { ...@@ -28,7 +28,7 @@ public interface AdminAuthorization {
*/ */
default void agentAuth(){ default void agentAuth(){
// 创建用户 并传到network里 // 创建用户 并传到network里
BasicConfig.AUTH_KEY = BaseUtils.agentAuthKey(); // BasicConfig.AUTH_KEY = BaseUtils.agentAuthKey();
network.agentCookies.put("authKey",AUTH_KEY); network.agentCookies.put("authKey",AUTH_KEY);
System.out.println("用户AUTH_KEY:"+AUTH_KEY); System.out.println("用户AUTH_KEY:"+AUTH_KEY);
......
...@@ -8,21 +8,13 @@ import com.kjj.utils.BaseUtils; ...@@ -8,21 +8,13 @@ import com.kjj.utils.BaseUtils;
import io.restassured.response.Response; import io.restassured.response.Response;
import org.apache.commons.lang3.time.DateUtils; import org.apache.commons.lang3.time.DateUtils;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import java.util.*; import java.util.*;
public class SaveAndUpdate implements AdminAuthorization { public class SaveAndUpdate implements AdminAuthorization {
@BeforeClass
public void setUp() {
adminAuth();
}
public String liveID; public String liveID;
@Test(description = "创建直播", priority = 1) @Test(description = "创建直播", priority = 1)
public void 创建直播() { public void 创建直播() {
...@@ -36,6 +28,8 @@ public class SaveAndUpdate implements AdminAuthorization { ...@@ -36,6 +28,8 @@ public class SaveAndUpdate implements AdminAuthorization {
saveAndUpdateParam.put("title", "自动化直播"); saveAndUpdateParam.put("title", "自动化直播");
saveAndUpdateParam.put("mpShareTitle", "自动化直播"); saveAndUpdateParam.put("mpShareTitle", "自动化直播");
saveAndUpdateParam.put("companyId", 101); saveAndUpdateParam.put("companyId", 101);
saveAndUpdateParam.put("agentInviteAuthType", 1);
saveAndUpdateParam.put("agentInviteAuthLimitNum", 1);
long noticeTime = DateUtils.addHours(new Date(), 2).getTime(); long noticeTime = DateUtils.addHours(new Date(), 2).getTime();
long broadcastTime = DateUtils.addHours(new Date(), 5).getTime(); long broadcastTime = DateUtils.addHours(new Date(), 5).getTime();
......
...@@ -4,7 +4,7 @@ public class BasicConfig { ...@@ -4,7 +4,7 @@ public class BasicConfig {
public static int apiCount; //接口数量统计 public static int apiCount; //接口数量统计
// 是否开启钉钉机器人推送 // 是否开启钉钉机器人推送
public static final boolean isPushReport =true; //true public static final boolean isPushReport =false; //true
// 代理人微信昵称 // 代理人微信昵称
public static final String WECHAT_NAME = "嘿保险"; //true public static final String WECHAT_NAME = "嘿保险"; //true
...@@ -13,12 +13,12 @@ public class BasicConfig { ...@@ -13,12 +13,12 @@ public class BasicConfig {
public static final String OPEN_ID = "osi5w5ggFiEXk0tPJH9b0KO_XU08"; public static final String OPEN_ID = "osi5w5ggFiEXk0tPJH9b0KO_XU08";
// 直播用户 authkey // 直播用户 authkey
public static String AUTH_KEY = null; public static String AUTH_KEY ="LEH7epeHVDJWzhZ6DiexTHnsxqTYbFAJqyMsZZMjY2ByyE2firpRpwm9mdHVU19iqNmyyDTwuCHEYT2URmtEUV7LRD7nU";
// 代理人 TKU // 基础线代理人 TKU
public static String AGENT_TKU = "T3gM31f18jCFEcfoYxvVk1LsF5T1YkcBNDbUaryi3TgvwatuP6mroJjZ2k7iCHjC9Srujh7k311i3vFuZm"; public static String AGENT_TKU = "T3gM31f18jCFEcfoYxvVk1LsF5T1YkcBNDbUaryi3TgvwatuP6mroJjZ2k7iCHjC9Srujh7k311i3vFuZm";
// 访客 TKU // 基础线访客 TKU
public static String VISITOR_TKU = "T3gM31f18jCGvqvoyJRzyMTdpcPDJWUJJP4VQje7p9sfHcRNmyhTEzEbfmwrGFy5doVEinb1k3SVwreYQE"; public static String VISITOR_TKU = "T3gM31f18jCGvqvoyJRzyMTdpcPDJWUJJP4VQje7p9sfHcRNmyhTEzEbfmwrGFy5doVEinb1k3SVwreYQE";
// 访客的sids // 访客的sids
......
...@@ -12,12 +12,12 @@ import static com.kjj.config.BasicConfig.*; ...@@ -12,12 +12,12 @@ import static com.kjj.config.BasicConfig.*;
public class BaseUtils { public class BaseUtils {
private static final NetworkUtils network = NetworkUtils.getInstance(); private static final NetworkUtils network = NetworkUtils.getInstance();
public static String createAuthKey(){ // public static String createAuthKey(){
return "LEH7epeHVDJWzhZ6DiexTHnsxraeviLJA9bNdknyzwR7cXT557KHZA1Q7zWnN9N2E3vHcFrt8S3xhGApKa3NmE7oaxyXz"; // return "LEH7epeHVDJWzhZ6DiexTHnsxraeviLJA9bNdknyzwR7cXT557KHZA1Q7zWnN9N2E3vHcFrt8S3xhGApKa3NmE7oaxyXz";
} // }
public static String agentAuthKey(){ // public static String agentAuthKey(){
return "LEH7epeHVDJWzhZ6DiexTHnsxs8JtX5mzCVwq1X5TSe6JEJMzL51umD812fWb8P5rLt5mw9SfPzLp6uwthsFnXAhKCYLq"; // return "LEH7epeHVDJWzhZ6DiexTHnsxs8JtX5mzCVwq1X5TSe6JEJMzL51umD812fWb8P5rLt5mw9SfPzLp6uwthsFnXAhKCYLq";
} // }
/** /**
* 登录管理后台 * 登录管理后台
......
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