|
@@ -841,7 +841,9 @@ public class Jump2View {
|
|
|
public void onError(BaseMessage baseMessage) {
|
|
public void onError(BaseMessage baseMessage) {
|
|
|
LogUtil.println("baseMessage onError "+JSON.toJSONString(baseMessage));
|
|
LogUtil.println("baseMessage onError "+JSON.toJSONString(baseMessage));
|
|
|
if(action1 != null){
|
|
if(action1 != null){
|
|
|
- action1.call(TextUtils.isEmpty(baseMessage.getMsg()) ? "服务器错误,请稍候再试" : baseMessage.getMsg());
|
|
|
|
|
|
|
+ String msg = TextUtils.isEmpty(baseMessage.getMsg()) ? "服务器错误,请稍候再试" : baseMessage.getMsg();
|
|
|
|
|
+ msg = baseMessage.getCode() == 404 ? "404" : msg;
|
|
|
|
|
+ action1.call(msg);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -857,7 +859,7 @@ public class Jump2View {
|
|
|
tryShowAgreement(activity, new Action1<String>() {
|
|
tryShowAgreement(activity, new Action1<String>() {
|
|
|
@Override
|
|
@Override
|
|
|
public void call(String msg) {
|
|
public void call(String msg) {
|
|
|
- if(msg == null) {
|
|
|
|
|
|
|
+ if(msg == null || TextUtils.equals(msg, "404")) {
|
|
|
tryShowNewbieTask(activity, userEntity, newbie_task);
|
|
tryShowNewbieTask(activity, userEntity, newbie_task);
|
|
|
}else {
|
|
}else {
|
|
|
G.showToast(msg);
|
|
G.showToast(msg);
|