...
|
...
|
@@ -21,9 +21,9 @@ const SeoTask = { |
|
|
return redis.hvalsAsync(item.k).then(urls => {
|
|
|
console.log(`task key: ${item.k}, urls: ${JSON.stringify(urls)}, exec...`);
|
|
|
|
|
|
urls.forEach((item) => {
|
|
|
item = JSON.parse(item || '[]');
|
|
|
this.execTask(item.url, item.time);
|
|
|
urls.forEach(val => {
|
|
|
val = JSON.parse(val || '[]');
|
|
|
this.execTask(val.url, val.time);
|
|
|
});
|
|
|
});
|
|
|
});
|
...
|
...
|
|