diff --git a/packages/wepy-ant/src/app.js b/packages/wepy-ant/src/app.js index cb6411cd6..3a89c16cb 100644 --- a/packages/wepy-ant/src/app.js +++ b/packages/wepy-ant/src/app.js @@ -134,6 +134,9 @@ export default class { if (key === 'request') { obj = (typeof(obj) === 'string') ? {url: obj} : obj; } + if (key === 'getAuthCode') { + obj.scopes = obj.scopes || 'auth_user' + } if (typeof obj === 'string') { return my[key](obj); }