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
2d631213
Commit
2d631213
authored
Jun 28, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复服务端返回数据不是数组时报错的问题
parent
6e80b26e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Client.php
src/base/Client.php
+1
-1
No files found.
src/base/Client.php
View file @
2d631213
...
@@ -110,7 +110,7 @@ class Client
...
@@ -110,7 +110,7 @@ class Client
$data
=
@
json_decode
(
$response
,
true
);
$data
=
@
json_decode
(
$response
,
true
);
if
(
!
is_array
(
$data
)
)
{
if
(
json_last_error
()
!==
JSON_ERROR_NONE
)
{
throw
new
ClientException
(
'接口返回数据异常: '
.
$response
);
throw
new
ClientException
(
'接口返回数据异常: '
.
$response
);
}
}
...
...
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