1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-12-06 09:00:28 +08:00
parent cb5d5d992e
commit e70b727c94

View File

@ -97,6 +97,9 @@ Volcanos(chat.ONDAEMON, {
can.base.isFunc(sub.Update) && sub.Update() can.base.isFunc(sub.Update) && sub.Update()
} }
}, },
cookie: function(can, msg, arg) {
can.misc.Cookie(can, arg[1], arg[0])
},
grant: function(can, msg, sub, arg) { grant: function(can, msg, sub, arg) {
var toast = can.user.toast(can, {duration: arg[1]||10000, content: "grant "+arg[0], action: shy({ var toast = can.user.toast(can, {duration: arg[1]||10000, content: "grant "+arg[0], action: shy({
confirm: function(event) { toast.close(), can.run(can.request(event, {name: arg[0]}), [ctx.ACTION, ctx.RUN, web.SPACE, aaa.LOGIN]) }, confirm: function(event) { toast.close(), can.run(can.request(event, {name: arg[0]}), [ctx.ACTION, ctx.RUN, web.SPACE, aaa.LOGIN]) },