fix: verifyOracleAndContractPermission

This commit is contained in:
WangXuxin 2022-03-22 20:35:47 +08:00
parent 62679528e4
commit 8db5c8e2d7

View File

@ -427,7 +427,7 @@ public class ContractProcess {
// 判断是否满足Oracle和Contact的执行要求 // 判断是否满足Oracle和Contact的执行要求
public String verifyOracleAndContractPermission(Contract contract) { public String verifyOracleAndContractPermission(Contract contract) {
// 权限校验 如果是Oracle 启动方式只能是Sole 否则报错 // 权限校验 如果是Oracle 启动方式只能是Sole 否则报错
if (cn.getYjsType() == YjsType.Oracle && contract.getType() != ContractExecType.Sole) { if (cn.getYjsType() == YjsType.Oracle && contract.getType() != ContractExecType.Sole && contract.getType() != ContractExecType.Sharding) {
LOGGER.info("Oracle only support Sole ContractType!"); LOGGER.info("Oracle only support Sole ContractType!");
return JsonUtil.toJson( return JsonUtil.toJson(
new ContractResult( new ContractResult(