🎨 优化订单逻辑,新增vip字段

This commit is contained in:
2025-08-12 16:24:33 +08:00
parent 90d4b959a1
commit 3beb54c12c
3 changed files with 3 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ func (s *OrderService) Create(o *app.Order) (*app.Order, error) {
return nil, err
}
} else {
err := global.GVA_DB.Table("lckt_vip").Select("price").Where("id = ?", o.ArticleId).Scan(&price).Error
err := global.GVA_DB.Table("lckt_vip").Select("price").Where("id = ?", o.VipId).Scan(&price).Error
if err != nil {
global.GVA_LOG.Error("查询VIP价格失败", zap.Error(err))
return nil, err