Skip to content

Commit ec6a262

Browse files
committed
个人中心流量监控完善
1 parent 7f7163c commit ec6a262

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

app/Http/Controllers/UserController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ public function trafficLog(Request $request)
240240

241241
$view['trafficDaily'] = "'" . implode("','", $dailyData) . "'";
242242
$view['trafficHourly'] = "'" . implode("','", $hourlyData) . "'";
243+
$view['username'] = $user['username'];
243244

244245
return Response::view('user/trafficLog', $view);
245246
}

resources/views/user/trafficLog.blade.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
<!-- BEGIN CONTENT BODY -->
99
<div class="page-content" style="padding-top:0;">
1010
<!-- BEGIN PAGE BASE CONTENT -->
11+
<div class="row">
12+
<div class="col-md-12">
13+
<div class="note note-info">
14+
<h3 class="block">{{$username}}</h3>
15+
<p> 提示:30日内流量统计不会统计当天,24小时内流量统计不会统计当前小时;如果无统计数据,请检查定时任务是否正常。 </p>
16+
</div>
17+
</div>
18+
</div>
1119
<div class="row">
1220
<div class="col-md-12">
1321
<div class="portlet light bordered">

0 commit comments

Comments
 (0)