修复bug

This commit is contained in:
Dragon
2023-07-14 15:27:25 +08:00
parent f594d0de0c
commit 131a276e58
22 changed files with 82 additions and 24 deletions

View File

@@ -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;