فهرست منبع

fix:update alloc_agent/alloc

jimmyyem 2 ماه پیش
والد
کامیت
5f932bdc9c
1فایلهای تغییر یافته به همراه0 افزوده شده و 3 حذف شده
  1. 0 3
      internal/logic/allocagent/do_alloc_agent_logic.go

+ 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不能都为空")
 	}