Merge branch 'test6.9.22' of http://git.yoho.cn/ufo/ufo-platform into test6.9.22
Showing
2 changed files
with
3 additions
and
4 deletions
@@ -83,7 +83,7 @@ public class ResourceController { | @@ -83,7 +83,7 @@ public class ResourceController { | ||
83 | } catch (ParseException e) { | 83 | } catch (ParseException e) { |
84 | return new ApiResponse.ApiResponseBuilder().code(400).message("日期格式有误").data("").build(); | 84 | return new ApiResponse.ApiResponseBuilder().code(400).message("日期格式有误").data("").build(); |
85 | } catch (Exception e) { | 85 | } catch (Exception e) { |
86 | - return new ApiResponse.ApiResponseBuilder().code(400).message(e.getMessage()).data("").build(); | 86 | + return new ApiResponse(400, e.getMessage(), ""); |
87 | } | 87 | } |
88 | return new ApiResponse.ApiResponseBuilder().code(200).data(result).build(); | 88 | return new ApiResponse.ApiResponseBuilder().code(200).data(result).build(); |
89 | } | 89 | } |
@@ -247,12 +247,11 @@ public class ResourceServiceImpl implements IResourceService{ | @@ -247,12 +247,11 @@ public class ResourceServiceImpl implements IResourceService{ | ||
247 | throw new PlatformException("拷贝源资源位不存在", 500); | 247 | throw new PlatformException("拷贝源资源位不存在", 500); |
248 | } | 248 | } |
249 | if (r.getPublishTime() == 0) { | 249 | if (r.getPublishTime() == 0) { |
250 | - bo.setPublishTime(now + 3600 * 24); | 250 | + r.setPublishTime(now + 3600 * 24); |
251 | } else { | 251 | } else { |
252 | - bo.setPublishTime(r.getPublishTime() + 3600 * 24); | 252 | + r.setPublishTime(r.getPublishTime() + 3600 * 24); |
253 | } | 253 | } |
254 | r.setId(null); | 254 | r.setId(null); |
255 | - r.setPublishTime((int) (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(bo.getPublishTimeStr()).getTime() / 1000)); | ||
256 | r.setLockPersonId(""); | 255 | r.setLockPersonId(""); |
257 | r.setLockPersonName(""); | 256 | r.setLockPersonName(""); |
258 | r.setMatchCode(""); | 257 | r.setMatchCode(""); |
-
Please register or login to post a comment