修复下载接口

This commit is contained in:
aixianling
2022-05-19 11:17:53 +08:00
parent b0724affcc
commit 704811e1d9

View File

@@ -7,7 +7,7 @@ module.exports = {
execute: (request, response) => {
let appid = request.query?.appid
if (appid) {
let path = `../wxmpZips/${appid}/`, zipPath = `./wxmpZips/${appid}.zip`
let path = `../wxmpZips/${appid}/`, zipPath = `../wxmpZips/${appid}.zip`
fse.removeSync(zipPath)
fse.pathExists(path, (err, exists) => {
console.log(`${path}=========>${exists}`)