mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-01 03:29:12 +02:00
feat(messages): add hnr warning check interval
This commit is contained in:
8
config/env/torrents.js
vendored
8
config/env/torrents.js
vendored
@@ -507,11 +507,12 @@ module.exports = {
|
||||
* NOTE: you can change these value at anytime if you understand it
|
||||
*
|
||||
* @condition: the condition of HnR warning, user must meet one of them before you receive the warning
|
||||
* @seedTime: torrent seed time, unit of day, default to 7 days
|
||||
* @ratio: seed ratio, default to 1.5
|
||||
* @seedTime: torrent seed time, unit of day, default to 7 days
|
||||
* @ratio: seed ratio, default to 1.5
|
||||
* @forbiddenDownloadMinWarningNumber: when user get this number of warning, then can not to download any torrents, but can continue download the warning status torrent
|
||||
* @scoreToRemoveWarning: if user has any warning, user can remove one warning by score number, if the user has not enough score, user still can remove these
|
||||
* warning by donate the VIP class.
|
||||
* @checkWaringInterval: set check warning number interval, default 2 minutes
|
||||
*/
|
||||
hitAndRun: {
|
||||
condition: {
|
||||
@@ -519,7 +520,8 @@ module.exports = {
|
||||
ratio: 1.5
|
||||
},
|
||||
forbiddenDownloadMinWarningNumber: 3,
|
||||
scoreToRemoveWarning: 10000
|
||||
scoreToRemoveWarning: 10000,
|
||||
checkWaringInterval: 60 * 1000 * 2
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
vm.language = MeanTorrentConfig.meanTorrentConfig.language;
|
||||
vm.announceConfig = MeanTorrentConfig.meanTorrentConfig.announce;
|
||||
vm.messageConfig = MeanTorrentConfig.meanTorrentConfig.messages;
|
||||
vm.hnrConfig = MeanTorrentConfig.meanTorrentConfig.hitAndRun;
|
||||
vm.appConfig = MeanTorrentConfig.meanTorrentConfig.app;
|
||||
vm.signConfig = MeanTorrentConfig.meanTorrentConfig.sign;
|
||||
vm.accountMenu = menuService.getMenu('account').items[0];
|
||||
@@ -94,7 +95,7 @@
|
||||
*/
|
||||
vm.checkHnRWarning = function () {
|
||||
vm.getWarning();
|
||||
$interval(vm.getWarning, 120000);
|
||||
$interval(vm.getWarning, vm.hnrConfig.checkWaringInterval);
|
||||
};
|
||||
|
||||
vm.getWarning = function () {
|
||||
|
||||
Reference in New Issue
Block a user