经过最严格的加密算法加密
用于恢复无法使用两步验证的情况
经过最严格的加密算法加密
用于恢复无法使用两步验证的情况
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
# Auto detect text files and perform LF normalization | |
* text=auto | |
# JS and TS files must always use LF for tools to work | |
*.js eol=lf | |
bin/* eol=lf |
function hashCode(any) { | |
let hash = 0; | |
if ( | |
any === null || | |
any === void 0 || | |
any === '' || | |
any === 0 || | |
any === false | |
) { | |
return 0; |
const Koa = require('koa'); | |
const Router = require('koa-router'); | |
const methods = require('methods'); | |
const router = new Router(); | |
const KOA = Symbol('koa instance'); | |
class Server { | |
constructor() { | |
this[KOA] = new Koa(); |
代码全部来源于官方教程
新建目录,把所有文件放在同一目录下
在该目录下执行命令
/** | |
* Generate a New status | |
* @param code | |
* @param message | |
* @constructor | |
*/ | |
function Status(code, message) { | |
this.code = code; | |
this.message = message; | |
} |