Commit 5fef58eb authored by Hsinli's avatar Hsinli

add

parent 98a88e3b
Pipeline #19891 passed with stage
in 2 seconds
......@@ -59,7 +59,7 @@ class NewsService extends Service {
read_num: '',
}
let filter = {
attributes: ['title', 'source', 'source_time', 'content', 'author', 'initial_num'],
attributes: ['title', 'source', 'source_time', 'content', 'author', 'initial_num', 'updated_at'],
where: {
id: id,
valid: 1,
......@@ -70,7 +70,7 @@ class NewsService extends Service {
if (news) {
ret.title = news.title;
ret.source = news.source;
ret.source_time = news.source_time;
ret.source_time = news.source_time === 'Invalid date' ? news.updated_at : news.source_time;
ret.content = news.content;
ret.author = news.author;
ret.read_num = news.initial_num;
......
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 to comment