Android 应用内计费数据库内容 - 购买在数据库中的情况如何

发布于 2024-12-29 02:52:27 字数 157 浏览 3 评论 0原文

有谁知道数据库如何存储各种购买场景下的应用内产品购买?我的意思是,购买商品然后退款。如果用户尝试再次购买相同的商品怎么办?表中是否会有 2 行状态为“已购买”,另一行状态为“已退款”? “数量”栏怎么样?

如果任何人都可以分享他们的 InAppBilling 测试数据库,那就太棒了。

Does anyone know how the database stores inapp product purchases in various purchase scenarios ? I mean, purchasing an item and then having it refunded. What if the user tries buying the same item again? Would there be 2 lines with "PURCHASED" status in the table and one with "REFUNDED" ? What about the "quantity" column ?

If anyone could share their database from InAppBilling test, that would be awesome.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

装纯掩盖桑 2025-01-05 02:52:27

如果该商品不受管理,我认为您不太关心“退款”和“数量”栏。如果该商品受到管理,您不必担心用户两次购买同一商品,因为市场应用程序会阻止这种情况发生。至于数据库设计,我认为如果用户已购买并退款了该商品,那么一行“退款”更有意义。

if the item is unmanaged, i think you are less concerned with REFUNDED and quantity column. If the item is managed, you don't have to worry about the user buying the same item twice because the market app will prevent this from happening. As of the database design, i think it makes more sense to have one row of "REFUNDED" if the user has purchased and refunded the item.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文