Commit a27b9b90 by 陈健智

工具库-互动量更新提示修复

parent c9291125
......@@ -56,13 +56,18 @@ public class AopDownloadTask {
downloadTaskService.updateDownloadTask(taskId, 100, DownloadTask.Status.FAILED.getName(), null);
ExceptionCast.cast(CommonCodeEnum.FAIL, "下载异常", e);
}
ResponseResult responseResult = (ResponseResult) proceed;
// 更新下载任务
if (method.getAnnotation(com.zhiwei.brandkbs2.aop.DownloadTask.class).entity()){
fileAddress = JSONObject.parseObject(((ResponseResult) proceed).getData().toString()).getString("filePath");
}else {
if (responseResult.isStatus()) {
if (method.getAnnotation(com.zhiwei.brandkbs2.aop.DownloadTask.class).entity()) {
fileAddress = JSONObject.parseObject(responseResult.getData().toString()).getString("filePath");
} else {
fileAddress = ((ResponseResult) proceed).getData().toString();
}
downloadTaskService.updateDownloadTask(taskId, 100, DownloadTask.Status.FINISH.getName(), fileAddress);
}else {
downloadTaskService.updateDownloadTask(taskId, 100, DownloadTask.Status.FAILED.getName(), null);
}
return proceed;
}
}
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