Skip to content

Commit 129f9af

Browse files
committed
fix Call to undefined method setTries
1 parent e811bc7 commit 129f9af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/app/Http/Controllers/Api/ApiExcelController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function startTask()
146146
$event = new ApiExcelSwooleEvent($data);
147147
// $event = new TestEvent('event data');
148148
// $event->delay(10); // 延迟10秒触发
149-
$event->setTries(2); // 出现异常时,累计尝试3次
149+
// $event->setTries(2); // 出现异常时,累计尝试3次
150150
$success = Event::fire($event);
151151
// var_dump($success);// 判断是否触发成功
152152
} else {

0 commit comments

Comments
 (0)