Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Mar 2, 2015
1 parent 8af7105 commit 82515eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var AccessToken = function (data) {
this.data = data;
};

/**
/*!
* 检查AccessToken是否有效,检查规则为当前时间和过期时间进行对比
*
* Examples:
Expand Down Expand Up @@ -87,15 +87,9 @@ OAuth.prototype.setOpts = function (opts) {
this.defaults = opts;
};

/**
* 设置urllib的hook
/*!
* urllib的封装
*
* Examples:
* ```
* api.setHook(function (options) {
* // options
* });
* ```
* @param {String} url 路径
* @param {Object} opts urllib选项
* @param {Function} callback 回调函数
Expand Down Expand Up @@ -140,7 +134,7 @@ OAuth.prototype.getAuthorizeURL = function (redirect, state, scope) {
};

/**
* 根据授权获取到的code,换取access token
* 根据授权获取到的code,换取access token和openid
* 获取openid之后,可以调用`wechat.API`来获取更多信息
* Examples:
* ```
Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/**
* 对返回结果的一层封装,如果遇见微信返回的错误,将返回一个错误
* 参见:http://mp.weixin.qq.com/wiki/index.php?title=返回码说明
*/
Expand Down

0 comments on commit 82515eb

Please sign in to comment.