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
d4fe1828
authored
Nov 27, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改tags
parent
bf5e2ad1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
app/Services/CaseService.php
app/Services/CaseService.php
View file @
d4fe1828
...
...
@@ -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
;
}
...
...
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