Commit 2e146c06 by 郑娜伟

net 1.1.6 上传文件失败 弹出msg提示

parent e14e1495
......@@ -189,14 +189,14 @@ public class SobotUploadTask<T> implements Runnable {
progress.url = tmpData.getUrl();
postOnFinish(progress, data);
} else {
postOnError(progress, new RuntimeException("服务器异常"));
postOnError(progress, new RuntimeException(result.getMsg()));
}
} else {
postOnError(progress, new RuntimeException("服务器异常"));
postOnError(progress, new RuntimeException("网络错误"));
}
} catch (Exception e) {
e.printStackTrace();
postOnError(progress, new RuntimeException("服务器异常"));
postOnError(progress, new RuntimeException("网络错误"));
}
} else {
postOnError(progress, new RuntimeException(response.message()));
......
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