소스 검색

feat:升级

wangchuanjin 1 년 전
부모
커밋
ce4f5e22c0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/internal/logic/resempowerlogic.go

+ 1 - 1
api/internal/logic/resempowerlogic.go

@@ -39,7 +39,7 @@ func (l *ResEmpowerLogic) ResEmpower(req *types.ResEmpowerReq) (resp *types.BiRe
 			EntId:        req.EntId,
 			EntUserId:    entUserIds,
 		})
-	} else {
+	} else if req.ReqType == -1 {
 		r, err = l.svcCtx.ResourceCenterRpc.CancelEmpower(context.Background(), &pb.EmpowerReq{
 			Appid:        "10000",
 			FunctionCode: req.FunctionCode,