|
|
@@ -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);
|