Commit 7f432c59 by xmy

Merge remote-tracking branch 'origin/master'

parents 76d2dc16 1a30adba
...@@ -21,6 +21,14 @@ use Swoft\Pool\PoolProperties; ...@@ -21,6 +21,14 @@ use Swoft\Pool\PoolProperties;
*/ */
class AuthPoolConfig extends PoolProperties class AuthPoolConfig extends PoolProperties
{ {
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', 'auth:8099'));
}
/** /**
* the name of pool * the name of pool
* *
......
...@@ -21,6 +21,13 @@ use Swoft\Pool\PoolProperties; ...@@ -21,6 +21,13 @@ use Swoft\Pool\PoolProperties;
*/ */
class BuyerPoolConfig extends PoolProperties class BuyerPoolConfig extends PoolProperties
{ {
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', 'buyer:8099'));
}
/** /**
* the name of pool * the name of pool
* *
...@@ -75,8 +82,7 @@ class BuyerPoolConfig extends PoolProperties ...@@ -75,8 +82,7 @@ class BuyerPoolConfig extends PoolProperties
* *
*/ */
protected $uri = [ protected $uri = [
"172.21.0.12:8099", "buyer:8099",
"172.16.255.33:8099"
]; ];
/** /**
......
...@@ -19,6 +19,12 @@ use Swoft\Pool\PoolProperties; ...@@ -19,6 +19,12 @@ use Swoft\Pool\PoolProperties;
*/ */
class OrderPoolConfig extends PoolProperties class OrderPoolConfig extends PoolProperties
{ {
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', 'order:8099'));
}
protected $name = 'order'; protected $name = 'order';
...@@ -77,8 +83,7 @@ class OrderPoolConfig extends PoolProperties ...@@ -77,8 +83,7 @@ class OrderPoolConfig extends PoolProperties
* @var array * @var array
*/ */
protected $uri = [ protected $uri = [
'172.21.0.20:8099', 'order:8099',
'172.16.255.2:8099',
]; ];
/** /**
......
...@@ -21,6 +21,12 @@ use Swoft\Pool\PoolProperties; ...@@ -21,6 +21,12 @@ use Swoft\Pool\PoolProperties;
*/ */
class PayPoolConfig extends PoolProperties class PayPoolConfig extends PoolProperties
{ {
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', 'pay:8099'));
}
/** /**
* the name of pool * the name of pool
* *
...@@ -75,8 +81,7 @@ class PayPoolConfig extends PoolProperties ...@@ -75,8 +81,7 @@ class PayPoolConfig extends PoolProperties
* *
*/ */
protected $uri = [ protected $uri = [
"172.21.0.39:8099", "pay:8099",
"172.16.255.167:8099"
]; ];
/** /**
......
...@@ -23,7 +23,7 @@ class ReservationPoolConfig extends PoolProperties ...@@ -23,7 +23,7 @@ class ReservationPoolConfig extends PoolProperties
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_RESERVATION_URI', '172.21.0.11:8099,172.16.255.6:8099')); $this->uri = explode(',', env('RPC_RESERVATION_URI', 'reservation:8099'));
} }
protected $name = 'reservation'; protected $name = 'reservation';
......
...@@ -23,7 +23,7 @@ class SchedulePoolConfig extends PoolProperties ...@@ -23,7 +23,7 @@ class SchedulePoolConfig extends PoolProperties
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_SCHEDULE_URI', '172.21.0.23:8099,172.16.255.197:8099')); $this->uri = explode(',', env('RPC_SCHEDULE_URI', 'schedule:8099'));
} }
protected $name = 'schedule'; protected $name = 'schedule';
......
...@@ -23,7 +23,7 @@ class StorePoolConfig extends PoolProperties ...@@ -23,7 +23,7 @@ class StorePoolConfig extends PoolProperties
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_STORE_URI', '172.21.0.44:8099,172.16.255.190:8099')); $this->uri = explode(',', env('RPC_STORE_URI', 'store:8099'));
} }
protected $name = 'storeId'; protected $name = 'storeId';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment