cedar2025 / Xboard

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

[BUG] 当 server_token 为长数字时,后台会转化成科学计数法,后端验证失败 #108

Closed Cp0204 closed 5 months ago

Cp0204 commented 5 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版本号

f72df9df27da9f19ac42b4073f503906dd3b339a

Briefly describe the problem you are experiencing 简单描述你遇到的问题

当 server_token (通讯密钥)为长数字时,如999999999999999999999999999999,有两个问题:

  1. 保存-刷新页面,会转成科学计数法 1e+30

  2. 可能是类型不匹配,后端无法连接 https://github.com/cedar2025/Xboard/blob/2eb81924e4acab226f26dc12afa54edeae7ee1d3/app/Http/Middleware/Server.php#L30

cedar2025 commented 5 months ago

https://github.com/cedar2025/Xboard/commit/09fb03a1cecef4f1291b0acac1e58830a4d3f0f6 在这个commit已修复