|
@@ -167,7 +167,7 @@ class Api
|
|
* @param string $type 输出类型
|
|
* @param string $type 输出类型
|
|
* @param array $header 发送的 Header 信息
|
|
* @param array $header 发送的 Header 信息
|
|
*/
|
|
*/
|
|
- protected function success($msg = '', $data = null, $code = 1, $type = null, array $header = [])
|
|
|
|
|
|
+ protected function success($msg = '', $data = null, $code = 200, $type = null, array $header = [])
|
|
{
|
|
{
|
|
$this->result($msg, $data, $code, $type, $header);
|
|
$this->result($msg, $data, $code, $type, $header);
|
|
}
|
|
}
|