mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
rest控制器扩展response方法调整
This commit is contained in:
@@ -93,7 +93,7 @@ abstract class Rest
|
||||
protected function response($data, $type = '', $code = 200)
|
||||
{
|
||||
Response::sendHttpStatus($code);
|
||||
Response::returnData($data, strtolower($type));
|
||||
return Response::returnData($data, $type, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -131,7 +131,7 @@ abstract class Rest
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user