|
@@ -409,7 +409,7 @@ export class taskServce {
|
|
|
public static checkFinishZhaoXiJieEventItem(finish_event_item:event_item) {
|
|
|
if(taskServce.isFinishZhaoXiJieTask) {
|
|
|
if(finish_event_item.event_id == taskServce.finishZhaoXiJieLastEventId) {
|
|
|
- console.log('事件完成 事件完成 事件完成 执行')
|
|
|
+ // console.log('事件完成 事件完成 事件完成 执行')
|
|
|
gameManager.Singleton.unscheduleAllCallbacks()
|
|
|
let zhaoxijie_data = taskServce.mTaskData._zhao_xi_jie_data
|
|
|
ClientEvent.dispatchEvent(config.EventRun.ON_ZHAO_BU_TONG_ALL_FINISH, zhaoxijie_data)
|
|
@@ -429,7 +429,9 @@ export class taskServce {
|
|
|
break;
|
|
|
} else {
|
|
|
if(element.widget_id==widget_id) { //找到最后一个
|
|
|
- taskServce.finishZhaoXiJieLastEventId = element.finish_event_id
|
|
|
+ if(element.finish_event_id!=undefined) {
|
|
|
+ taskServce.finishZhaoXiJieLastEventId = element.finish_event_id
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -452,7 +454,7 @@ export class taskServce {
|
|
|
return tools.showToast("未设置全部找完任务的下一个事件!")
|
|
|
}else{
|
|
|
if(taskServce.finishZhaoXiJieLastEventId==-1) {
|
|
|
- console.log('直接执行了 直接执行了 直接执行了')
|
|
|
+ // console.log('直接执行了 直接执行了 直接执行了')
|
|
|
taskServce.DistributedEvent(taskServce.getEventById(id))
|
|
|
}
|
|
|
}
|