Commit da351cbb by v_vjyjiang

d

parent 7c962157
......@@ -6,7 +6,6 @@ app.use(bodyParser.json({ limit: '50mb' }));
var server = http.createServer(app);
const util = require('util');
const exec = util.promisify(require('child_process').exec);
const mapfile = require("./config/version2yaml")
var path = require("path");
app.post("/upline", async function (req, res, next) {
console.log(req.body, "...........................")
......@@ -15,6 +14,7 @@ app.post("/upline", async function (req, res, next) {
version = req.body.push_data.tag
}
if (version) {
const mapfile = require("./config/version2yaml")
let endindex = version.lastIndexOf(".")
let mapkey = version.substring(0, endindex)
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