完善填充数据 & 修复余额变动查询问题

This commit is contained in:
2026-04-13 16:57:31 +08:00
parent 46d326638b
commit 58b8849d8d
3 changed files with 89 additions and 1 deletions

View File

@@ -151,7 +151,7 @@ func (s *resourceService) CalcPrice(skuCode string, count int32, user *m.User, c
Where(q.ProductSku.Code.Eq(skuCode), q.ProductSku.Status.Eq(int32(m.SkuStatusEnabled))).
Take()
if err != nil {
return nil, nil, nil, decimal.Zero, decimal.Zero, core.NewServErr("产品不可用", err)
return nil, nil, nil, decimal.Zero, decimal.Zero, core.NewServErr(fmt.Sprintf("产品不可用 %s", skuCode), err)
}
// 原价