Commit 733d9953 authored by wuchaowen's avatar wuchaowen

去掉toast

parent 3365a96d
...@@ -136,13 +136,11 @@ public class JDHelper { ...@@ -136,13 +136,11 @@ public class JDHelper {
KeplerApiManager.asyncInitSdk(getActivity().getApplication(), appKey, appSecret, new AsyncInitListener() { KeplerApiManager.asyncInitSdk(getActivity().getApplication(), appKey, appSecret, new AsyncInitListener() {
@Override @Override
public void onSuccess() { public void onSuccess() {
Toast.makeText(getActivity(),"success",Toast.LENGTH_SHORT).show();
result.success(PluginResponse.success(null).toMap()); result.success(PluginResponse.success(null).toMap());
} }
@Override @Override
public void onFailure() { public void onFailure() {
Toast.makeText(getActivity(),"fail",Toast.LENGTH_SHORT).show();
String errorCode = "-1"; String errorCode = "-1";
String errorMsg = "初始化失败"; String errorMsg = "初始化失败";
result.success(new PluginResponse(errorCode, errorMsg, null).toMap()); result.success(new PluginResponse(errorCode, errorMsg, null).toMap());
...@@ -165,7 +163,6 @@ public class JDHelper { ...@@ -165,7 +163,6 @@ public class JDHelper {
url, url,
mKeplerAttachParameter, mKeplerAttachParameter,
mOpenAppAction); mOpenAppAction);
Toast.makeText(getActivity(),"success",Toast.LENGTH_SHORT).show();
} }
} }
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