repchain2.0-update62:修改问题。

This commit is contained in:
jiangbuyun 2022-06-14 15:35:37 +08:00
parent 13509e13ad
commit 503995527b
2 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ system {
#chain_cert_name_jks = "951002007l78123233.super_admin"
genesis_node_name = "121000005l35120456.node1"
chain_cert_name = "#951002007l78123233.super_admin"
chain_cert_name = "identity-net:951002007l78123233.super_admin"
chain_network_id = "identity-net" #组网id组网id的命名不能包含"_"这样的字符
basic_chain_id = "identity-net"
#api是否开启

View File

@ -174,11 +174,11 @@ class PermissionVerify(ctx: RepChainSystemContext) {
}*/
try {
if (!CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, opName = s"${ctx.getConfig.getChainNetworkId}${IdTool.DIDPrefixSeparator}*${IdTool.NameSpaceSeparator}deploy", dbInstance)) {
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + "${IdTool.NameSpaceSeparator}deploy", dbInstance)
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + s"${IdTool.NameSpaceSeparator}deploy", dbInstance)
}
} catch {
case e: SandboxException =>
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + "${IdTool.NameSpaceSeparator}deploy", dbInstance)
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + s"${IdTool.NameSpaceSeparator}deploy", dbInstance)
}
r
@ -190,11 +190,11 @@ class PermissionVerify(ctx: RepChainSystemContext) {
val dbInstance = ctx.getBlockPreload(doTrans.da)
try {
if (!CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, opName = s"${ctx.getConfig.getChainNetworkId}${IdTool.DIDPrefixSeparator}*${IdTool.NameSpaceSeparator}setState", dbInstance)) {
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + "${IdTool.NameSpaceSeparator}setState", dbInstance)
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + s"${IdTool.NameSpaceSeparator}setState", dbInstance)
}
} catch {
case e: SandboxException =>
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + "${IdTool.NameSpaceSeparator}setState", dbInstance)
r = CheckPermissionOfCertId(doTrans.t.signature.get.certId.get, ctx.getConfig.getChainNetworkId+IdTool.DIDPrefixSeparator+cid.chaincodeName + s"${IdTool.NameSpaceSeparator}setState", dbInstance)
}
r
}