Commit 5887d93a by sikang

bug fix

parent fd1d07d9
...@@ -23,7 +23,7 @@ public class DisplayBean implements Serializable { ...@@ -23,7 +23,7 @@ public class DisplayBean implements Serializable {
public class AccountKitInfo implements Serializable { public class AccountKitInfo implements Serializable {
String applicationId; String applicationId;
String applicationSecret; String applicationSecret;
String appClientToken; String appclientToken;
public String getApplicationId() { public String getApplicationId() {
return applicationId; return applicationId;
...@@ -41,12 +41,12 @@ public class DisplayBean implements Serializable { ...@@ -41,12 +41,12 @@ public class DisplayBean implements Serializable {
this.applicationSecret = applicationSecret; this.applicationSecret = applicationSecret;
} }
public String getAppClientToken() { public String getAppclientToken() {
return appClientToken; return appclientToken;
} }
public void setAppClientToken(String appClientToken) { public void setAppclientToken(String appclientToken) {
this.appClientToken = appClientToken; this.appclientToken = appclientToken;
} }
} }
......
...@@ -2,7 +2,6 @@ package tech.starwin.mvp.presenter; ...@@ -2,7 +2,6 @@ package tech.starwin.mvp.presenter;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.text.TextUtils; import android.text.TextUtils;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
...@@ -562,7 +561,7 @@ public class UserPresenter extends BasePresenter<UserApi> { ...@@ -562,7 +561,7 @@ public class UserPresenter extends BasePresenter<UserApi> {
public void onSuccess(DisplayBean data) { public void onSuccess(DisplayBean data) {
if (data.getAccountKitInfo() != null) { if (data.getAccountKitInfo() != null) {
String appId = data.getAccountKitInfo().getApplicationId(); String appId = data.getAccountKitInfo().getApplicationId();
String token = data.getAccountKitInfo().getAppClientToken(); String token = data.getAccountKitInfo().getAppclientToken();
if (!TextUtils.isEmpty(appId) && !TextUtils.isEmpty(token)) { if (!TextUtils.isEmpty(appId) && !TextUtils.isEmpty(token)) {
AccountKitUtils.initAccountKit(appId, LibConfig.APP_NAME, token); AccountKitUtils.initAccountKit(appId, LibConfig.APP_NAME, token);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment