dyjh il y a 6 ans
Parent
commit
5efedcc346

+ 2 - 0
app/Http/Controllers/Admin/Album/AgentController.php

xqd
@@ -51,6 +51,8 @@ class AgentController extends Controller
             }else{
                 $item->status = '已审核';
             }
+            $user = AlbumUserModel::where('id', $item->user_id)->first();
+            $item->nickname = $user->username;
         }
         return view('admin.album.agent.index',compact('list'));
     }

+ 2 - 2
resources/views/admin/album/agent/index.blade.php

xqd xqd
@@ -37,7 +37,7 @@
     						<tr>
 								
             <th class="sorting" data-sort="id"> ID </th>
-            <th class="sorting" data-sort="user_id"> 用户ID </th>
+            <th> 微信昵称 </th>
             <th class="sorting" data-sort="user_id"> 电话 </th>
             <th class="sorting" data-sort="address"> 地址 </th>
             <th class="sorting" data-sort="name"> 名称 </th>
@@ -50,7 +50,7 @@
 							@foreach($list as $key => $item)							<tr>
 								
             <td>{{ $item->id }}</td>
-            <td>{{ $item->user_id }}</td>
+            <td>{{ $item->nickname }}</td>
             <td>{{ $item->phone }}</td>
             <td>{{ $item->address }}</td>
             <td>{{ $item->name }}</td>