From 87b862d1c44230959e53681fc15fcfa2f4ab5cf9 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sat, 19 Nov 2022 22:54:58 +0800 Subject: [PATCH] opt chat --- plugin/state.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/state.js b/plugin/state.js index 6d78f1d2..b548d1c0 100644 --- a/plugin/state.js +++ b/plugin/state.js @@ -6,8 +6,8 @@ Volcanos(chat.ONIMPORT, {_process: function(can, msg) { _replace: function(can, msg, _arg) { location.replace(_arg); return true }, _history: function(can, msg) { history.back(); return true }, _confirm: function(can, msg, _arg) { can.user.confirm(_arg) && can.runAction(can.request({}, msg), "confirm"); return true }, - _refresh: function(can, msg) { - can.core.Timer(parseInt(msg.Option("_delay")||"300"), function() { + _refresh: function(can, msg, _arg) { + can.core.Timer(parseInt(_arg||"30"), function() { can.Update(can.request({}, {_count: parseInt(msg.Option("_count")||"3")-1})) }); return true },