Commit d2dc79d9 by v_vjyjiang

d

parent e34d1f31
...@@ -14,7 +14,12 @@ app.post("/upline", async function (req, res, next) { ...@@ -14,7 +14,12 @@ app.post("/upline", async function (req, res, next) {
version = req.body.push_data.tag version = req.body.push_data.tag
} }
if (version) { if (version) {
const mapfile = require("./config/version2yaml") let ssp = "./config/version2yaml"
let pstr = require.resolve(ssp)
if (require.cache[pstr]) {
delete require.cache[pstr]
}
const mapfile = require(ssp)
let endindex = version.lastIndexOf(".") let endindex = version.lastIndexOf(".")
let mapkey = version.substring(0, endindex) let mapkey = version.substring(0, endindex)
console.log(mapkey, "yaml file mapkey.......................") console.log(mapkey, "yaml file mapkey.......................")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment