Przeglądaj źródła

fix product cart log

abiao 5 lat temu
rodzic
commit
9507410808

+ 2 - 2
go/gopath/src/fohow.com/apps/models/order_model/order.go

@@ -178,8 +178,8 @@ func GetOrderById(oId string, useCache bool) (order *Order) {
 		beego.BeeLogger.Warn("order.ExpressOrderNo =[%v]", order.ExpressOrderNo)
 
 		item.Sign = GenExpressPassword(order.ExpressOrderNo)
-		item.CTime = order.CreatedAt.Unix()
-		item.DTime = order.DispatchTime.Unix()
+		item.CTime = item.CreatedAt.Unix()
+		item.DTime = item.DispatchTime.Unix()
 	}
 	cache.Cache.Put(k, item, 5*time.Minute)
 	return item