diff --git a/frame.js b/frame.js index 56384ae7..79f1727c 100644 --- a/frame.js +++ b/frame.js @@ -206,7 +206,15 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta, _output0: function(can, meta, event, cmds, cb, silent) { var msg = can.request(event); if (msg.RunAction(event, can, cmds)) { return } if (msg.Option(ice.MSG_HANDLE) != ice.TRUE && cmds && cmds[0] == ctx.ACTION && meta.feature[cmds[1]]) { can.request(event, {action: cmds[1]}) return can.user.input(event, can, meta.feature[cmds[1]], function(ev, button, data, list, args) { var msg = can.request(event, {_handle: ice.TRUE}, can.Option()) - can.Update(event, cmds.slice(0, 2).concat(args), cb||function() { can.Update() }, true) + can.Update(event, cmds.slice(0, 2).concat(args), cb||function() { + if (can.core.CallFunc([can.sup, chat.ONIMPORT, ice.MSG_PROCESS], {can: can.sup, msg: msg})) { return } + if (msg.Result().length > 0 || msg.Length() > 0) { + can.onappend.table(can, msg) + can.onappend.board(can, msg) + } else { + can.Update() + } + }, true) }) } @@ -352,7 +360,8 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta, function run(cmds) { var msg = can.sup.request(event, line, can.Option()) return can.run(event, cmds, function(msg) { if (can.core.CallFunc([can.sup, chat.ONIMPORT, ice.MSG_PROCESS], {can: can.sup, msg: msg})) { return } - if (msg.Result().length > 0) { + if (msg.Result().length > 0 || msg.Length() > 0) { + can.onappend.table(can, msg) can.onappend.board(can, msg) } else { can.Update()