Commit 35d683b8 authored by 张艳玲's avatar 张艳玲

update

parent 3e1e3e8b
package com.kjj.bean.agent;
import lombok.Data;
@Data
public class CustomerList {
private String customerId;
}
package com.kjj.cases.admin;
import com.kjj.utils.BaseUtils;
import com.kjj.utils.NetworkUtils;
import static com.kjj.config.BasicConfig.*;
import static com.kjj.config.BasicConfig.visitorAuth17;
/**
......@@ -59,142 +61,142 @@ public interface Authorization {
* 访客A(志勇)授权,代理人指定中奖用户,ID:107
*/
default void visitorAuth() {
network.agentCookies.put("authKey", VISITORKEY);
System.out.println("用户AUTH_KEY:" + VISITORKEY);
network.agentCookies.put("authKey", visitorAuth);
System.out.println("用户AUTH_KEY:" + visitorAuth);
}
/**
* 访客B(茶仔)授权,用户ID:122
*/
default void visitorAuth2() {
network.agentCookies.put("authKey", VISITORKEY2);
System.out.println("用户AUTH_KEY:" + VISITORKEY2);
network.agentCookies.put("authKey", visitorAuth2);
System.out.println("用户AUTH_KEY:" + visitorAuth2);
}
/**
* 访客C(刘超)授权,地域指定用户ID:811
*/
default void visitorAuth3() {
network.agentCookies.put("authKey", VISITORKEY3);
System.out.println("用户AUTH_KEY:" + VISITORKEY3);
network.agentCookies.put("authKey", visitorAuth3);
System.out.println("用户AUTH_KEY:" + visitorAuth3);
}
/**
* 访客D(李执)授权,地域指定用户ID:89
*/
default void visitorAuth4() {
network.agentCookies.put("authKey", VISITORKEY4);
System.out.println("用户AUTH_KEY:" + VISITORKEY4);
network.agentCookies.put("authKey", visitorAuth4);
System.out.println("用户AUTH_KEY:" + visitorAuth4);
}
/**
* 访客E(周成)授权,企业指定中奖用户,用户ID:812
*/
default void visitorAuth5() {
network.agentCookies.put("authKey", VISITORKEY5);
System.out.println("用户AUTH_KEY:" + VISITORKEY5);
network.agentCookies.put("authKey", visitorAuth5);
System.out.println("用户AUTH_KEY:" + visitorAuth5);
}
/**
* 访客F(新强)授权,用户ID:82
*/
default void visitorAuth6() {
network.agentCookies.put("authKey", VISITORKEY6);
System.out.println("用户AUTH_KEY:" + VISITORKEY6);
network.agentCookies.put("authKey", visitorAuth6);
System.out.println("用户AUTH_KEY:" + visitorAuth6);
}
/**
* 访客G(熊二)授权,黑名单用户,ID:719
*/
default void visitorAuth7() {
network.agentCookies.put("authKey", VISITORKEY7);
System.out.println("用户AUTH_KEY:" + VISITORKEY7);
network.agentCookies.put("authKey", visitorAuth7);
System.out.println("用户AUTH_KEY:" + visitorAuth7);
}
/**
* 访客I(熊大)授权 ID:1239
*/
default void visitorAuth8() {
network.agentCookies.put("authKey", VISITORKEY8);
System.out.println("用户AUTH_KEY:" + VISITORKEY8);
network.agentCookies.put("authKey", visitorAuth8);
System.out.println("用户AUTH_KEY:" + visitorAuth8);
}
/**
* 访客H(吉吉)非实名用户授权,ID:907
*/
default void visitorAuth9() {
network.agentCookies.put("authKey", VISITORKEY9);
System.out.println("用户AUTH_KEY:" + VISITORKEY9);
network.agentCookies.put("authKey", visitorAuth9);
System.out.println("用户AUTH_KEY:" + visitorAuth9);
}
/**
* 访客J(日落)授权,ID:703
*/
default void visitorAuth10() {
network.agentCookies.put("authKey", VISITORKEY10);
System.out.println("用户AUTH_KEY:" + VISITORKEY10);
network.agentCookies.put("authKey", visitorAuth10);
System.out.println("用户AUTH_KEY:" + visitorAuth10);
}
/**
* 访客K(沈小四)授权,ID:108
*/
default void visitorAuth11() {
network.agentCookies.put("authKey", VISITORKEY11);
System.out.println("用户AUTH_KEY:" + VISITORKEY11);
network.agentCookies.put("authKey", visitorAuth11);
System.out.println("用户AUTH_KEY:" + visitorAuth11);
}
/**
* 访客L(饺子)授权,ID:97
*/
default void visitorAuth12() {
network.agentCookies.put("authKey", VISITORKEY12);
System.out.println("用户AUTH_KEY:" + VISITORKEY12);
network.agentCookies.put("authKey", visitorAuth12);
System.out.println("用户AUTH_KEY:" + visitorAuth12);
}
/**
* 访客M(大妹子)非实名用户授权,ID:299
*/
default void visitorAuth13() {
network.agentCookies.put("authKey", VISITORKEY13);
System.out.println("用户AUTH_KEY:" + VISITORKEY13);
network.agentCookies.put("authKey", visitorAuth13);
System.out.println("用户AUTH_KEY:" + visitorAuth13);
}
/**
* 访客N(光头强)非实名用户授权,ID:540
*/
default void visitorAuth14() {
network.agentCookies.put("authKey", VISITORKEY14);
System.out.println("用户AUTH_KEY:" + VISITORKEY14);
network.agentCookies.put("authKey", visitorAuth14);
System.out.println("用户AUTH_KEY:" + visitorAuth14);
}
/**
* 访客O(少侠)授权,ID:79
*/
default void visitorAuth15() {
network.agentCookies.put("authKey", VISITORKEY15);
System.out.println("用户AUTH_KEY:" + VISITORKEY15);
network.agentCookies.put("authKey", visitorAuth15);
System.out.println("用户AUTH_KEY:" + visitorAuth15);
}
/**
* 访客P(抬头有飞碟)授权,ID:99
*/
default void visitorAuth16() {
network.agentCookies.put("authKey", VISITORKEY16);
System.out.println("用户AUTH_KEY:" + VISITORKEY16);
network.agentCookies.put("authKey", visitorAuth16);
System.out.println("用户AUTH_KEY:" + visitorAuth16);
}
/**
* 访客Q(枫城)授权,ID:77
*/
default void visitorAuth17() {
network.agentCookies.put("authKey", VISITORKEY17);
System.out.println("用户AUTH_KEY:" + VISITORKEY17);
network.agentCookies.put("authKey", visitorAuth17);
System.out.println("用户AUTH_KEY:" + visitorAuth17);
}
/**
* 访客R(小老弟来了)非实名用户授权,ID:94
*/
default void visitorAuth18() {
network.agentCookies.put("authKey", VISITORKEY18);
System.out.println("用户AUTH_KEY:" + VISITORKEY18);
network.agentCookies.put("authKey", visitorAuth18);
System.out.println("用户AUTH_KEY:" + visitorAuth18);
}
/**
......
This diff is collapsed.
......@@ -15,7 +15,8 @@ import java.util.List;
import java.util.Map;
import java.util.Objects;
import static com.kjj.config.BasicConfig.VISITORKEY;
import static com.kjj.config.BasicConfig.visitorAuth;
public class SignIn implements Authorization {
......@@ -29,7 +30,7 @@ public class SignIn implements Authorization {
WebSocketClient client = MyWebSocketUtil.connect();
Assert.assertNotNull(client, "WebSocket链接失败");
//身份认证,识别用户信息
MyWebSocketUtil.auth(client, VISITORKEY);
MyWebSocketUtil.auth(client, visitorAuth);
//进入直播间
MyWebSocketUtil.enter(client, LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
// MyWebSocketUtil.enter(client,"Kj21MjU5Njc" );
......
......@@ -221,5 +221,11 @@
<class name="com.kjj.cases.live.liveConfig.spec"/>
</classes>
</test>
<test preserve-order="true" name="客户管理">
<classes>
<class name="com.kjj.cases.live.agent.Customer"/>
</classes>
</test>
</suite>
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