wangchuanjin hai 1 ano
pai
achega
ce4f5e22c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,