소스 검색

fix saveRemoteResource

guozhaoshun 6 년 전
부모
커밋
01f4a1a971
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      rankin-resource-service/src/main/java/cn/rankin/resourceservice/service/ResourceService.java

+ 6 - 6
rankin-resource-service/src/main/java/cn/rankin/resourceservice/service/ResourceService.java

@@ -287,13 +287,13 @@ public class ResourceService {
 
 
         APIResult<ResourceDetail> apiResult = resourceProxy.saveResources(resourceRemote);
-
+        log.info("saveResources: "+apiResult);
         if (!apiResult.getSuccess()) {
             return errorResourceAPIResult(apiResult);
         }
 
-        Resource resourceVO = apiResult.getData().toNativeResource();
-        return APIResult.ok(resourceVO);
+//        Resource resourceVO = apiResult.getData().toNativeResource();
+        return APIResult.ok();
     }
 
     /**
@@ -349,13 +349,13 @@ public class ResourceService {
         resourceRemote.setVideos(videos);
 
         APIResult<ResourceDetail> apiResult = resourceProxy.updateResources(resourceRemote);
-
+        log.info("updateResources: "+apiResult);
         if (!apiResult.getSuccess()) {
             return errorResourceAPIResult(apiResult);
         }
 
-        Resource resourceVO = apiResult.getData().toNativeResource();
-        return APIResult.ok(resourceVO);
+//        Resource resourceVO = apiResult.getData().toNativeResource();
+        return APIResult.ok();
     }
 
     private APIResult<Resource> errorResourceAPIResult(APIResult<ResourceDetail> apiResult) {