diff --git a/api/consts/status.go b/api/consts/status.go index f9e20872..71d1e3f9 100644 --- a/api/consts/status.go +++ b/api/consts/status.go @@ -287,7 +287,8 @@ const ( // 主播入驻完善人工复审 const ( - StreamerAuthApprovalDetailsApprove_Waiting = 0 //等待复审 - StreamerAuthApprovalDetailsApprove_Passed = 1 //已复审通过 - StreamerAuthApprovalDetailsApprove_Rejected = 2 //已复审拒绝 + StreamerAuthApprovalDetailsApprove_Waiting = 0 //等待复审 + StreamerAuthApprovalDetailsApprove_Passed = 1 //已复审通过 + StreamerAuthApprovalDetailsApprove_Rejected = 2 //已复审拒绝 + StreamerAuthApprovalDetailsApprove_Approving = 3 //跟进中 ) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index d4af3e8f..b21e56e9 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -1095,6 +1095,11 @@ func (s *Service) ApiGetStreamerAuthApprovalBasicList(ctx *gin.Context, req *str ec = errcode.ErrCodeStreamerAuthApprovalBasicSrvFail return } + if streamerauthapprovalbasic == nil { + logger.Error("No streamer auth approval basic entity was found, req: %v", util.ToJson(req)) + ec = errcode.ErrCodeStreamerAuthApprovalBasicNotExist + return + } account, err := _DefaultAccount.OpListByMid(ctx, &accountproto.OpListByMidReq{ Mid: streamerauthapprovalbasic.Mid, @@ -1168,6 +1173,11 @@ func (s *Service) ApiGetStreamerAuthApprovalDetailsList(ctx *gin.Context, req *s ec = errcode.ErrCodeStreamerAuthApprovalDetailsSrvFail return } + if streamerauthapprovaldetails == nil { + logger.Error("No streamer auth approval details entity was found, req: %v", util.ToJson(req)) + ec = errcode.ErrCodeStreamerAuthApprovalDetailsNotExist + return + } account, err := _DefaultAccount.OpListByMid(ctx, &accountproto.OpListByMidReq{ Mid: streamerauthapprovaldetails.Mid,