asd123a20 3 years ago
parent
commit
6c9730146d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/content.js

+ 1 - 1
app/service/content.js

@@ -14,7 +14,7 @@ class ContentService extends Service {
     text = text.replace('\\s*|\t|\r|\n', '');
     const slug = text.substring(0, 200);
     try {
-      const year = date.slice(0, 3) + '年';
+      const year = date.slice(0, 4) + '年';
       await model.create({ title, slug, thumbnail, annex, content, istop, menus, createAt, year, date, annexname, term, hits: 0 });
       return { errmsg: '', errcode: 0 };
     } catch (error) {