cedar2025 / Xboard

基于V2board二次开发支持新协议新特性的高性能面板
MIT License
1.8k stars 456 forks source link

[BUG] 无法支付带小数的金额 #140

Open Narutojoy opened 3 months ago

Narutojoy commented 3 months ago

🙇‍♂️🙇‍♂️🙇‍♂️注意:XrayR等非XBoard问题请前往项目方提问 🙇‍♂️🙇‍♂️🙇‍♂️Note: XrayR and other non-XBoard issues please go to the project side to ask questions

The XBoard version number you are using 当前使用的XBoard版本号(git commit id) v0.19最新版

Would you like to deploy using Docker? 你的部署方式(是否为Docker) docker部署

Please briefly describe the issue you encountered (preferably with reproducible steps). 简单描述你遇到的问题(最好带上复现步骤) 支付宝配置完毕后,只能整数支付,如果更换套餐有抵减金额导致存在小数的支付金额,就会提示"参数无效:订单总金额格式错误",支付整数金额没问题

Screenshot of the reported error(Please do desensitization) 报告错误的截图(请做脱敏处理)

image

Screenshot of the reported error(Please do desensitization) 报告错误的截图(请做脱敏处理)

Run the php artisan log:export 7 command to export log files (where 7 represents logs for the last 7 days). 运行php artisan log:export 7 命令导出的日志文件(其中7为最近7天的日志)。

kevlau1 commented 3 months ago

这个不是bug,是支付宝的问题,把最终价格加个round()四舍五入一下就行了