update: rebuild traffic log page

This commit is contained in:
tokumeikoi 2022-01-05 23:41:06 +08:00
parent 1716f2f6ca
commit da51d267e2
7 changed files with 15 additions and 7 deletions

View File

@ -38,7 +38,7 @@ class ServerController extends Controller
DB::raw('sum(d) as d'),
'log_at',
'user_id',
DB::raw('avg(rate) as rate'),
DB::raw('avg(rate) as rate')
])
->where('user_id', $request->session()->get('id'))
->where('log_at', '>=', strtotime(date('Y-m-1')))

File diff suppressed because one or more lines are too long

View File

@ -283,5 +283,7 @@ window.settings.i18n['en-US'] = {
'Renew': 'Renew',
'Buy': 'Buy',
'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.',
'Average rate': 'Average rate'
}

View File

@ -313,5 +313,7 @@ window.settings.i18n['ja-JP'] = {
'Renew': '継続料金のお支払い',
'Buy': '買う',
'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.': 'トラフィック詳細は、クエリー用に近月データのみを保持します。',
'Average rate': '平均レート'
}

View File

@ -313,5 +313,7 @@ window.settings.i18n['vi-VN'] = {
'Renew': 'Gia hạn',
'Buy': 'Mua',
'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.',
'Average rate': 'Tỷ lệ trung bình'
}

View File

@ -315,5 +315,7 @@ window.settings.i18n['zh-CN'] = {
'Renew': '续费',
'Buy': '购买',
'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.': '流量明细仅保留近月数据以供查询。',
'Average rate': '平均倍率'
}

File diff suppressed because one or more lines are too long