修复bug
This commit is contained in:
@@ -101,7 +101,10 @@ function oauthToken () {
|
||||
networkRequest({
|
||||
type: 'POST',
|
||||
url: urlPrefix + '/oauth/token',
|
||||
data: idOrPhone ? { "grant_type": "password", phone, password, client_id: "erban-client", "client_secret": "uyzjdhds" } : { grant_type: 'verify_code', phoneAreaCode, phone, code, client_id: "erban-client", "client_secret": "uyzjdhds" },
|
||||
data: idOrPhone ? {
|
||||
"grant_type": "password", phone, password, client_id: "erban-client", "client_secret": "uyzjdhds"
|
||||
} :
|
||||
{ grant_type: 'verify_code', phoneAreaCode, phone:`${code}${phone}`, code, client_id: "erban-client", "client_secret": "uyzjdhds" },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
token = res.data.access_token;
|
||||
|
Reference in New Issue
Block a user