wangchuanjin 1 жил өмнө
parent
commit
ce4f5e22c0

+ 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,