gpt
This commit is contained in:
@@ -68,24 +68,26 @@ func (s *OrderService) VirtualOrderCreate(ctx context.Context, userID int64, req
|
||||
platform := request.Platform
|
||||
|
||||
order := &mysqlmodel.Order{
|
||||
OrderNo: orderNo,
|
||||
UserID: userID,
|
||||
GoodsID: goods.ID,
|
||||
GoodsName: goods.GoodsName,
|
||||
UnitPrice: goods.DiscountPrice,
|
||||
TotalAmount: payAmount,
|
||||
PayAmount: payAmount,
|
||||
PayChannel: PayChannelVirtual,
|
||||
OrderStatus: OrderStatusPending,
|
||||
MemberDays: goods.MemberDays,
|
||||
CosQuota: goods.CosQuota,
|
||||
OrderNo: orderNo,
|
||||
UserID: userID,
|
||||
GoodsID: goods.ID,
|
||||
GoodsName: goods.GoodsName,
|
||||
UnitPrice: goods.DiscountPrice,
|
||||
TotalAmount: payAmount,
|
||||
PayAmount: payAmount,
|
||||
PayChannel: PayChannelVirtual,
|
||||
OrderStatus: OrderStatusPending,
|
||||
MemberDays: goods.MemberDays,
|
||||
GoodsType: goods.GoodsType,
|
||||
QuotaValidDays: goods.ValidDays,
|
||||
CosQuota: goods.CosQuota,
|
||||
AIRecommendQuota: goods.AIRecommendQuota,
|
||||
ClosetShareQuota: goods.ClosetShareQuota,
|
||||
OutfitShareQuota: goods.OutfitShareQuota,
|
||||
ExpireTime: expireTime,
|
||||
XPayProductID: goods.ProductID,
|
||||
XPayPlatform: platform,
|
||||
XPayEnv: int8(xpayEnv),
|
||||
ExpireTime: expireTime,
|
||||
XPayProductID: goods.ProductID,
|
||||
XPayPlatform: platform,
|
||||
XPayEnv: int8(xpayEnv),
|
||||
}
|
||||
if cerr := s.orderDao.OrderCreate(ctx, order); cerr != nil {
|
||||
return nil, errcode.VirtualOrderCreateFailed
|
||||
|
||||
Reference in New Issue
Block a user