Kaynağa Gözat

fix:update alloc_agent/alloc

jimmyyem 2 ay önce
ebeveyn
işleme
5f932bdc9c

+ 0 - 3
internal/logic/allocagent/do_alloc_agent_logic.go

@@ -31,9 +31,6 @@ func NewDoAllocAgentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DoAl
 func (l *DoAllocAgentLogic) DoAllocAgent(req *types.AllocAgentInfo) (*types.BaseMsgResp, error) {
 	resp := types.BaseMsgResp{}
 
-	if len(req.Agents) == 0 {
-		return nil, errorx.NewInvalidArgumentError("智能体ID不能为空")
-	}
 	if req.OrganizationId == nil && req.UserId == nil {
 		return nil, errorx.NewInvalidArgumentError("租户ID和用户ID不能都为空")
 	}