diff --git a/app/Console/Commands/Test.php b/app/Console/Commands/Test.php index 88302a2f..fc0841b1 100644 --- a/app/Console/Commands/Test.php +++ b/app/Console/Commands/Test.php @@ -97,10 +97,8 @@ class Test extends Command */ public function handle() { - $results = NexusDB::select("select torrent, peer_id, userid, group_concat(id) as ids from peers group by torrent, peer_id, userid having(count(*)) > 1 limit 20"); - dump($results); - $rep = new ToolRepository(); - $rep->removeDuplicatePeer(); + $arr = ['aa' => ['bb' => []]]; + dd(array_filter($arr)); } } diff --git a/nexus/Install/update/update.php b/nexus/Install/update/update.php index d320da87..2c62340a 100644 --- a/nexus/Install/update/update.php +++ b/nexus/Install/update/update.php @@ -225,6 +225,8 @@ if ( echo $update->renderTable($header, $tableRows); echo '
'; echo sprintf('This step will merge %s to %s, then insert into database.', $tableRows[1]['label'], $tableRows[0]['label']); + echo sprintf('
网页升级容易超时,强烈建议通过执行命令完成最后一步(如果是从1.5版本升级,务必这样做)
进入:%s,执行:php artisan nexus:update
', $rootpath); + echo sprintf('
Web page upgrades tend to time out, it is highly recommended to complete the last step by executing the command (if upgrading from version 1.5, be sure to do so)
cd %s, and execute: php artisan nexus:update
', $rootpath); echo '
'; if (!$mysqlInfo['match']) { echo sprintf('
MySQL version: %s is too low, please use the newest version of 5.7 or above.
', $mysqlInfo['version']);