Commit 415e93bb authored by Chunchi Che's avatar Chunchi Che

update version

parent 5c785489
Pipeline #20461 passed with stages
in 6 minutes and 30 seconds
{
"version": 4948,
"assetsPath": "/neos-assets",
"cardImgUrl": "https://cdn02.moecube.com:444/images/ygopro-images-zh-CN",
"ui": {
......
......@@ -3,6 +3,7 @@
*
* */
import { sendJoinGame, sendPlayerInfo } from "../api/ocgcore/ocgHelper";
import NeosConfig from "../../neos.config.json";
/*
* 长连接建立后,需要马上发送PlayerInfo和JoinGame两个数据包,
......@@ -11,7 +12,7 @@ import { sendJoinGame, sendPlayerInfo } from "../api/ocgcore/ocgHelper";
* */
export default function handleSocketOpen(
ws: WebSocket | null,
ip: string,
_ip: string,
player: string,
passWd: string
) {
......@@ -21,6 +22,6 @@ export default function handleSocketOpen(
ws.binaryType = "arraybuffer";
sendPlayerInfo(ws, player);
sendJoinGame(ws, 4947, passWd); // todo: version use config
sendJoinGame(ws, NeosConfig.version, passWd); // todo: version use config
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment