Commit fe4853ca by lcx

接口返回参数调整

parent e430cd4d
...@@ -176,7 +176,7 @@ public ApiResponse Prejudge([FromRoute] int allotId) ...@@ -176,7 +176,7 @@ public ApiResponse Prejudge([FromRoute] int allotId)
if (!string.IsNullOrEmpty(filePath) && FileHelper.IsExistFile(filePath)) if (!string.IsNullOrEmpty(filePath) && FileHelper.IsExistFile(filePath))
{ {
var data = configService.CheckHasNewDepartmentOrCategory(allotId); var data = configService.CheckHasNewDepartmentOrCategory(allotId);
return new ApiResponse(ResponseType.Fail, data); return new ApiResponse(ResponseType.OK, new { haserror = (data != null && data.Any()), data });
} }
return new ApiResponse(ResponseType.OK); return new ApiResponse(ResponseType.OK);
} }
......
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