Commit fdaf2a78b44d07636f2e5beebd022310acfe7625
1 parent
a809e3e571
Exists in
master
图片上传逻辑修复
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/src/main/java/com/hjx/parent/dialog/AddHomeworkDialog.java
... | ... | @@ -226,7 +226,7 @@ public class AddHomeworkDialog extends BaseDialog<DialogAddHomeworkBinding>{ |
226 | 226 | return Observable.just(file) |
227 | 227 | .map(var -> { |
228 | 228 | BaiduInput baiduInput = NetWorks.inputImage(path, id).blockingGet(); |
229 | - if (baiduInput.getError_code() != null && baiduInput.getBrief() != null) { | |
229 | + if (baiduInput.getError_code() != null && baiduInput.getBrief() == null) { | |
230 | 230 | throw new RuntimeException("图片入库失败"); |
231 | 231 | } else { |
232 | 232 | return baiduInput; | ... | ... |