异常处理
This commit is contained in:
parent
02f60eb381
commit
4d32a1420c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user