From 73705337cc6afd23d090a96dac15ab4d906b05a6 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 9 Feb 2022 09:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E6=8E=A7=E5=88=B6=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper/process.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/helper/process.go b/helper/process.go index 0e572e67..54941625 100644 --- a/helper/process.go +++ b/helper/process.go @@ -36,9 +36,17 @@ func init() { gou.RegisterProcessHandler("xiang.helper.JwtValidate", ProcessJwtValidate) gou.RegisterProcessHandler("xiang.helper.For", ProcessFor) + gou.AliasProcess("xiang.helper.For", "xiang.flow.For") gou.RegisterProcessHandler("xiang.helper.Each", ProcessEach) + gou.AliasProcess("xiang.helper.Each", "xiang.flow.Each") gou.RegisterProcessHandler("xiang.helper.Case", ProcessCase) + gou.AliasProcess("xiang.helper.Case", "xiang.flow.Case") gou.RegisterProcessHandler("xiang.helper.IF", ProcessIF) + gou.AliasProcess("xiang.helper.IF", "xiang.flow.IF") + gou.RegisterProcessHandler("xiang.helper.Throw", ProcessThrow) + gou.AliasProcess("xiang.helper.Throw", "xiang.flow.Throw") + gou.RegisterProcessHandler("xiang.helper.Return", ProcessReturn) + gou.AliasProcess("xiang.helper.Return", "xiang.flow.Return") gou.RegisterProcessHandler("xiang.helper.EnvSet", ProcessEnvSet) gou.AliasProcess("xiang.helper.EnvSet", "xiang.env.Set") @@ -52,9 +60,6 @@ func init() { gou.RegisterProcessHandler("xiang.helper.Print", ProcessPrint) gou.AliasProcess("xiang.helper.Print", "xiang.sys.Print") - gou.RegisterProcessHandler("xiang.helper.Throw", ProcessThrow) - gou.RegisterProcessHandler("xiang.helper.Return", ProcessReturn) - } // ProcessPrint xiang.helper.Print 打印语句