Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e44a5614
authored
Jul 01, 2026
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新
parent
fd4d9056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
js/webAppComm.js
js/webAppComm.js
View file @
e44a5614
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment