Commit d4fe1828 by 杨树贤

修改tags

parent bf5e2ad1
Showing with 4 additions and 0 deletions
......@@ -28,6 +28,8 @@ class CaseService extends BaseService
$item['publish_time'] = $item['publish_time'] ? date('Y-m-d H:i:s', $item['publish_time']) : 0;
$item['brand'] = $item['writer'];
unset($item['writer']);
$item['tags'] = array_column($item['article_tag'],'tag');
unset($item['article_tag']);
}
unset($item);
......@@ -50,6 +52,8 @@ class CaseService extends BaseService
$item['publish_time'] = $item['publish_time'] ? date('Y-m-d H:i:s', $item['publish_time']) : 0;
$item['brand'] = $item['writer'];
unset($item['writer']);
$item['tags'] = array_column($item['article_tag'],'tag');
unset($item['article_tag']);
return $item;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment