Authored by 姜枫

add 开关

@@ -128,6 +128,10 @@ const defaultDegrades = [ @@ -128,6 +128,10 @@ const defaultDegrades = [
128 { 128 {
129 path: '/wap/geetest/validation', 129 path: '/wap/geetest/validation',
130 name: '【开关】关闭极验证验证码' 130 name: '【开关】关闭极验证验证码'
  131 + },
  132 + {
  133 + path: '/wap/close/passwordLogin',
  134 + name: '【开关】关闭账号密码登录'
131 } 135 }
132 ]; 136 ];
133 137
@@ -111,7 +111,7 @@ const makeServer = ((ipKey, uaKey, listName, black) => { @@ -111,7 +111,7 @@ const makeServer = ((ipKey, uaKey, listName, black) => {
111 await Promise.all(_.map(hosts, (h) => { 111 await Promise.all(_.map(hosts, (h) => {
112 const key = `pc:limiter:${ip}`, 112 const key = `pc:limiter:${ip}`,
113 value = 9999, 113 value = 9999,
114 - ttl = 60 * 60 * 8; // 封停8小时 114 + ttl = 60 * 60 * 24 * 30; // 封停一月
115 115
116 return (new ApiCache(h.host)).setKey(key, value, ttl); 116 return (new ApiCache(h.host)).setKey(key, value, ttl);
117 })); 117 }));