|
@@ -28,7 +28,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)+'\t'+req.url)
|
|
if (md5 === md5Str) {
|
|
if (md5 === md5Str) {
|
|
next();
|
|
next();
|
|
} else {
|
|
} else {
|