getPostInfo($post['id']); return [ 'id' => $post['id'], 'img' => $post['deleted_at']?config('customer.post_delete_image'):$post['img'], 'type' => $post['type'], 'collect_bean' => $postInfo['collect_bean'] > 0 ? $postInfo['collect_bean'] : 0, ]; } }