From 3629c8485a92e51472562f144f70b7ba84a48c03 Mon Sep 17 00:00:00 2001 From: YouWei Zhao Date: Sun, 29 Apr 2018 11:15:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9D=90=E6=A0=87=E6=94=AF=E6=8C=81flag:xx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit show和hide的多事件除外 --- _server/blockly/MotaAction.g4 | 82 +++++++++++++++++++++++------------ 1 file changed, 54 insertions(+), 28 deletions(-) diff --git a/_server/blockly/MotaAction.g4 b/_server/blockly/MotaAction.g4 index 359ba9e9..ee1f796f 100644 --- a/_server/blockly/MotaAction.g4 +++ b/_server/blockly/MotaAction.g4 @@ -325,12 +325,19 @@ helpUrl : https://ckcz123.github.io/mota-js/#/event?id=show-%e5%b0%86%e4%b8%80%e default : ["0","0","",500] colour : this.eventColor IdString_0 = IdString_0 && (', "floorId": "'+IdString_0+'"'); -var pattern = /^([+-]?\d+)(,[+-]?\d+)*$/; -if(!pattern.test(EvalString_0) || !pattern.test(EvalString_1))throw new Error('坐标格式错误,请右键点击帮助查看格式'); -EvalString_0=EvalString_0.split(','); -EvalString_1=EvalString_1.split(','); -if(EvalString_0.length!==EvalString_1.length)throw new Error('坐标格式错误,请右键点击帮助查看格式'); -for(var ii=0;ii