From 2f1b6e1402351da5a8a77a97d86b36a4f3d8f6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Sun, 27 Sep 2020 11:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=88=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=EF=BC=89=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/permission.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/permission.go b/controllers/permission.go index d29987630..65c5e1ad5 100644 --- a/controllers/permission.go +++ b/controllers/permission.go @@ -22,7 +22,7 @@ func (c *PowerController) AddFunction() { c.callAddFunction(func(params *tPowerAddFunctionParams) (retVal interface{}, errCode string, err error) { function := &model.Function{} if err = utils.UnmarshalUseNumber([]byte(params.Payload), function); err == nil { - retVal, err = cms + retVal, err = cms.AddFunction(params.Ctx, function) } return retVal, "", err })