Commit 7e774f54 authored by Su-Yi's avatar Su-Yi

新增新手任务case

parent 56efd152
This diff is collapsed.
......@@ -31,6 +31,15 @@ public class NetworkUtil {
public Map<String, Object> getFileHeaders() { return agentHeaders; }
public void setFileHeadersHeaders(Map<String, Object> fileHeaders) { this.fileHeaders = fileHeaders; }
//代理人的tku
public String agentTku = new String("T3gM31f18jAWdkgg3kyGYmYH8Vsrd5BdQJ7fpFfRikMJJQycJFXTTxtqATmEN3ECa4TnKjKvtbazYb3e3X");
public String getAgentTku() { return agentTku; }
public void setAgentTku(String agentTku) { this.agentTku = agentTku; }
//访客的tku
public String visitorTku = new String("QoEVdKqFrDvq89RmQPxDArCNwjwotBjn4sfHr62Dv8Z1A4gRH6cxqrSLJP42ywZHttE");
public String getVisitorTku() { return visitorTku; }
public void setVisitorTku(String visitorTku) { this.visitorTku = visitorTku; }
// 钉钉的 headers
public Map<String, Object> dingTalkHeaders = new HashMap<String, Object>();
public Map<String, Object> getDingTalkHeaders() { return dingTalkHeaders; }
......@@ -52,7 +61,7 @@ public class NetworkUtil {
// 构造函数 初始化tku、content-type
private NetworkUtil (){
//cookies中的tku
agentCookies.put("tku","T3gM31f18jAWdkgg3kyGYmYH8Vsrd5BdQJ7fpFfRikMJJQycJFXTTxtqATmEN3ECa4TnKjKvtbazYb3e3X");
agentCookies.put("tku",this.agentTku);
//json类型的headers
agentHeaders.put("Content-Type","application/json");
//二进制文件的headers
......@@ -134,7 +143,8 @@ public class NetworkUtil {
public static void main(String[] args) {
NetworkUtil network = NetworkUtil.getInstance();
System.out.println(network.agentTku);
}
}
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