mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进Response类 支持扩展不同的输出类型 改进Model类 不同的模型采用不同的查询对象实例 修正Request类一处错误 助手函数view改进 直接返回Response类对象实例
This commit is contained in:
@@ -92,7 +92,7 @@ abstract class Rest
|
||||
*/
|
||||
protected function response($data, $type = '', $code = 200)
|
||||
{
|
||||
return Response::instance()->data($data)->type($type)->code($code);
|
||||
return Response::create($type)->data($data)->code($code);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user