Update ali
This commit is contained in:
parent
768980f706
commit
6c37f413ca
|
|
@ -177,6 +177,8 @@ public class Ali {
|
||||||
body.put("grant_type", "refresh_token");
|
body.put("grant_type", "refresh_token");
|
||||||
JSONObject object = new JSONObject(post("https://auth.aliyundrive.com/v2/account/token", body));
|
JSONObject object = new JSONObject(post("https://auth.aliyundrive.com/v2/account/token", body));
|
||||||
accessToken = object.getString("token_type") + " " + object.getString("access_token");
|
accessToken = object.getString("token_type") + " " + object.getString("access_token");
|
||||||
|
refreshToken = object.getString("refresh_token");
|
||||||
|
Prefers.put("token", refreshToken);
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
accessToken = null;
|
accessToken = null;
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
cc2b0b7bef842b7a62cc722704abb70f
|
c9e6da557fc51082b490f840b865b597
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue