From b746f10c4e698b4c33508bc347a378110239f66c Mon Sep 17 00:00:00 2001 From: harveyshao Date: Wed, 24 Nov 2021 12:50:36 +0800 Subject: [PATCH] opt some --- proto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto.js b/proto.js index 4293ce0f..32ca0fe1 100644 --- a/proto.js +++ b/proto.js @@ -214,7 +214,7 @@ var Volcanos = shy("火山架", {iceberg: "/chat/", volcano: "/frame.js", args: }, request: function(event, option) { event = event||{} var msg = event._msg||can.misc.Message(event, can); event._msg = msg - function set(key, value) { msg.Option(key) || msg.Option(key, value) } + function set(key, value) { msg.Option(key) || value == "" || msg.Option(key, value) } can.core.List(arguments, function(option, index) { if (index == 0) { return } can.base.isFunc(option.Option)? can.core.List(option.Option(), function(key) {