礼物墙
This commit is contained in:
@@ -486,7 +486,8 @@ class User extends Model
|
|||||||
$top_users_count = 0;
|
$top_users_count = 0;
|
||||||
if($item['give_user_ids'] != null){
|
if($item['give_user_ids'] != null){
|
||||||
$users = json_decode($item['give_user_ids'], true);
|
$users = json_decode($item['give_user_ids'], true);
|
||||||
if($users){
|
|
||||||
|
if($users && is_array($users)){
|
||||||
foreach ($users as $kk => $user_id){
|
foreach ($users as $kk => $user_id){
|
||||||
$userInfo[$kk] = db::name('user')->where(['id' => $user_id['user_id']])->field('id user_id,nickname,avatar')->find();
|
$userInfo[$kk] = db::name('user')->where(['id' => $user_id['user_id']])->field('id user_id,nickname,avatar')->find();
|
||||||
$userInfo[$kk]['count'] = $user_id['count'];
|
$userInfo[$kk]['count'] = $user_id['count'];
|
||||||
|
|||||||
Reference in New Issue
Block a user