|
@@ -94,7 +94,7 @@ class Index extends Base
|
|
$value['comment_num'] = Db::name('store_comment')->where('forum_id',$value['id'])->where('type',1)->where('forum_type',1)->count('id');
|
|
$value['comment_num'] = Db::name('store_comment')->where('forum_id',$value['id'])->where('type',1)->where('forum_type',1)->count('id');
|
|
$value['image'] = image_path($value['image']);
|
|
$value['image'] = image_path($value['image']);
|
|
//媒体信息
|
|
//媒体信息
|
|
- $media_info = Db::name('store_media')->field('logo,title')->where('id',$value['user_id'])->find();
|
|
|
|
|
|
+ $media_info = Db::name('store_media')->field('logo,title')->where('id',$value['media_id'])->find();
|
|
$value['media_logo'] = $media_info['logo'];
|
|
$value['media_logo'] = $media_info['logo'];
|
|
$value['media_title'] = $media_info['title'];
|
|
$value['media_title'] = $media_info['title'];
|
|
$remain_time = time() - strtotime($value['create_at']);
|
|
$remain_time = time() - strtotime($value['create_at']);
|