Skip to content

Commit

Permalink
upd: 允许用户覆盖my.getAuthCode.scopes字段的定义,类型暂时不限制
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunf committed Jan 5, 2018
1 parent a7a03ed commit 54748f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wepy-ant/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default class {
obj = (typeof(obj) === 'string') ? {url: obj} : obj;
}
if (key === 'getAuthCode') {
obj.scopes = 'auth_user'
obj.scopes = obj.scopes || 'auth_user'
}
if (typeof obj === 'string') {
return my[key](obj);
Expand Down

0 comments on commit 54748f8

Please sign in to comment.