修复下载接口
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = {
|
|||||||
execute: (request, response) => {
|
execute: (request, response) => {
|
||||||
let appid = request.query?.appid
|
let appid = request.query?.appid
|
||||||
if (appid) {
|
if (appid) {
|
||||||
let path = `../wxmpZips/${appid}/`, zipPath = `./wxmpZips/${appid}.zip`
|
let path = `../wxmpZips/${appid}/`, zipPath = `../wxmpZips/${appid}.zip`
|
||||||
fse.removeSync(zipPath)
|
fse.removeSync(zipPath)
|
||||||
fse.pathExists(path, (err, exists) => {
|
fse.pathExists(path, (err, exists) => {
|
||||||
console.log(`${path}=========>${exists}`)
|
console.log(`${path}=========>${exists}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user