new-api icon indicating copy to clipboard operation
new-api copied to clipboard

v1.0.0-rc.25 充值页面 /api/user/amount 无法正常获取待支付金额

Open vippyong opened this issue 3 months ago • 4 comments

Deployment source

Repository release / official image (self-hosted)

Your current newapi version

v1.0.0-rc.25

Submission Checks

  • [x] Non-duplicate issue: I have searched existing Issues and confirmed there are no similar issues.
  • [x] Read this first: I have fully read the section above, reviewed the docs at https://docs.newapi.ai/ and the project README, and asked AI first, confirming this is not a usage, configuration, or integration question.
  • [x] Supported version: I have provided an exact version, commit, or image tag (not latest or unknown) and confirmed that the issue reproduces on an unmodified, supported version from this repository.
  • [x] Not a third-party service: I confirm that this issue is not exclusive to a third-party hosting site, relay, API service, or fork that has not been verified against the unmodified repository. Third-party instance issues must be reported to their operator.
  • [x] Issue attribution: I have provided evidence that distinguishes the client, new-api, and upstream layers. For relay issues, I compared equivalent redacted requests sent directly upstream and through new-api, confirming that new-api introduces or changes the error rather than merely forwarding the upstream error unchanged.
  • [x] Channel and protocol boundary: I confirm that the issue is not caused by a Coding Plan service, reverse-engineered channel, third-party API wrapper, Codex reverse-proxy endpoint, or behavior specific to the Codex API. If first observed through such an interface, I have reproduced it using a standard API protocol supported by this repository.
  • [x] Maintainer time: I understand that maintainers have limited time and issues that do not follow this template may be ignored or closed directly.

Issue Description

v1.0.0-rc.25 充值页面 /api/user/amount 无法正常获取待支付金额,rc.23 同配置正常.

Steps to Reproduce

这个复现证据很强:同数据库、同配置,23 正常,25 为 0,回退 23 立即恢复。

Expected Result

检查问题并修复。

Related Screenshots

Image

vippyong avatar Aug 18 '26 17:08 vippyong

[Bot Review]

感谢提交,模板信息已包含版本、提交确认、问题描述和复现步骤,目前没有看到缺失的必填项。

超出int32最大值了,用户余额降少点就行了

rc25对这一块加了钱包额度溢出保护

用户现有余额额度 + 本次充值额度 >= 2147483647

Airsado avatar Aug 19 '26 02:08 Airsado

当你的余额超过4294时,那么你无法继续支付以增添余额,会显示应支付0元,然后点击支付就弹error,同时你充值数量大于4294也不可以。余额+上你充值的余额大于4294就不可以

Image Image Image Image Image

zeij-drive avatar Aug 21 '26 16:08 zeij-drive

超出int32最大值了,用户余额降少点就行了

rc25对这一块加了钱包额度溢出保护

用户现有余额额度 + 本次充值额度 >= 2147483647

余额+充值超过4294时,报错error.总额给的太少了 {"data":"top-up quota limit exceeded","message":"error"}

Drunkweng avatar Aug 26 '26 03:08 Drunkweng