Commit 11d49098 authored by alex yao's avatar alex yao

fix: 文本比对接口异常

parent 041ed98b
......@@ -46,6 +46,9 @@ public interface TextDiffRest extends BaseRest {
/**
* 查询任务状态
*
* @param taskId 任务ID
* @return 任务状态 RUN-执行中 FAIL-失败 END-执行成功
*/
String queryTextDiffTask(@RequestParam String taskId) throws Exception;
......
......@@ -42,7 +42,7 @@ public class TextDiffRestImpl implements TextDiffRest {
Assert.notNull(startTextDiffDto.getCompareFileURL(), "Compare file cannot be null");
Assert.notNull(startTextDiffDto.getParam(), "Param cannot be null");
UserBaseEntity userBaseEntity = BlContext.getCurrentUserNotException();
if (userBaseEntity != null) {
if (userBaseEntity == null) {
throw new BusinessException("用户未登录");
}
return baiduTextDiffService.textDiff(startTextDiffDto.getBaseFileURL(), startTextDiffDto.getCompareFileURL(), startTextDiffDto.getParam(), userBaseEntity.getUserId());
......
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