Commit 242366e0 by 杨树贤

修改案例需求

parent 65226667
APP_ENV=local APP_ENV=local
APP_DEBUG=true APP_DEBUG=true
APP_KEY= APP_KEY=1hpTOeygzZZAm8pTXdLwmXktMnh0ROOL
APP_TIMEZONE=PRC APP_TIMEZONE=PRC
SYSTEM_CODE=09 SYSTEM_CODE=09
......
...@@ -81,6 +81,7 @@ class ArticleModel extends BaseModel ...@@ -81,6 +81,7 @@ class ArticleModel extends BaseModel
'banner_title', 'banner_title',
'banner_img', 'banner_img',
'publish_time', 'publish_time',
'goods_id',
]; ];
$data = $this->select($field) $data = $this->select($field)
->with([ ->with([
......
...@@ -54,6 +54,7 @@ class CaseService extends BaseService ...@@ -54,6 +54,7 @@ class CaseService extends BaseService
unset($item['writer']); unset($item['writer']);
$item['tags'] = array_column($item['article_tag'],'tag'); $item['tags'] = array_column($item['article_tag'],'tag');
unset($item['article_tag']); unset($item['article_tag']);
#todo 要从商品的服务那里根据goods_id去获取商品基础信息
return $item; 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