|
@@ -56,7 +56,7 @@ class SchoolRelationController extends Controller
|
|
|
null,
|
|
null,
|
|
|
'id'
|
|
'id'
|
|
|
);
|
|
);
|
|
|
- $data['records'] = FollowSrv::formatWithFollowList($data['records'], 'wx_school_follow');
|
|
|
|
|
|
|
+ $data['records'] = FollowSrv::formatWithFollowList($data['records'], 'wx_school_follow', $users);
|
|
|
$data['records'] = array_map(function ($item) use ($users) {
|
|
$data['records'] = array_map(function ($item) use ($users) {
|
|
|
$item['last_user_name'] = $users[$item['last_user_id']]['username'] ?? '-';
|
|
$item['last_user_name'] = $users[$item['last_user_id']]['username'] ?? '-';
|
|
|
return $item;
|
|
return $item;
|