up. 优化代码内容
This commit is contained in:
parent
a073e73f6d
commit
e3f1457b61
@ -77,11 +77,11 @@ class GatewaySubscribe
|
||||
));
|
||||
|
||||
// // 方式1. 通过注入Array
|
||||
// GatewayClientService::sendToClient($put->wsClientId, new OutMessage(
|
||||
// ScriptEnum::create(
|
||||
// new Swal(title: '登录成功,欢迎您', text: "当前登录Ip: $ip")
|
||||
// ),
|
||||
// ));
|
||||
GatewayClientService::sendToClient($put->wsClientId, new OutMessage(
|
||||
ScriptEnum::create(
|
||||
new Swal(title: '登录成功,欢迎您', text: "当前登录Ip: $ip")
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -125,12 +125,6 @@ class GatewaySubscribe
|
||||
GatewayClientService::sendToClient($put->wsClientId,new OutMessage(
|
||||
SystemEnum::Lock_Client
|
||||
));
|
||||
// 弹窗提示框
|
||||
GatewayClientService::sendToClient($put->wsClientId, new OutMessage(
|
||||
ScriptEnum::create(
|
||||
new Swal(title: '登录成功,欢迎您', text: "锁定客户端")
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user