Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
36f8f41a
Commit
36f8f41a
authored
Jun 28, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释
parent
2d631213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Client.php
src/base/Client.php
+10
-3
No files found.
src/base/Client.php
View file @
36f8f41a
...
@@ -8,7 +8,14 @@
...
@@ -8,7 +8,14 @@
namespace
internalApi\base
;
namespace
internalApi\base
;
/**
* 客户端基类
*
* 提供客户端调用实现
* 本类分静态方法与动态类的区别,动态类最终内部每个接口集会有一个实例用于请求,而静态则提供全局协调和接口调用方法
*
* @package internalApi\base
*/
class
Client
class
Client
{
{
...
@@ -88,8 +95,8 @@ class Client
...
@@ -88,8 +95,8 @@ class Client
*
*
* @param string $api
* @param string $api
* @param array $params
* @param array $params
* @return
array
* @return
mixed
* @throws ClientException
* @throws ClientException
API 请求失败时,会抛出此异常
*/
*/
protected
static
function
call
(
$api
,
$params
=
[])
protected
static
function
call
(
$api
,
$params
=
[])
{
{
...
...
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