Commit 0593f463 by kaisa

feat:新增cid:57 开启加入游戏房间

parent 3fa0f482
Showing with 14 additions and 0 deletions
...@@ -867,6 +867,20 @@ webAppComm.prototype.backOriginApp = function () { ...@@ -867,6 +867,20 @@ webAppComm.prototype.backOriginApp = function () {
webAppCollaboration(obj2); webAppCollaboration(obj2);
} }
// 57:开启/加入游戏房间
webAppComm.prototype.joinGameRoom = function (isOpenGameRoom, roomId) {
let obj = {
"cid": 57,
"data": {
"msg": '开启/加入游戏房间',
"isOpenGameRoom": isOpenGameRoom, //0 开启房间 1 加入房间
"roomId": roomId
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
// 58: 告知客户端是否打开原生侧滑返回手势(flutter使用) // 58: 告知客户端是否打开原生侧滑返回手势(flutter使用)
webAppComm.prototype.setNativeSwipeBackEnabled = function (enabled) { webAppComm.prototype.setNativeSwipeBackEnabled = function (enabled) {
let obj = { let obj = {
......
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 sign in to comment