|
|
@@ -558,9 +558,9 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
|
|
|
@Override
|
|
|
public void error(int what, String message, Bundle bundle) {
|
|
|
+ LogUtil.i("message=" + message);
|
|
|
if (endActivity) return;
|
|
|
iApproval.dimssLoading();
|
|
|
- LogUtil.i("message=" + message);
|
|
|
switch (what) {
|
|
|
case LOAD_AGREE:
|
|
|
if (message.contains("程序错误")) {
|
|
|
@@ -571,14 +571,12 @@ public class ApprovaPresenter implements OnHttpResultListener {
|
|
|
case LOAD_PROCESS_UPDATE:
|
|
|
case LOAD_NEXT_STEPOFP_INSTANCE:
|
|
|
case LOAD_TAKE_OVER_OTHER:
|
|
|
- submit = false;
|
|
|
break;
|
|
|
}
|
|
|
+ submit = false;
|
|
|
String errorKey = "exceptionInfo";
|
|
|
if (JSONUtil.validate(message) && !StringUtil.isEmpty(JSONUtil.getText(parseObject(message), errorKey))) {
|
|
|
- LogUtil.i("new JsonValidator().validate(message) && !StringUtil.isEmpty(JSONUtil.getText(parseObject(message), errorKey)");
|
|
|
String remain = JSONUtil.getText(parseObject(message), errorKey);
|
|
|
- LogUtil.i("remain=" + remain);
|
|
|
iApproval.showToast(remain, R.color.load_submit);
|
|
|
} else {
|
|
|
iApproval.showToast(message, R.color.load_submit);
|