guoziyun 1 år sedan
förälder
incheckning
0c6aff2fb7
4 ändrade filer med 3 tillägg och 7 borttagningar
  1. 2 3
      service/cron-jobs/fetch-meta.js
  2. 1 0
      views/common-meta.ejs
  3. 0 3
      views/detail.ejs
  4. 0 1
      views/index.ejs

+ 2 - 3
service/cron-jobs/fetch-meta.js

@@ -1,6 +1,5 @@
 const models = require('../../models');
 const fetch = require('node-fetch');
-const config = require('../../config/app');
 
 /**
  * 
@@ -91,9 +90,9 @@ async function run() {
   for (let doc of docs) {
     console.log(`process ${doc._id}`);
 
-    let thumbUrl = `${config.resHost}/thumbs/v2/work/320/${doc._id}.png`;
+    let thumbUrl = `http://color.jccytech.cn/thumbs/v2/work/320/${doc._id}.png`;
     if (doc.hasSpecial) {
-      thumbUrl = `${config.resHost}/thumbs/v2/special/320/${doc._id}.png`;
+      thumbUrl = `http://color.jccytech.cn/thumbs/v2/special/320/${doc._id}.png`;
     }
 
     console.time(doc._id);

+ 1 - 0
views/common-meta.ejs

@@ -8,6 +8,7 @@
 <link rel="alternate" href="https://art.pcoloring.com<%=uri.replace('/'+lang, '/es') %>" hrefLang="es" />
 <link rel="alternate" href="https://art.pcoloring.com<%=uri.replace('/'+lang, '/pt') %>" hrefLang="pt" />
 <link rel="alternate" href="https://art.pcoloring.com<%=uri.replace('/'+lang, '/ja') %>" hrefLang="ja" />
+<link rel="alternate" href="https://art.pcoloring.com<%=uri.replace('/'+lang, '/en') %>" hrefLang="x-default" />
 
 <title>
   <%= title %>

+ 0 - 3
views/detail.ejs

@@ -58,9 +58,6 @@
 
 <body>
     <%- include('header') %>
-        <h2 style="display: flex; justify-content: center; color: purple">
-            <%= translate.printableColoringPage[lang] %>
-        </h2>
         <div class="details">
             <div class="poster"><img src="<%= detail.thumb %>" alt="<%= detail.title %>"></div>
             <div class="description">

+ 0 - 1
views/index.ejs

@@ -3,7 +3,6 @@
 
 <head>
   <%- include('common-meta') %>
-    <link rel="alternate" href="https://art.pcoloring.com/en" hrefLang="x-default" />
 
     <link rel="stylesheet" href="/stylesheets/styles.css">
     <link rel="stylesheet" href="/stylesheets/header.css">