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
86fa27dc
authored
Sep 03, 2025
by
qiuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 客户端新方法
parent
5968e863
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
games/img/kettle_icon.png
js/webAppComm.js
games/img/kettle_icon.png
0 → 100644
View file @
86fa27dc
27.8 KB
js/webAppComm.js
View file @
86fa27dc
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
// 47: 直播奖励小窗抖动
// 47: 直播奖励小窗抖动
// 48: 弹出用户行为规范弹窗
// 48: 弹出用户行为规范弹窗
// 49: base64格式图片保存到相册
// 49: base64格式图片保存到相册
// 50: 网页在直播间唤起输入框并且粘贴文本到输入框
function
webAppComm
()
{
function
webAppComm
()
{
this
.
data
=
null
;
this
.
data
=
null
;
...
@@ -717,6 +718,18 @@ webAppComm.prototype.saveImgToAlbum = function (imgUrl) {
...
@@ -717,6 +718,18 @@ webAppComm.prototype.saveImgToAlbum = function (imgUrl) {
webAppCollaboration
(
obj2
);
webAppCollaboration
(
obj2
);
}
}
// 50: 网页在直播间唤起输入框并且粘贴文本到输入框
webAppComm
.
prototype
.
evokeIptPasteText
=
function
(
text
)
{
let
obj
=
{
"cid"
:
50
,
"data"
:
{
'msg'
:
text
//文本内容
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
}
//接收客戶端的消息
//接收客戶端的消息
webAppComm
.
prototype
.
reMsgFromApp
=
function
(
callback
)
{
webAppComm
.
prototype
.
reMsgFromApp
=
function
(
callback
)
{
callback
&&
callback
();
callback
&&
callback
();
...
...
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