mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix removeDuplicatePeer()
This commit is contained in:
@@ -97,8 +97,10 @@ class Test extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$r = executeCommand("php -r 'var_export(function_exists(\"pcntl_alarm\"));'");
|
||||
dd($r == 'true');
|
||||
$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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user