diff --git a/cms/src/main/resources/application.yml b/cms/src/main/resources/application.yml index a7b9136f..6a007397 100644 --- a/cms/src/main/resources/application.yml +++ b/cms/src/main/resources/application.yml @@ -63,4 +63,6 @@ dubbo: file: ${user.home}/dubbo-cache/${spring.application.name}/dubbo.cache consumer: check: false + retries: 0 + timeout: 24000 diff --git a/fsagent/src/main/resources/application.properties b/fsagent/src/main/resources/application.properties index f2d273a1..596798d4 100644 --- a/fsagent/src/main/resources/application.properties +++ b/fsagent/src/main/resources/application.properties @@ -44,6 +44,8 @@ dubbo.application.qos-accept-foreign-ip=false ## Dubbo Registry dubbo.registry.address=zookeeper://localhost:2181 dubbo.registry.file=${user.home}/dubbo-cache/${spring.application.name}/dubbo.cache +dubbo.provider.timeout=24000 +dubbo.provider.retries=0 # Service Version yo.fsagent.dubbo.service.version=1.0.0 diff --git a/openapi/src/main/java/com/pudonghot/yo/openapi/controller/CallController.java b/openapi/src/main/java/com/pudonghot/yo/openapi/controller/CallController.java index c8838bd4..22370091 100644 --- a/openapi/src/main/java/com/pudonghot/yo/openapi/controller/CallController.java +++ b/openapi/src/main/java/com/pudonghot/yo/openapi/controller/CallController.java @@ -118,8 +118,8 @@ public class CallController implements SessionAbility { // 过去2天未接通过 // 当日拨打不超过2次 // 当日拨打间隔为4小时 - // AssertUtils.state(callDetailRecordMapper.calledNumberCanDial( - // tenantId, calledNumber), ErrorCode.DIAL_EXCEED); + AssertUtils.state(callDetailRecordMapper.calledNumberCanDial( + tenantId, calledNumber), ErrorCode.DIAL_EXCEED); return doDial(account, calledNumber); } diff --git a/openapi/src/main/resources/application.properties b/openapi/src/main/resources/application.properties index 212d2b1b..9ea13b5e 100644 --- a/openapi/src/main/resources/application.properties +++ b/openapi/src/main/resources/application.properties @@ -35,5 +35,7 @@ yo.openapi.ivr-transfer.satisfaction=satisfaction ## Dubbo Registry dubbo.registry.address=zookeeper://localhost:2181 dubbo.registry.file=${user.home}/dubbo-cache/${spring.application.name}/dubbo.cache +dubbo.consumer.timeout=24000 +dubbo.consumer.retries=0 yo.fsagent.dubbo.service.version=1.0.0