fix
This commit is contained in:
parent
045aa81899
commit
e8aabdb3cf
@ -38,7 +38,7 @@ func NewGetProductListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Ge
|
|||||||
func (l *GetProductListLogic) GetProductList(req *types.GetProductListReq, loginInfo auth.UserInfo) (resp *types.Response) {
|
func (l *GetProductListLogic) GetProductList(req *types.GetProductListReq, loginInfo auth.UserInfo) (resp *types.Response) {
|
||||||
//校验前台登录情况
|
//校验前台登录情况
|
||||||
if loginInfo.UserId == 0 {
|
if loginInfo.UserId == 0 {
|
||||||
return &types.Response{Code: 402, Message: "please sign in"}
|
return &types.Response{Code: 401, Message: "please sign in"}
|
||||||
}
|
}
|
||||||
//如果是demo
|
//如果是demo
|
||||||
if req.IsDemo == 1 {
|
if req.IsDemo == 1 {
|
||||||
@ -64,7 +64,7 @@ func (l *GetProductListLogic) GetProductList(req *types.GetProductListReq, login
|
|||||||
return &types.Response{Code: 510, Message: "get user info err"}
|
return &types.Response{Code: 510, Message: "get user info err"}
|
||||||
}
|
}
|
||||||
if userInfo == nil {
|
if userInfo == nil {
|
||||||
return &types.Response{Code: 402, Message: "user not exists"}
|
return &types.Response{Code: 401, Message: "user not exists"}
|
||||||
}
|
}
|
||||||
//查询符合的产品列表
|
//查询符合的产品列表
|
||||||
productModel := model.NewFsProductModel(l.svcCtx.MysqlConn)
|
productModel := model.NewFsProductModel(l.svcCtx.MysqlConn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user