Browse Source

Revert "分页查询处理"

This reverts commit 47449575edc5e6d9ed204c3424a5f30be063441d.
lianbingjie 1 year ago
parent
commit
2ed5baff1d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      rpc/messagecenter/internal/logic/userlistlogic.go

+ 1 - 3
rpc/messagecenter/internal/logic/userlistlogic.go

@@ -33,7 +33,6 @@ func NewUserListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserList
 func (l *UserListLogic) UserList(in *messagecenter.UserReq) (*messagecenter.UserResp, error) {
 	// todo: add your logic here and delete this line
 	m := service.MessaggeService{}
-	nowIndex := 0
 queryAgain:
 	data, count, err := m.UserList(in)
 	if err != nil {
@@ -41,9 +40,8 @@ queryAgain:
 	}
 	var result = []*messagecenter.UserEntity{}
 	//聊天内容为空,插入默认客服聊天内容
-	if (count == 0 || len(*data) == 0) && in.UserType == 2 && in.QueryType == 2 && nowIndex < 1 {
+	if (count == 0 || len(*data) == 0) && in.UserType == 2 {
 		if insertDefaultChat(in) {
-			nowIndex++
 			goto queryAgain
 		}
 	}