增加5秒延迟

This commit is contained in:
lenheart 2025-12-28 14:32:19 +08:00
parent 63a461c02f
commit a96dfd3739
1 changed files with 9 additions and 6 deletions

View File

@ -34,12 +34,15 @@ function OnGatewaySocketConnect() {
print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m"); print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m");
}); });
local Jso = { Timer.SetTimeOut(function() {
op = 10001, local Jso = {
channel = Sq_Game_GetConfig(), op = 10001,
type = 1 channel = Sq_Game_GetConfig(),
} type = 1
Socket.SendGateway(Jso); }
Socket.SendGateway(Jso);
}, 5000);
foreach(value in OnGatewaySocketConnectFunc) { foreach(value in OnGatewaySocketConnectFunc) {
value(); value();