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
154b2906
authored
Apr 15, 2026
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增cid57
parent
8a0e00db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
js/webAppComm.js
js/webAppComm.js
View file @
154b2906
...
@@ -744,6 +744,7 @@ webAppComm.prototype.liveShakes = function () {
...
@@ -744,6 +744,7 @@ webAppComm.prototype.liveShakes = function () {
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
webAppCollaboration
(
obj2
);
}
}
// 48:弹出用户行为规范弹窗
// 48:弹出用户行为规范弹窗
webAppComm
.
prototype
.
userBehaviorSpecification
=
function
(
type
)
{
webAppComm
.
prototype
.
userBehaviorSpecification
=
function
(
type
)
{
let
obj
=
{
let
obj
=
{
...
@@ -853,6 +854,32 @@ webAppComm.prototype.openChatApp = function (appType,officialId) {
...
@@ -853,6 +854,32 @@ webAppComm.prototype.openChatApp = function (appType,officialId) {
webAppCollaboration
(
obj2
);
webAppCollaboration
(
obj2
);
}
}
// 56: 返回原生上一层(flutter使用)
webAppComm
.
prototype
.
backOriginApp
=
function
()
{
let
obj
=
{
"cid"
:
56
,
"data"
:
{
"msg"
:
'返回原生上一层'
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
}
// 57: 告知客户端需要打开的是网页还是flutter页面(flutter使用)
webAppComm
.
prototype
.
openWebOrFlutterPage
=
function
(
pageType
)
{
let
obj
=
{
"cid"
:
57
,
"data"
:
{
"msg"
:
'告知客户端需要打开的是网页还是flutter页面'
,
"pageType"
:
pageType
}
}
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