mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-23 03:09:21 +08:00
19 lines
442 B
JavaScript
19 lines
442 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const encryption = require("./js代码4");
|
|
var bodyParser = require('body-parser');
|
|
app.use(bodyParser());
|
|
|
|
|
|
app.post('/get_sign', function (req, res) {
|
|
let result = req.body;
|
|
let sign = result.sign;
|
|
console.log(sign);
|
|
result = encryption.hex_md5(sign);
|
|
res.send(result.toString());
|
|
});
|
|
|
|
app.listen(4001, () => {
|
|
console.log("开启服务,端口 4001")
|
|
});
|