|
@@ -26,7 +26,7 @@ function init() {
|
|
var md5 = req.headers.catilla
|
|
var md5 = req.headers.catilla
|
|
//默认32位
|
|
//默认32位
|
|
const md5Str = crypto.createHash('md5').update(k + timestamp).digest('hex');
|
|
const md5Str = crypto.createHash('md5').update(k + timestamp).digest('hex');
|
|
- // logger.info(JSON.stringify(md5Str))
|
|
|
|
|
|
+ logger.info(JSON.stringify(md5Str))
|
|
if (md5 === md5Str) {
|
|
if (md5 === md5Str) {
|
|
next();
|
|
next();
|
|
} else {
|
|
} else {
|
|
@@ -87,6 +87,7 @@ function init() {
|
|
app.post('/execute', (req, res) => {
|
|
app.post('/execute', (req, res) => {
|
|
// 获取发送过来的信息(请求体的数据)
|
|
// 获取发送过来的信息(请求体的数据)
|
|
const param = req.body;
|
|
const param = req.body;
|
|
|
|
+ logger.info(`body:`,JSON.stringify(param))
|
|
(async (param) => {
|
|
(async (param) => {
|
|
console.log('请求体:', param);
|
|
console.log('请求体:', param);
|
|
var executeType = param.executeType
|
|
var executeType = param.executeType
|