logo search

This commit is contained in:
eson 2023-10-20 16:08:26 +08:00
parent 34cabe5f70
commit a72c033e5b
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ func NewPreLogoSearchLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Pre
func (l *PreLogoSearchLogic) PreLogoSearch(req *types.PreLogoSearchRequest, userinfo *auth.UserInfo) (resp *basic.Response) {
// 返回值必须调用Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
// userinfo 传入值时, 一定不为null
if !userinfo.IsOnlooker() {
if userinfo.IsOnlooker() {
return resp.SetStatus(basic.CodeSearchAuthErr)
}

View File

@ -33,7 +33,7 @@ func NewPreLogoSearchSuggestionsLogic(ctx context.Context, svcCtx *svc.ServiceCo
func (l *PreLogoSearchSuggestionsLogic) PreLogoSearchSuggestions(req *types.PreLogoSearchSuggestionsRequest, userinfo *auth.UserInfo) (resp *basic.Response) {
// 返回值必须调用Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
// userinfo 传入值时, 一定不为null
if !userinfo.IsOnlooker() {
if userinfo.IsOnlooker() {
return resp.SetStatus(basic.CodeSearchAuthErr)
}