mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
improve cleanup calculate seed bonus
This commit is contained in:
@@ -242,6 +242,7 @@ function docleanup($forceAll = 0, $printProgress = false) {
|
||||
global $enablenoad_advertisement, $noad_advertisement;
|
||||
global $Cache;
|
||||
global $rootpath;
|
||||
$requestId = nexus()->getRequestId();
|
||||
|
||||
require_once($rootpath . '/lang/_target/lang_cleanup.php');
|
||||
|
||||
@@ -299,13 +300,7 @@ function docleanup($forceAll = 0, $printProgress = false) {
|
||||
// }
|
||||
// }
|
||||
|
||||
//chunk async
|
||||
$command = sprintf(
|
||||
'cleanup --action=seed_bonus --begin_id=%s --end_id=%s --request_id=%s --delay=%s',
|
||||
0, 0, nexus()->getRequestId(), 0
|
||||
);
|
||||
$output = executeCommand($command, 'string', true);
|
||||
do_log(sprintf('command: %s, output: %s', $command, $output));
|
||||
\App\Repositories\CleanupRepository::runBatchJobCalculateUserSeedBonus($requestId);
|
||||
|
||||
$log = 'calculate seeding bonus';
|
||||
do_log($log);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.5');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-12');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-15');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
Reference in New Issue
Block a user