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

开启直播前增加校验是否有直播场次未结束

parent bc45e333
...@@ -10,19 +10,15 @@ public class Dialogue { ...@@ -10,19 +10,15 @@ public class Dialogue {
private String agentConclusion; private String agentConclusion;
private String agentGreet; private String agentGreet;
private String promiseTitle; private String promiseTitle;
private String promiseDesc;
private String promiseButton; private String promiseButton;
private String customerActionPromise;
private int inviteType; private int inviteType;
public Dialogue(ArrayList<String> quesList, String agentConclusion, String agentGreet, String promiseTitle, String promiseDesc, String promiseButton, String customerActionPromise, int inviteType) { public Dialogue(ArrayList<String> quesList, String agentConclusion, String agentGreet, String promiseTitle, String promiseButton, int inviteType) {
this.quesList = quesList; this.quesList = quesList;
this.agentConclusion = agentConclusion; this.agentConclusion = agentConclusion;
this.agentGreet = agentGreet; this.agentGreet = agentGreet;
this.promiseTitle = promiseTitle; this.promiseTitle = promiseTitle;
this.promiseDesc = promiseDesc;
this.promiseButton = promiseButton; this.promiseButton = promiseButton;
this.customerActionPromise = customerActionPromise;
this.inviteType = inviteType; this.inviteType = inviteType;
} }
} }
...@@ -1348,8 +1348,8 @@ public class SaveLive implements Authorization { ...@@ -1348,8 +1348,8 @@ public class SaveLive implements Authorization {
Map<String, Object> Params = new HashMap<>(); Map<String, Object> Params = new HashMap<>();
Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey())); Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
ArrayList<Dialogue> dialogues = new ArrayList<>(); ArrayList<Dialogue> dialogues = new ArrayList<>();
dialogues.add(new Dialogue(new ArrayList<>(Arrays.asList("一度问题1","一度问题2","一度问题3")),"一度代理人结束语","一度代理人欢迎语","一度承诺标题","一度承诺描述","一度承诺按钮文案","一度行动承诺",1)); dialogues.add(new Dialogue(new ArrayList<>(Arrays.asList("一度问题1","一度问题2","一度问题3")),"一度代理人结束语","一度代理人欢迎语","一度承诺标题","一度承诺按钮文案",1));
dialogues.add(new Dialogue(new ArrayList<>(Arrays.asList("二度问题1","二度问题2","二度问题3")),"二度代理人结束语","二度代理人欢迎语","二度承诺标题","二度承诺描述","二度承诺按钮文案","二度行动承诺",0)); dialogues.add(new Dialogue(new ArrayList<>(Arrays.asList("二度问题1","二度问题2","二度问题3")),"二度代理人结束语","二度代理人欢迎语","二度承诺标题","二度承诺按钮文案",0));
Params.put("dialogues", dialogues); Params.put("dialogues", dialogues);
Response response = network.postResponse(Params, BasicConfig.MANAGER_saveDialogue); Response response = network.postResponse(Params, BasicConfig.MANAGER_saveDialogue);
System.out.println(Params); System.out.println(Params);
......
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