diff --git a/README-EN.md b/README-EN.md index f215d882..0f737330 100644 --- a/README-EN.md +++ b/README-EN.md @@ -10,11 +10,13 @@ Complete PT website building solution. Based on NexusPHP + Laravel Framework + E - Subtitle - Exam - H&R +- Claim - Attendance - Retroactive attendance card - Medal - Custom tags - Forum +- Complain - Multi-language - Automatic backup - Backend management system diff --git a/README.md b/README.md index 21acdf19..f32c67a0 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,13 @@ - 字幕 - 考核 - H&R +- 认领 - 签到 - 补签卡 - 勋章 - 自定义标签 - 论坛 +- 申诉 - 多语言 - 自动备份 - 管理后台 diff --git a/app/Models/Setting.php b/app/Models/Setting.php index 37954e68..4c53a3aa 100644 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -14,9 +14,9 @@ class Setting extends NexusModel * * @param null $name * @param null $default - * @return array|\ArrayAccess|false|int|mixed|string|null + * @return mixed */ - public static function get($name = null, $default = null) + public static function get($name = null, $default = null): mixed { $settings = NexusDB::remember("nexus_settings_in_laravel", 600, function () { return self::getFromDb(); diff --git a/include/constants.php b/include/constants.php index 46fa3636..f291a591 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ '申诉时间', 'text_no_replies' => '当前暂无申诉跟踪内容', 'text_closed' => '该申诉已处理完毕,不能回复', - 'text_answer_it' => '关闭该申述', - 'text_unanswer_it' => '重开该申述', + 'text_answer_it' => '关闭该申诉', + 'text_unanswer_it' => '重开该申诉', 'th_complain_at' => '申诉时间', 'th_complain_account' => '申诉账号', 'th_action_view' => '查看', diff --git a/lang/chs/lang_functions.php b/lang/chs/lang_functions.php index 111eb528..b9b3b29f 100644 --- a/lang/chs/lang_functions.php +++ b/lang/chs/lang_functions.php @@ -317,7 +317,7 @@ $lang_functions = array 'spoiler_expand_collapse' => '点击展开/收缩', 'spoiler_default_title' => '折叠内容', 'menu_claim' => '认领: ', - 'text_complains' => '有%s%u个待处理的申述%s', + 'text_complains' => '有%s%u个待处理的申诉%s', ); ?> diff --git a/lang/cht/lang_complains.php b/lang/cht/lang_complains.php index bc76c7c8..6d413e67 100644 --- a/lang/cht/lang_complains.php +++ b/lang/cht/lang_complains.php @@ -17,8 +17,8 @@ $lang_complains = [ 'text_added' => '申訴時間', 'text_no_replies' => '當前暫無申訴跟蹤內容', 'text_closed' => '該申訴已處理完畢,不能回復', - 'text_answer_it' => '關閉該申述', - 'text_unanswer_it' => '重開該申述', + 'text_answer_it' => '關閉該申诉', + 'text_unanswer_it' => '重開該申诉', 'th_complain_at' => '申訴時間', 'th_complain_account' => '申訴賬號', 'th_action_view' => '查看', diff --git a/lang/cht/lang_functions.php b/lang/cht/lang_functions.php index 465f34d8..9f07d43d 100644 --- a/lang/cht/lang_functions.php +++ b/lang/cht/lang_functions.php @@ -324,7 +324,7 @@ $lang_functions = array 'spoiler_expand_collapse' => '點擊展開/收縮', 'spoiler_default_title' => '折疊內容', 'menu_claim' => '認領: ', - 'text_complains' => '有%s%u個待處理的申述%s', + 'text_complains' => '有%s%u個待處理的申诉%s', ); ?> diff --git a/public/claim.php b/public/claim.php index effe1d84..29106a44 100644 --- a/public/claim.php +++ b/public/claim.php @@ -55,7 +55,7 @@ JS; begin_main_frame(); $total = (clone $query)->count(); list($pagertop, $pagerbottom, $limit, $offset, $pageSize) = pager(50, $total, $pagerParam); -$list = (clone $query)->with(['user', 'torrent', 'snatch'])->get(); +$list = (clone $query)->with(['user', 'torrent', 'snatch'])->offset($offset)->limit($pageSize)->orderBy('id', 'desc')->get(); print(""); print(" diff --git a/public/donate.php b/public/donate.php index 462d1d83..939ccbb7 100644 --- a/public/donate.php +++ b/public/donate.php @@ -39,7 +39,7 @@ else print("
".nexus_trans('claim.th_id')."
"); print(""); if ($custom) { - echo sprintf('', format_comment($custom)); + echo sprintf('', format_comment($custom)); } print(""); if ($showpaypal){
".$lang_donate['text_donation_note']."
%s
%s