This commit is contained in:
laodaming
2023-09-15 15:27:39 +08:00
parent ee92468392
commit 6987f2c2d1
4 changed files with 8 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ func NewGetCartsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCarts
// }
func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo) (resp *basic.Response) {
userinfo.UserId = 39
if req.CurrentPage <= 0 {
req.CurrentPage = constants.DEFAULT_PAGE
}