From 67cc69799a6fbfa848969d4c8c755c6cfa00a0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A4=A7=E5=A4=A7?= <397447182@qq.com> Date: Tue, 30 May 2023 06:58:50 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E6=8F=92=E4=BB=B6--=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨大大 <397447182@qq.com> --- controllers/tp_protocol_plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/tp_protocol_plugin.go b/controllers/tp_protocol_plugin.go index dd83408..9c9bb3f 100644 --- a/controllers/tp_protocol_plugin.go +++ b/controllers/tp_protocol_plugin.go @@ -79,7 +79,7 @@ func (TpProtocolPluginController *TpProtocolPluginController) Edit() { } var TpProtocolPluginService services.TpProtocolPluginService rsp_err := TpProtocolPluginService.EditTpProtocolPlugin(TpProtocolPluginValidate) - if rsp_err != nil { + if rsp_err == nil { d := TpProtocolPluginService.GetTpProtocolPluginDetail(TpProtocolPluginValidate.Id) utils.SuccessWithDetailed(200, "success", d, map[string]string{}, (*context2.Context)(TpProtocolPluginController.Ctx)) } else { -- Gitee