release v1.6.0

This commit is contained in:
xiaomlove
2022-03-14 14:51:58 +08:00
parent 8b721ac825
commit 8c4eb9a935
4 changed files with 8 additions and 6 deletions

View File

@@ -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)

View File

@@ -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),

View File

@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.6.0');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-03-08');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-03-14');
defined('IN_TRACKER') || define('IN_TRACKER', true);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");

View File

@@ -40,7 +40,7 @@ if (!$row) {
} else {
$owner = \App\Models\User::query()->with(['valid_medals'])->find($row['owner']);
if (!$owner) {
$owner = \App\Models\User::defaultUser();
$owner = \App\Models\User::defaultUser();
}
$torrentRep = new \App\Repositories\TorrentRepository();
$torrentUpdate = [];