Commit e44a5614 by kaisa

feat:更新

parent fd4d9056
Showing with 4 additions and 3 deletions
......@@ -696,7 +696,7 @@ webAppComm.prototype.setBackground = function (color, color2) {
webAppComm.prototype.toVibrate = function (duration) {
// 使用 Number() 将 duration 转换为数字类型
let numDuration = Number(duration);
let obj = {
"cid": 42,
"data": {
......@@ -897,13 +897,14 @@ webAppComm.prototype.backOriginApp = function () {
}
// 57:开启/加入游戏房间
webAppComm.prototype.joinGameRoom = function (isOpenGameRoom, roomId) {
webAppComm.prototype.joinGameRoom = function (isOpenGameRoom, roomId, gameType) {
let obj = {
"cid": 57,
"data": {
"msg": '开启/加入游戏房间',
"isOpenGameRoom": isOpenGameRoom, //0 开启房间 1 加入房间
"roomId": roomId
"roomId": roomId,
"gameType": gameType, //游戏类型 1001:LUDO (后续增加)
}
}
let obj2 = JSON.stringify(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