mirror of
https://gitee.com/BDWare/cp.git
synced 2026-01-07 06:49:27 +00:00
fix: verifyOracleAndContractPermission
This commit is contained in:
@@ -427,7 +427,7 @@ public class ContractProcess {
|
||||
// 判断是否满足Oracle和Contact的执行要求
|
||||
public String verifyOracleAndContractPermission(Contract contract) {
|
||||
// 权限校验 如果是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!");
|
||||
return JsonUtil.toJson(
|
||||
new ContractResult(
|
||||
|
||||
Reference in New Issue
Block a user