1
0
forked from x/volcanos
This commit is contained in:
shaoying 2021-08-06 09:13:13 +08:00
parent e87f611cc8
commit db3dcdb474
2 changed files with 4 additions and 3 deletions

View File

@ -84,10 +84,10 @@ Volcanos("user", {help: "用户操作", agent: {
return action
},
share: function(can, msg, cmd) {
can.run(msg._event, cmd||[ctx.ACTION, "share"], function(msg) {
can.run(msg._event, cmd||[ctx.ACTION, chat.SHARE], function(msg) {
can.user.toast(can, {height: 300, width: 500,
title: msg.Append("name"), duration: -1,
content: msg.Append("text"), action: ["close"],
title: msg.Append(kit.MDB_NAME), duration: -1,
content: msg.Append(kit.MDB_TEXT), action: [cli.CLOSE],
})
})
},

View File

@ -105,6 +105,7 @@ Volcanos("onaction", {help: "交互操作", list: [
},
"生成链接": function(event, can) { var meta = can.Conf()
var args = can.Option(); args._path = "/chat/cmd/"+(meta.index||can.core.Keys(meta.ctx, meta.cmd))
args._path == "/chat/cmd/web.wiki.word" && (args = {_path: "/chat/cmd/"+args.path})
var msg = can.request(event, {link: can.user.MergeURL(can, args)})
can.search(event, ["Header.onaction.share"])
},