|
@@ -65,13 +65,17 @@ func (l *AddFriendListLogic) AddFriendList(req *types.AddFriendListReq) (resp *t
|
|
|
IsCanAdd = append(IsCanAdd, 0, 1)
|
|
|
case 2:
|
|
|
IsCanAdd = append(IsCanAdd, 3, 4)
|
|
|
- default:
|
|
|
+ case 3:
|
|
|
IsCanAdd = append(IsCanAdd, 2)
|
|
|
+ default:
|
|
|
+ IsCanAdd = append(IsCanAdd, 0, 1, 2, 3, 4, 5)
|
|
|
+ }
|
|
|
+ if len(IsCanAdd) < 6 {
|
|
|
+ predicates = append(predicates, addwechatfriendlog.IsCanAddIn(IsCanAdd...))
|
|
|
}
|
|
|
- predicates = append(predicates, addwechatfriendlog.IsCanAddIn(IsCanAdd...))
|
|
|
}
|
|
|
data, err := l.svcCtx.DB.AddWechatFriendLog.Query().Where(predicates...).Page(l.ctx, req.Page, req.PageSize)
|
|
|
-
|
|
|
+ logx.Info("数据", data)
|
|
|
if err != nil {
|
|
|
return nil, errorx.NewInvalidArgumentError("请联系管理员")
|
|
|
}
|