Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
_site-res
system
Commits
2ab88f78
Commit
2ab88f78
authored
May 25, 2018
by
tufengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化代码
parent
a7f959fd
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
11 deletions
+6
-11
TCurlClient.php
classes/fpf/thrift/TCurlClient.php
+1
-1
TGuzzleClient.php
classes/fpf/thrift/TGuzzleClient.php
+1
-1
THttpClient.php
classes/fpf/thrift/THttpClient.php
+1
-1
ThriftAsyncDetailInstanse.php
classes/fpf/thrift/ThriftAsyncDetailInstanse.php
+2
-0
ThriftAsyncServiceFactoryProxy.php
classes/fpf/thrift/ThriftAsyncServiceFactoryProxy.php
+0
-5
ThriftServiceFactory.php
classes/fpf/thrift/ThriftServiceFactory.php
+1
-2
ThriftServiceFactoryProxy.php
classes/fpf/thrift/ThriftServiceFactoryProxy.php
+0
-1
No files found.
classes/fpf/thrift/TCurlClient.php
View file @
2ab88f78
...
...
@@ -101,7 +101,7 @@ class TCurlClient extends \Thrift\Transport\TTransport
*/
public
function
__construct
(
$host
,
$port
=
80
,
$uri_no_func
=
''
,
$scheme
=
'http'
)
{
if
((
TStringFuncFactory
::
create
()
->
strlen
(
$uri_no_func
)
>
0
)
&&
(
$uri_no_func
{
if
((
TStringFuncFactory
::
create
()
->
strlen
(
$uri_no_func
)
>
0
)
&&
(
$uri_no_func
{
0
}
!=
'/'
))
{
$uri_no_func
=
'/'
.
$uri_no_func
;
}
...
...
classes/fpf/thrift/TGuzzleClient.php
View file @
2ab88f78
...
...
@@ -103,7 +103,7 @@ class TGuzzleClient extends \Thrift\Transport\TTransport
*/
public
function
__construct
(
$host
,
$port
=
80
,
$uri_no_func
=
''
,
$scheme
=
'http'
)
{
if
((
TStringFuncFactory
::
create
()
->
strlen
(
$uri_no_func
)
>
0
)
&&
(
$uri_no_func
{
if
((
TStringFuncFactory
::
create
()
->
strlen
(
$uri_no_func
)
>
0
)
&&
(
$uri_no_func
{
0
}
!=
'/'
))
{
$uri_no_func
=
'/'
.
$uri_no_func
;
}
...
...
classes/fpf/thrift/THttpClient.php
View file @
2ab88f78
...
...
@@ -99,7 +99,7 @@ class THttpClient extends \Thrift\Transport\TTransport
*/
public
function
__construct
(
$host
,
$port
=
80
,
$uri_no_func
=
''
,
$scheme
=
'http'
)
{
if
((
TStringFuncFactory
::
create
()
->
strlen
(
$uri_no_func
)
>
0
)
&&
(
$uri_no_func
{
if
((
TStringFuncFactory
::
create
()
->
strlen
(
$uri_no_func
)
>
0
)
&&
(
$uri_no_func
{
0
}
!=
'/'
))
{
$uri_no_func
=
'/'
.
$uri_no_func
;
}
...
...
classes/fpf/thrift/ThriftAsyncDetailInstanse.php
View file @
2ab88f78
<?php
namespace
fpf\thrift
;
use
Thrift\Type\TMessageType
;
...
...
@@ -9,6 +10,7 @@ class ThriftAsyncDetailInstanse
private
$promise
=
null
;
private
$class_name
=
''
;
private
$func_name
=
''
;
public
function
__construct
(
$promise
,
$protocol
,
$class_name
,
$func_name
)
{
$this
->
promise
=
$promise
;
...
...
classes/fpf/thrift/ThriftAsyncServiceFactoryProxy.php
View file @
2ab88f78
...
...
@@ -14,14 +14,9 @@ use Thrift\Factory\TStringFuncFactory;
class
ThriftAsyncServiceFactoryProxy
{
private
$instance
=
null
;
private
$transport
=
null
;
private
$socket
=
null
;
private
$promise
=
null
;
private
$protocol_list
=
null
;
private
$request_base_params
=
null
;
private
$tem_class_name
=
''
;
private
$class_name
=
''
;
private
$func_name
=
''
;
const
BINARY
=
0
;
const
JSON
=
1
;
...
...
classes/fpf/thrift/ThriftServiceFactory.php
View file @
2ab88f78
...
...
@@ -2,8 +2,6 @@
namespace
fpf\thrift
;
use
fpf\thrift\ThriftAsyncServiceFactoryProxy
;
class
ThriftServiceFactory
{
...
...
@@ -18,6 +16,7 @@ class ThriftServiceFactory
self
::
$sync_services
[
$class_name
]
=
new
ThriftServiceFactoryProxy
(
$class_name
);
return
self
::
$sync_services
[
$class_name
];
}
public
static
function
getAsyncService
(
$class_name
)
{
if
(
!
empty
(
self
::
$async_services
[
$class_name
]))
{
...
...
classes/fpf/thrift/ThriftServiceFactoryProxy.php
View file @
2ab88f78
...
...
@@ -18,7 +18,6 @@ class ThriftServiceFactoryProxy
{
$service_default_protocol
=
Yii
::
$app
->
fpf
->
getConfig
(
'service_default_protocol'
,
'thrift_service'
);
$service_default_hosts
=
Yii
::
$app
->
fpf
->
getConfig
(
'service_default_hosts'
,
'thrift_service'
);
$service_default_failure_policy
=
Yii
::
$app
->
fpf
->
getConfig
(
'service_default_failure_policy'
,
'thrift_service'
);
$service_module_hosts
=
Yii
::
$app
->
fpf
->
getConfig
(
'service_module_hosts'
,
'thrift_service'
);
$check_ret
=
$this
->
checkService
(
$class_name
);
if
(
true
===
$check_ret
[
BaseConstant
::
ERROR
])
{
...
...
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