|
|
@ -529,21 +529,17 @@ function readDir(path) { |
|
|
|
} |
|
|
|
} |
|
|
|
return names; |
|
|
|
return names; |
|
|
|
} |
|
|
|
} |
|
|
|
log(readDir(jkfilespath)); |
|
|
|
|
|
|
|
// 清理接口残留过期文件
|
|
|
|
// 清理接口残留过期文件
|
|
|
|
function clearJkFiles() { |
|
|
|
function clearJkFiles() { |
|
|
|
|
|
|
|
let names = readDir(jkfilespath); |
|
|
|
/* |
|
|
|
|
|
|
|
let datalist = getDatas("jk"); |
|
|
|
let datalist = getDatas("jk"); |
|
|
|
readDir(jkfilespath) |
|
|
|
names.forEach(it=>{ |
|
|
|
Object.keys(sort).forEach(it=>{ |
|
|
|
if(!datalist.some(item => item.url==jkfilespath+it)){ |
|
|
|
if(!datalist.some(item => item.url==it)){ |
|
|
|
deleteFile(jkfilespath+it); |
|
|
|
delete sort[it]; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
writeFile(sortfile, JSON.stringify(sort)); |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
clearJkFiles(); |
|
|
|
// 获取接口对应的显示标题
|
|
|
|
// 获取接口对应的显示标题
|
|
|
|
function getDataTitle(data) { |
|
|
|
function getDataTitle(data) { |
|
|
|
if($.type(data.type)=="string"){ |
|
|
|
if($.type(data.type)=="string"){ |
|
|
|