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