Authored by 王水玲

risk

@@ -31,10 +31,10 @@ const risk = { @@ -31,10 +31,10 @@ const risk = {
31 add: async(ctx, next) => { 31 add: async(ctx, next) => {
32 var data = {}; 32 var data = {};
33 var key = ctx.request.query.key; 33 var key = ctx.request.query.key;
34 - var app = key.split('/')[0];  
35 var oldRet = ''; 34 var oldRet = '';
36 35
37 if (key) { 36 if (key) {
  37 + var app = key.split('/')[0];
38 var path = formatPath(app); 38 var path = formatPath(app);
39 oldRet = await zookeeperModel.getPath(path); 39 oldRet = await zookeeperModel.getPath(path);
40 40