Fix ali
This commit is contained in:
parent
25526b38a6
commit
f68bd69c8b
|
|
@ -162,7 +162,7 @@ public class API {
|
||||||
String result = post("https://auth.aliyundrive.com/v2/account/token", body);
|
String result = post("https://auth.aliyundrive.com/v2/account/token", body);
|
||||||
user = User.objectFrom(result).save();
|
user = User.objectFrom(result).save();
|
||||||
if (user.getAccessToken().isEmpty()) throw new Exception(result);
|
if (user.getAccessToken().isEmpty()) throw new Exception(result);
|
||||||
if (oauth.getRefreshToken().isEmpty()) oauthRequest();
|
oauthRequest();
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
user.clean().save();
|
user.clean().save();
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
b43f60b1459104200b5f30007df2b306
|
a3a0ad16814a815fdad26b236cdd5a05
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue