Browse Source

用户在线IP

admin 7 years ago
parent
commit
3a95b303ac
1 changed files with 7 additions and 7 deletions
  1. 7 7
      resources/views/admin/userOnlineIPList.blade.php

+ 7 - 7
resources/views/admin/userOnlineIPList.blade.php

@@ -98,15 +98,15 @@
                                                     @foreach($user->onlineIPList as $vo)
                                                         <table class="table table-hover table-light">
                                                             <thead>
-                                                            <tr>
-                                                                <th> 时间 </th>
-                                                                <th> 节点 </th>
-                                                                <th> 类型 </th>
-                                                                <th> IP </th>
-                                                            </tr>
+                                                                <tr>
+                                                                    <th> 时间 </th>
+                                                                    <th> 节点 </th>
+                                                                    <th> 类型 </th>
+                                                                    <th> IP </th>
+                                                                </tr>
                                                             </thead>
                                                             <tbody>
-                                                                <td>{{date('Y-m-d H:i:s', $vo->created_at)}}</td>
+                                                                <td>{{$vo->created_at ? date('Y-m-d H:i:s', $vo->created_at) : ''}}</td>
                                                                 <td>{{$vo->node->name}}</td>
                                                                 <td>{{$vo->type}}</td>
                                                                 <td>{{$vo->ip}}</td>