修复相同appid不同版本数据混淆问题

This commit is contained in:
aixianling
2022-06-30 10:13:47 +08:00
parent 569fdcabe7
commit e07aef9832
3 changed files with 11 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ module.exports = {
action: "/node/wxmp/download",
method: "post",
execute: (request, response) => {
let appid = request.query?.appid
let {pid, appid: aid} = request.query, appid = [aid, pid].join("_")
if (appid) {
let path = `/home/deploy/wxmpZips/${appid}/`, zipPath = `/home/deploy/wxmpZips/${appid}.zip`
fse.removeSync(zipPath)