Authored by yyq

change risk key

@@ -14,7 +14,7 @@ const pathWhiteList = require('./limiter/rules/path-white-list'); @@ -14,7 +14,7 @@ const pathWhiteList = require('./limiter/rules/path-white-list');
14 const ipWhiteList = require('./limiter/rules/ip-white-list'); 14 const ipWhiteList = require('./limiter/rules/ip-white-list');
15 const _ = require('lodash'); 15 const _ = require('lodash');
16 16
17 -const replaceKey = '${refer}'; 17 +const replaceKey = '__refer__';
18 const checkRefer = helpers.urlFormat('/3party/check', {refer: replaceKey}); 18 const checkRefer = helpers.urlFormat('/3party/check', {refer: replaceKey});
19 19
20 const forceNoCache = (res) => { 20 const forceNoCache = (res) => {
@@ -87,7 +87,7 @@ @@ -87,7 +87,7 @@
87 "xml2js": "^0.4.19", 87 "xml2js": "^0.4.19",
88 "yoho-express-session": "^2.0.0", 88 "yoho-express-session": "^2.0.0",
89 "yoho-md5": "^2.0.0", 89 "yoho-md5": "^2.0.0",
90 - "yoho-node-lib": "=0.6.18", 90 + "yoho-node-lib": "=0.6.19",
91 "yoho-zookeeper": "^1.0.10" 91 "yoho-zookeeper": "^1.0.10"
92 }, 92 },
93 "devDependencies": { 93 "devDependencies": {