From 4d32a1420c90bfd4412886ce37103edd0623f930 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 7 Sep 2023 19:17:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/sys/api_funcgetList.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/sys/api_funcgetList.go b/modules/sys/api_funcgetList.go index 2d41229d8..d39720e65 100644 --- a/modules/sys/api_funcgetList.go +++ b/modules/sys/api_funcgetList.go @@ -14,6 +14,7 @@ func (this *apiComp) FuncGetList(session comm.IUserSession, req *pb.SysFuncGetLi var ( bChange bool change []string = make([]string, 0) + list *pb.DBOpenCond ) rsp := &pb.SysFuncGetListResp{} rsp.Cond = make(map[string]int32, 0) @@ -25,7 +26,14 @@ func (this *apiComp) FuncGetList(session comm.IUserSession, req *pb.SysFuncGetLi } return } - list, _ := this.module.modelSys.GetOpenCondList(session.GetUserId()) + if list, err = this.module.modelSys.GetOpenCondList(session.GetUserId()); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_DBError, + Title: pb.ErrorCode_DBError.ToString(), + Message: err.Error(), + } + return + } if len(req.Keys) == 0 { for _, v := range opencfg.GetDataList() { if list.Cond[v.Id] == 0 {