mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正Response类
This commit is contained in:
@@ -48,7 +48,7 @@ class Response
|
||||
* @param string $type 输出类型
|
||||
* @param array $options 输出参数
|
||||
*/
|
||||
public function __construct($data = [], $type = '', $options = [])
|
||||
public function __construct($data = '', $type = '', $options = [])
|
||||
{
|
||||
$this->data = $data;
|
||||
$this->type = empty($type) ? 'null' : strtolower($type);
|
||||
@@ -72,7 +72,7 @@ class Response
|
||||
* @param array $options 输出参数
|
||||
* @return Response
|
||||
*/
|
||||
public static function create($data = [], $type = '', $options = [])
|
||||
public static function create($data = '', $type = '', $options = [])
|
||||
{
|
||||
$type = empty($type) ? 'null' : strtolower($type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user