添加批量更新延迟

hotfix/远程访问多媒体中心
尹诚诚 7 years ago
parent aee9581f50
commit 20709b6b26

@ -32,7 +32,7 @@ function batch_update_cache(url, index) {
function create_cache_data(index){ function create_cache_data(index){
if ($('#cache_url' + index).length > 0) { if ($('#cache_url' + index).length > 0) {
if ($('#cache' + index).html() != '\u66f4\u65b0\u9759\u6001\u9875\u9762\u6210\u529f\uff01') { if ($('#cache' + index).html() != '\u66f4\u65b0\u9759\u6001\u9875\u9762\u6210\u529f\uff01') {
batch_update_cache($('#cache_url' + index).html(),index); setTimeout(batch_update_cache($('#cache_url' + index).html(),index),5000);
} }
} }
} }

@ -67,7 +67,7 @@
if ($('#cache' + index).html() == '手动管理,不会自动更新') { //手动更新的项目跳过 if ($('#cache' + index).html() == '手动管理,不会自动更新') { //手动更新的项目跳过
create_amp_data(++index); create_amp_data(++index);
} else { } else {
batch_update_amp(index); setTimeout(batch_update_amp(index),5000);
} }
} }
} }

@ -1,13 +0,0 @@
fs.js:115
throw err;
^
Error: EPERM: operation not permitted, lstat 'C:\Users\lmr'
at Object.realpathSync (fs.js:1457:7)
at toRealPath (internal/modules/cjs/loader.js:202:13)
at Function.Module._findPath (internal/modules/cjs/loader.js:268:22)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:578:25)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
Loading…
Cancel
Save