forked from x/volcanos
opt some
This commit is contained in:
parent
e87f611cc8
commit
db3dcdb474
@ -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],
|
||||
})
|
||||
})
|
||||
},
|
||||
|
@ -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"])
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user