Browse Source

fix saveRemoteResource

guozhaoshun 6 years ago
parent
commit
01f4a1a971

+ 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) {