mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
fix: verifyOracleAndContractPermission
This commit is contained in:
parent
62679528e4
commit
8db5c8e2d7
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user