Skip to content

Commit

Permalink
定时任务
Browse files Browse the repository at this point in the history
  • Loading branch information
Scyllaly committed Jul 21, 2018
1 parent d8d0166 commit 28b5cfc
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoClearLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

// 系统配置
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoDecGoodsTraffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

// 系统配置
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

// 添加用户封禁日志
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoResetUserTraffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

// 系统配置
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoStatisticsNodeDailyTraffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

private function statisticsByNode($node_id)
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoStatisticsNodeHourlyTraffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

private function statisticsByNode($node_id)
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoStatisticsUserDailyTraffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

private function statisticsByNode($user_id, $node_id = 0)
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoStatisticsUserHourlyTraffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

private function statisticsByNode($user_id, $node_id = 0)
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/UserExpireAutoWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/UserTrafficAbnormalAutoWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

// 系统配置
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/UserTrafficAutoWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function handle()
$jobEndTime = microtime(true);
$jobUsedTime = round(($jobEndTime - $jobStartTime) , 4);

Log::info('定时任务' . $this->description . '】耗时' . $jobUsedTime . '');
Log::info('执行定时任务' . $this->description . '耗时' . $jobUsedTime . '');
}

/**
Expand Down
1 change: 1 addition & 0 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function report(Exception $exception)
public function render($request, Exception $exception)
{
if (\Config::get('app.debug')) {
\Log::info("请求导致异常的地址:" . $request->fullUrl());
return parent::render($request, $exception);
} else {
return \Response::view('404');
Expand Down
Binary file added public/assets/images/vote.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ telegram千人讨论群已解散,有问题提issues,或者进小群讨论(
199是设定的门槛,因为进群后如果捣乱就踢,这样的成本会拦住较多无聊的捣乱者
````

## 有偿催功能开发进度
![有偿催进度](https://github.com/ssrpanel/ssrpanel/blob/master/public/assets/images/vote.jpg?raw=true)

## 捐赠
**ETH** : 0x968f797f194fcec05ea571723199748b58de38ba

Expand Down

0 comments on commit 28b5cfc

Please sign in to comment.