Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
7f432c59
Commit
7f432c59
authored
Aug 21, 2018
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
76d2dc16
1a30adba
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
9 deletions
+33
-9
src/Common/Pool/Config/AuthPoolConfig.php
+8
-0
src/Common/Pool/Config/BuyerPoolConfig.php
+8
-2
src/Common/Pool/Config/OrderPoolConfig.php
+7
-2
src/Common/Pool/Config/PayPoolConfig.php
+7
-2
src/Common/Pool/Config/ReservationPoolConfig.php
+1
-1
src/Common/Pool/Config/SchedulePoolConfig.php
+1
-1
src/Common/Pool/Config/StorePoolConfig.php
+1
-1
No files found.
src/Common/Pool/Config/AuthPoolConfig.php
View file @
7f432c59
...
@@ -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
*
*
...
...
src/Common/Pool/Config/BuyerPoolConfig.php
View file @
7f432c59
...
@@ -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"
];
];
/**
/**
...
...
src/Common/Pool/Config/OrderPoolConfig.php
View file @
7f432c59
...
@@ -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'
,
];
];
/**
/**
...
...
src/Common/Pool/Config/PayPoolConfig.php
View file @
7f432c59
...
@@ -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"
];
];
/**
/**
...
...
src/Common/Pool/Config/ReservationPoolConfig.php
View file @
7f432c59
...
@@ -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'
;
...
...
src/Common/Pool/Config/SchedulePoolConfig.php
View file @
7f432c59
...
@@ -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'
;
...
...
src/Common/Pool/Config/StorePoolConfig.php
View file @
7f432c59
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment