Commit 51caac20 authored by 杨培's avatar 杨培

修复 Server return 为 false 时未输出的问题

parent 83c6604c
......@@ -96,7 +96,12 @@ class Server
$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)
......
<?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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment