This commit is contained in:
eson
2023-08-28 14:21:06 +08:00
parent 2830ea8724
commit bde9e98f62
26 changed files with 43 additions and 35 deletions

View File

@@ -101,7 +101,7 @@ func (l *CartAddLogic) CartAdd(req *types.CartAddReq, userinfo *auth.UserInfo) (
logx.Error(err)
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to get cart info")
}
now := time.Now().Unix()
now := time.Now().UTC().Unix()
nowTime := time.Now().UTC()
data := gmodel.FsCart{
UserId: &userinfo.UserId,

View File

@@ -85,7 +85,7 @@ func (l *CreateOrderLogic) CreateOrder(req *types.CreateOrderReq, userinfo *auth
mapModel3d[v.Id] = k
}
var (
now = time.Now().Unix()
now = time.Now().UTC().Unix()
total int64 //总价
)
orderSn := id_generator.GenSnNum()