diff --git a/app/extend/request.js b/app/extend/request.js index 9d6cb0012b..eb16eb4858 100644 --- a/app/extend/request.js +++ b/app/extend/request.js @@ -139,7 +139,7 @@ module.exports = { return false; }, - // 关于如何安全地读取 query 参数的讨论 + // How to read query safely // https://github.com/koajs/qs/issues/5 _customQuery(cacheName, filter) { const str = this.querystring; @@ -178,7 +178,7 @@ module.exports = { }, /** - * 获取当前请求以 querystring 传递的参数,所有参数值都以 String 类型返回 + * get params pass by querystring, all value are String type. * @member {Object} Request#query * @example * ```js @@ -202,7 +202,7 @@ module.exports = { }, /** - * 获取当前请求以 querystring 传递的参数,所有参数值都以 Array 类型返回,类似 {@link Request#query} + * get params pass by querystring, all value are Array type. {@link Request#query} * @member {Array} Request#queries * @example * ```js diff --git a/lib/loader/agent_worker_loader.js b/lib/loader/agent_worker_loader.js index 9f564943af..5340567d85 100644 --- a/lib/loader/agent_worker_loader.js +++ b/lib/loader/agent_worker_loader.js @@ -1,13 +1,9 @@ -/** - * AgentWorkerLoader 类,继承 BaseLoader,实现整个应用的加载机制 - */ - 'use strict'; const EggLoader = require('egg-core').EggLoader; /** - * Agent Worker 进程的 Loader,继承 egg-loader + * Agent worker process loader * @see https://github.com/eggjs/egg-loader */ class AgentWorkerLoader extends EggLoader { diff --git a/lib/loader/app_worker_loader.js b/lib/loader/app_worker_loader.js index 9fe7eaee95..ef92b7f00a 100644 --- a/lib/loader/app_worker_loader.js +++ b/lib/loader/app_worker_loader.js @@ -3,7 +3,7 @@ const EggLoader = require('egg-core').EggLoader; /** - * App Worker process Loader, will load plugins + * App worker process Loader, will load plugins * @see https://github.com/eggjs/egg-loader */ class AppWorkerLoader extends EggLoader {