Skip to content

Commit 527c20f

Browse files
committed
fix(control): websocket sleep 3 秒
1 parent f4b004c commit 527c20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/app/Services/WebSocketService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function onOpen($server, $request)
3939
$str = floor($total / $api_excel['total_excel'] * 100).'%';
4040
// 3. 输出完成率
4141
$server->push($request->fd, $str);
42-
sleep(1);
42+
sleep(3);
4343
if ($total >= $api_excel['total_excel']) {
4444
break;
4545
}

0 commit comments

Comments
 (0)