|
@@ -177,7 +177,7 @@ class ArticleService extends BaseService
|
|
|
->first();
|
|
->first();
|
|
|
$info = $info? $info->toArray() : [];
|
|
$info = $info? $info->toArray() : [];
|
|
|
if($info){
|
|
if($info){
|
|
|
- $info['time_text'] = $info['publish_at']? datetime(strtotime($info['publish_at'])) : '';
|
|
|
|
|
|
|
+ $info['time_text'] = $info['publish_at']? datetime(strtotime($info['publish_at'])) : datetime(strtotime($info['create_time']));
|
|
|
$info['author']= $info['author']? $info['author'] : ConfigService::make()->getConfigByCode('app_name','星链社交');
|
|
$info['author']= $info['author']? $info['author'] : ConfigService::make()->getConfigByCode('app_name','星链社交');
|
|
|
$info['title'] = $info['title']? $info['title'] : $info['title_all'];
|
|
$info['title'] = $info['title']? $info['title'] : $info['title_all'];
|
|
|
$info['cover'] = get_image_url($info['cover']);
|
|
$info['cover'] = get_image_url($info['cover']);
|