mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: statistical service
This commit is contained in:
parent
24b4c174c1
commit
d8aace8647
@ -45,6 +45,7 @@ class V2boardStatistics extends Command
|
|||||||
{
|
{
|
||||||
ini_set('memory_limit', -1);
|
ini_set('memory_limit', -1);
|
||||||
$this->statOrder();
|
$this->statOrder();
|
||||||
|
$this->statUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function statUser()
|
private function statUser()
|
||||||
@ -56,7 +57,7 @@ class V2boardStatistics extends Command
|
|||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
foreach ($stats as $stat) {
|
foreach ($stats as $stat) {
|
||||||
if (!StatUser::insert([
|
if (!StatUser::insert([
|
||||||
'user_id' => $stat['user_Id'],
|
'user_id' => $stat['user_id'],
|
||||||
'u' => $stat['u'],
|
'u' => $stat['u'],
|
||||||
'd' => $stat['d'],
|
'd' => $stat['d'],
|
||||||
'server_rate' => $stat['server_rate'],
|
'server_rate' => $stat['server_rate'],
|
||||||
|
Loading…
Reference in New Issue
Block a user