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
51caac20
Commit
51caac20
authored
Jun 28, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 Server return 为 false 时未输出的问题
parent
83c6604c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
Server.php
src/base/Server.php
+6
-1
client_config_test.php
src/client_config_test.php
+25
-0
No files found.
src/base/Server.php
View file @
51caac20
...
@@ -96,7 +96,12 @@ class Server
...
@@ -96,7 +96,12 @@ class Server
$data
=
call_user_func_array
(
$callable
,
$params
);
$data
=
call_user_func_array
(
$callable
,
$params
);
return
$return
?
$data
:
null
;
if
(
$return
)
{
return
$data
;
}
else
{
header
(
'Content-Type: application/json; charset=utf-8'
);
echo
json_encode
(
$data
,
JSON_UNESCAPED_UNICODE
);
}
}
}
public
function
responseError
(
$message
)
public
function
responseError
(
$message
)
...
...
src/client_config_test.php
0 → 100644
View file @
51caac20
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/28
* Time: 16:46
*/
return
[
'ucenter'
=>
[
'apiUrl'
=>
'http://testsso.yunyamooc.com/api/server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'z1z7AZCWpbEkfWpak0dx'
],
'xue'
=>
[
'apiUrl'
=>
'http://test.yunyamooc.com/api'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'AwT3YKykIwkREb48C1w3'
],
'code'
=>
[
'apiUrl'
=>
'http://testserv.pp.cc/wxherr/site/api-server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'VBz7nU9qIeKUCjY89poG'
]
];
\ No newline at end of file
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