diff --git a/README.md b/README.md index 6759d0b1..fbc6be8f 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,11 @@ ## 更多信息 博客:[https://nexusphp.org](http://nexusphp.org/) -论坛:[https://discuss.nexusphp.org](https://discuss.nexusphp.org/) 文档:[https://doc.nexusphp.org](http://doc.nexusphp.org/) -Telegram: [https://t.me/nexusphp](https://t.me/nexusphp) +论坛:[https://discuss.nexusphp.org](https://discuss.nexusphp.org/) QQ群: [764452568](https://jq.qq.com/?_wv=1027&k=IbltZcIx) -![扫码加入](http://demo.nexusphp.org/attachments/202105/20210508190106ed3a3620fc34ab12660586652bc74e34.png) +Telegram: [https://t.me/nexusphp](https://t.me/nexusphp) +B站: [xiaomlove](https://space.bilibili.com/1319303059) +微信公众号: +![扫码关注](https://nexusphp.org/wp-content/uploads/2022/03/wechat_official_account.png) diff --git a/app/Http/Resources/UserResource.php b/app/Http/Resources/UserResource.php index b12e462c..3628ebfb 100644 --- a/app/Http/Resources/UserResource.php +++ b/app/Http/Resources/UserResource.php @@ -29,7 +29,7 @@ class UserResource extends JsonResource 'uploaded_text' => mksize($this->uploaded), 'downloaded' => $this->downloaded, 'downloaded_text' => mksize($this->downloaded), - 'bonus' => $this->seedbonus, + 'bonus' => number_format($this->seedbonus, 1), 'seed_points' => floatval($this->seed_points), 'seedtime' => $this->seedtime, 'seedtime_text' => mkprettytime($this->seedtime), diff --git a/include/constants.php b/include/constants.php index 62a441b0..9c216d2d 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ with(['valid_medals'])->find($row['owner']); if (!$owner) { - $owner = \App\Models\User::defaultUser(); + $owner = \App\Models\User::defaultUser(); } $torrentRep = new \App\Repositories\TorrentRepository(); $torrentUpdate = [];