Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
LC_api_news
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
242366e0
authored
Nov 29, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改案例需求
parent
65226667
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
.env
app/Model/ArticleModel.php
app/Services/CaseService.php
.env
View file @
242366e0
APP_ENV=local
APP_DEBUG=true
APP_KEY=
APP_KEY=
1hpTOeygzZZAm8pTXdLwmXktMnh0ROOL
APP_TIMEZONE=PRC
SYSTEM_CODE=09
...
...
app/Model/ArticleModel.php
View file @
242366e0
...
...
@@ -81,6 +81,7 @@ class ArticleModel extends BaseModel
'banner_title'
,
'banner_img'
,
'publish_time'
,
'goods_id'
,
];
$data
=
$this
->
select
(
$field
)
->
with
([
...
...
app/Services/CaseService.php
View file @
242366e0
...
...
@@ -54,6 +54,7 @@ class CaseService extends BaseService
unset
(
$item
[
'writer'
]);
$item
[
'tags'
]
=
array_column
(
$item
[
'article_tag'
],
'tag'
);
unset
(
$item
[
'article_tag'
]);
#todo 要从商品的服务那里根据goods_id去获取商品基础信息
return
$item
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment