feat: ad manager
This commit is contained in:
@@ -2,7 +2,6 @@ package logic
|
||||
|
||||
import (
|
||||
"context"
|
||||
"lone-services/pkg/log"
|
||||
"lone-services/pkg/modelbase"
|
||||
"lone-services/pkg/utils"
|
||||
"lone-services/pkg/validate"
|
||||
@@ -42,7 +41,7 @@ func (l *InfoLogic) Info(in *product.InfoReq) (*product.Response, error) {
|
||||
Eq: map[string]string{"id": strconv.FormatInt(req.Id, 10)},
|
||||
}, &info)
|
||||
if err != nil {
|
||||
log.Errorf("product info: %v", err)
|
||||
l.Errorf("product info: %v", err)
|
||||
return failResponse(utils.Fail), nil
|
||||
}
|
||||
if info.Id < 1 {
|
||||
|
||||
Reference in New Issue
Block a user