From d2a8f1a1a6b17519bf79a251c2dd03fe97b4b648 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Mon, 21 Jun 2021 02:01:26 +0800 Subject: [PATCH] [H&R] basically --- admin/src/views/setting/form-hr.vue | 23 +- .../Commands/HitAndRunUpdateStatus.php | 53 ++++ app/Console/Commands/Test.php | 11 +- app/Models/BonusLogs.php | 27 ++ app/Models/HitAndRun.php | 66 ++++- app/Models/Torrent.php | 25 ++ app/Models/User.php | 8 +- app/Repositories/BonusRepository.php | 68 +++++ app/Repositories/HitAndRunRepository.php | 239 ++++++++++++++++++ app/Repositories/TorrentRepository.php | 8 +- ...06_18_125347_create_hit_and_runs_table.php | 7 +- ..._06_19_141415_add_hr_to_torrents_table.php | 32 +++ ...1_06_20_005557_create_bonus_logs_table.php | 38 +++ include/constants.php | 2 +- include/functions.php | 33 ++- include/globalfunctions.php | 19 ++ lang/chs/lang_mybonus.php | 5 +- lang/chs/lang_myhr.php | 14 + lang/chs/lang_settings.php | 4 + lang/cht/lang_mybonus.php | 5 +- lang/cht/lang_settings.php | 4 + lang/en/lang_mybonus.php | 5 +- lang/en/lang_settings.php | 4 + nexus/Database/NexusDB.php | 7 +- nexus/Install/Update.php | 22 ++ public/announce.php | 30 ++- public/details.php | 11 +- public/edit.php | 5 + public/getusertorrentlistajax.php | 23 +- public/mybonus.php | 45 +++- public/myhr.php | 95 +++++++ public/settings.php | 6 +- public/styles/icons.gif | Bin 11545 -> 11596 bytes public/styles/sprites.css | 6 + public/takeedit.php | 8 + public/torrents.php | 4 +- resources/lang/en/hr.php | 26 ++ resources/lang/zh_CN/hr.php | 26 ++ resources/lang/zh_TW/hr.php | 26 ++ 39 files changed, 966 insertions(+), 74 deletions(-) create mode 100644 app/Console/Commands/HitAndRunUpdateStatus.php create mode 100644 app/Models/BonusLogs.php create mode 100644 app/Repositories/BonusRepository.php create mode 100644 app/Repositories/HitAndRunRepository.php create mode 100644 database/migrations/2021_06_19_141415_add_hr_to_torrents_table.php create mode 100644 database/migrations/2021_06_20_005557_create_bonus_logs_table.php create mode 100644 lang/chs/lang_myhr.php create mode 100644 public/myhr.php create mode 100644 resources/lang/en/hr.php create mode 100644 resources/lang/zh_CN/hr.php create mode 100644 resources/lang/zh_TW/hr.php diff --git a/admin/src/views/setting/form-hr.vue b/admin/src/views/setting/form-hr.vue index 001b24f9..71e7e784 100644 --- a/admin/src/views/setting/form-hr.vue +++ b/admin/src/views/setting/form-hr.vue @@ -1,24 +1,32 @@