合并develop

This commit is contained in:
laodaming 2023-09-19 11:42:10 +08:00
parent d7f94f0da9
commit c0b773634a

View File

@ -41,6 +41,9 @@ func NewGetCartsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCarts
// } // }
func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo) (resp *basic.Response) { func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo) (resp *basic.Response) {
if !userinfo.IsUser() {
return resp.SetStatusWithMessage(basic.CodeUnAuth, "please sign in")
}
if req.CurrentPage <= 0 { if req.CurrentPage <= 0 {
req.CurrentPage = constants.DEFAULT_PAGE req.CurrentPage = constants.DEFAULT_PAGE
} }