Authored by Lixiaodi

bug修改

... ... @@ -83,7 +83,7 @@ public class ResourceController {
} catch (ParseException e) {
return new ApiResponse.ApiResponseBuilder().code(400).message("日期格式有误").data("").build();
} catch (Exception e) {
return new ApiResponse.ApiResponseBuilder().code(400).message(e.getMessage()).data("").build();
return new ApiResponse(400, e.getMessage(), "");
}
return new ApiResponse.ApiResponseBuilder().code(200).data(result).build();
}
... ...
... ... @@ -252,7 +252,6 @@ public class ResourceServiceImpl implements IResourceService{
bo.setPublishTime(r.getPublishTime() + 3600 * 24);
}
r.setId(null);
r.setPublishTime((int) (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(bo.getPublishTimeStr()).getTime() / 1000));
r.setLockPersonId("");
r.setLockPersonName("");
r.setMatchCode("");
... ...