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
952f81ee
authored
Dec 19, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
0d3dafb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
.env
app/Services/CaseService.php
.env
View file @
952f81ee
...
@@ -25,7 +25,7 @@ REDIS_READ_HOST=192.168.1.235
...
@@ -25,7 +25,7 @@ REDIS_READ_HOST=192.168.1.235
REDIS_READ_PASSWORD=icDb29mLy2s
REDIS_READ_PASSWORD=icDb29mLy2s
REDIS_READ_PORT=6379
REDIS_READ_PORT=6379
GOODS_SERVER_URL=http://
lc_server_goods.cc
GOODS_SERVER_URL=http://
192.168.2.232:62002
NOTICE_TYPE_ID=37
NOTICE_TYPE_ID=37
CASE_TYPE_ID=35
CASE_TYPE_ID=35
...
...
app/Services/CaseService.php
View file @
952f81ee
...
@@ -29,7 +29,7 @@ class CaseService extends BaseService
...
@@ -29,7 +29,7 @@ class CaseService extends BaseService
$item
[
'publish_time'
]
=
$item
[
'publish_time'
]
?
date
(
'Y-m-d H:i:s'
,
$item
[
'publish_time'
])
:
0
;
$item
[
'publish_time'
]
=
$item
[
'publish_time'
]
?
date
(
'Y-m-d H:i:s'
,
$item
[
'publish_time'
])
:
0
;
$item
[
'brand'
]
=
$item
[
'writer'
];
$item
[
'brand'
]
=
$item
[
'writer'
];
unset
(
$item
[
'writer'
]);
unset
(
$item
[
'writer'
]);
$item
[
'tags'
]
=
array_
column
(
$item
[
'article_tag'
],
'tag'
);
$item
[
'tags'
]
=
array_
unique
(
array_column
(
$item
[
'article_tag'
],
'tag'
)
);
unset
(
$item
[
'article_tag'
]);
unset
(
$item
[
'article_tag'
]);
}
}
}
}
...
...
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