diff --git a/README.md b/README.md index 72d9a238..769982d8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WeDPR -![](https://wedpr-lab.readthedocs.io/zh_CN/latest/_static/images/wedpr_logo.png) +![](./static/images/wedpr_logo.png) [![CodeFactor](https://www.codefactor.io/repository/github/webankblockchain/wedpr/badge?s=a4c3fb6ffd39e7618378fe13b6bd06c5846cc103)](https://www.codefactor.io/repository/github/webankblockchain/wedpr) diff --git a/static/images/wedpr_logo.png b/static/images/wedpr_logo.png new file mode 100644 index 00000000..8f10965f Binary files /dev/null and b/static/images/wedpr_logo.png differ diff --git a/wedpr-components/service-publish/src/main/java/com/webank/wedpr/components/publish/service/impl/WedprPublishedServiceServiceImpl.java b/wedpr-components/service-publish/src/main/java/com/webank/wedpr/components/publish/service/impl/WedprPublishedServiceServiceImpl.java index 6bf2a030..2568a2bf 100644 --- a/wedpr-components/service-publish/src/main/java/com/webank/wedpr/components/publish/service/impl/WedprPublishedServiceServiceImpl.java +++ b/wedpr-components/service-publish/src/main/java/com/webank/wedpr/components/publish/service/impl/WedprPublishedServiceServiceImpl.java @@ -18,6 +18,7 @@ import com.webank.wedpr.components.publish.entity.request.PublishSearchRequest; import com.webank.wedpr.components.publish.entity.response.WedprPublishCreateResponse; import com.webank.wedpr.components.publish.entity.response.WedprPublishSearchResponse; +import com.webank.wedpr.components.publish.helper.PublishServiceHelper; import com.webank.wedpr.components.publish.service.WedprPublishedServiceService; import com.webank.wedpr.components.publish.sync.api.PublishSyncerApi; import java.util.Arrays; @@ -71,9 +72,9 @@ public WeDPRResponse createPublishService(String username, PublishCreateRequest publishCreate.checkServiceConfig(datasetMapper, username, WeDPRCommonConfig.getAgency()); publishCreate.setStatus(ServiceStatus.Publishing.getStatus()); this.publishedServiceMapper.insertServiceInfo(publishCreate); - boolean hasHook = this.serviceHook.onPublish(publishCreate.getServiceType(), publishCreate); - // without hook, set the status to success directly - if (!hasHook) { + this.serviceHook.onPublish(publishCreate.getServiceType(), publishCreate); + // non-pir service publish, set the status to success directly + if (!publishCreate.getPublishType().equals(PublishServiceHelper.PublishType.PIR)) { PublishedServiceInfo updatedServiceInfo = new PublishedServiceInfo(publishCreate.getServiceId()); updatedServiceInfo.setServiceStatus(ServiceStatus.PublishSuccess);