update: server log

This commit is contained in:
tokumeikoi 2022-01-06 15:42:20 +08:00
parent 1bcffc1dd6
commit 3ea8781146
6 changed files with 7 additions and 7 deletions

View File

@ -38,11 +38,11 @@ class ServerController extends Controller
DB::raw('sum(d) as d'), DB::raw('sum(d) as d'),
'log_at', 'log_at',
'user_id', 'user_id',
DB::raw('avg(rate) as rate') 'rate'
]) ])
->where('user_id', $request->session()->get('id')) ->where('user_id', $request->session()->get('id'))
->where('log_at', '>=', strtotime(date('Y-m-1'))) ->where('log_at', '>=', strtotime(date('Y-m-1')))
->groupBy('log_at', 'user_id') ->groupBy('log_at', 'user_id', 'rate')
->orderBy('log_at', 'DESC'); ->orderBy('log_at', 'DESC');
return response([ return response([
'data' => $serverLogModel->get() 'data' => $serverLogModel->get()

View File

@ -285,5 +285,5 @@ window.settings.i18n['en-US'] = {
'This subscription cannot be renewed. Only new users are allowed to purchase it': 'This subscription cannot be renewed. Only new users are allowed to purchase it', 'This subscription cannot be renewed. Only new users are allowed to purchase it': 'This subscription cannot be renewed. Only new users are allowed to purchase it',
'Reset current month flow': 'Reset current month flow', 'Reset current month flow': 'Reset current month flow',
'The flow details only retain the data of recent months for query.': 'The flow details only retain the data of recent months for query.', 'The flow details only retain the data of recent months for query.': 'The flow details only retain the data of recent months for query.',
'Average rate': 'Average rate' 'Fee deduction rate': 'Fee deduction rate'
} }

View File

@ -315,5 +315,5 @@ window.settings.i18n['ja-JP'] = {
'This subscription cannot be renewed. Only new users are allowed to purchase it': 'このサブスクリプションは更新できません。新しいユーザだけがそれを購入できます。', 'This subscription cannot be renewed. Only new users are allowed to purchase it': 'このサブスクリプションは更新できません。新しいユーザだけがそれを購入できます。',
'Reset current month flow': 'リセット月フロー', 'Reset current month flow': 'リセット月フロー',
'The flow details only retain the data of recent months for query.': 'トラフィック詳細は、クエリー用に近月データのみを保持します。', 'The flow details only retain the data of recent months for query.': 'トラフィック詳細は、クエリー用に近月データのみを保持します。',
'Average rate': '平均レート' 'Fee deduction rate': '控除率'
} }

View File

@ -315,5 +315,5 @@ window.settings.i18n['vi-VN'] = {
'This subscription cannot be renewed. Only new users are allowed to purchase it': 'Không thể thay đổi bản đăng ký này. Chỉ có người dùng mới được phép mua nó.', 'This subscription cannot be renewed. Only new users are allowed to purchase it': 'Không thể thay đổi bản đăng ký này. Chỉ có người dùng mới được phép mua nó.',
'Reset current month flow': 'Làm lại dòng tháng hiện tại', 'Reset current month flow': 'Làm lại dòng tháng hiện tại',
'The flow details only retain the data of recent months for query.': 'Các chi tiết dòng chảy chỉ lưu lại dữ liệu của tháng gần đây để truy vấn.', 'The flow details only retain the data of recent months for query.': 'Các chi tiết dòng chảy chỉ lưu lại dữ liệu của tháng gần đây để truy vấn.',
'Average rate': 'Tỷ lệ trung bình' 'Average rate': 'Tỷ lệ khấu trừ'
} }

View File

@ -317,5 +317,5 @@ window.settings.i18n['zh-CN'] = {
'This subscription cannot be renewed. Only new users are allowed to purchase it': '该订阅无法续费,仅允许新用户购买', 'This subscription cannot be renewed. Only new users are allowed to purchase it': '该订阅无法续费,仅允许新用户购买',
'Reset current month flow': '重置当月流量', 'Reset current month flow': '重置当月流量',
'The flow details only retain the data of recent months for query.': '流量明细仅保留近月数据以供查询。', 'The flow details only retain the data of recent months for query.': '流量明细仅保留近月数据以供查询。',
'Average rate': '平均倍率' 'Fee deduction rate': '扣费倍率'
} }

File diff suppressed because one or more lines are too long