竞赛场景恢复
This commit is contained in:
parent
5db771b765
commit
687ada1133
@ -95,14 +95,6 @@ public class CompetitionAndScriptManager {
|
||||
String content = unfinishedAction.getContent();
|
||||
unfinishedAction.setContent(String.format(content, currentTime));
|
||||
}
|
||||
// TODO: 2021/4/29 为方便测试
|
||||
if (ScriptActionBO.ActionType.Operation.equals(unfinishedAction.getType())
|
||||
|| ScriptActionBO.ActionType.Drive.equals(unfinishedAction.getType())) {
|
||||
if (competition != null && competition.isWeChat()) {
|
||||
unfinishedAction.finish();
|
||||
return;
|
||||
}
|
||||
}
|
||||
//如果动作执行者不是机器人
|
||||
if (!unfinishedAction.getMember().isRobot()) {
|
||||
if (!unfinishedAction.isPrompt()) {
|
||||
|
@ -143,8 +143,7 @@ public class CompetitionBO {
|
||||
|
||||
public void start(Client client) {
|
||||
this.started = true;
|
||||
// this.weChat = Client.Assistant.equals(client);
|
||||
this.weChat = true;
|
||||
this.weChat = Client.Assistant.equals(client);
|
||||
}
|
||||
|
||||
public void end() {
|
||||
|
Loading…
Reference in New Issue
Block a user