From 3f4d154d2b64bc97e35acbbbb4950856c8d5b751 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Wed, 5 Apr 2023 16:25:52 +0800 Subject: [PATCH] update doip-sdk irp-sdk --- build.gradle | 2 +- .../java/org/bdware/server/doip/ContractRepositoryHandler.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 4f17db3..02c539d 100644 --- a/build.gradle +++ b/build.gradle @@ -41,7 +41,7 @@ dependencies { implementation 'org.apache.velocity:velocity-engine-core:2.3' implementation 'com.nimbusds:nimbus-jose-jwt:9.10' implementation 'org.bdware.doip:doip-sdk:1.3.9' - implementation 'org.bdware.doip:doip-audit-tool:1.2.1' + implementation 'org.bdware.doip:doip-audit-tool:1.2.2' implementation 'org.bdware.doip:bdosclient:0.0.2' implementation fileTree(dir: 'lib', include: '*.jar') testImplementation 'junit:junit:4.13.2' diff --git a/src/main/java/org/bdware/server/doip/ContractRepositoryHandler.java b/src/main/java/org/bdware/server/doip/ContractRepositoryHandler.java index aeab986..0a041f2 100644 --- a/src/main/java/org/bdware/server/doip/ContractRepositoryHandler.java +++ b/src/main/java/org/bdware/server/doip/ContractRepositoryHandler.java @@ -103,6 +103,9 @@ public class ContractRepositoryHandler extends RepositoryHandlerBase implements if (digitalObject.attributes.has("contractExecType")) c.setType(ContractExecType.valueOf(digitalObject.attributes.get("contractExecType").getAsString())); else c.setType(ContractExecType.Sole); + if (digitalObject.attributes.has("shardingId")) + c.setType(ContractExecType.valueOf(digitalObject.attributes.get("shardingId").getAsString())); + else c.setShardingId(-1); c.setScript(path); c.setOwner(doipMessage.credential.getSigner()); if (digitalObject.attributes.has("createParam")) {