mirror of https://github.com/1099438829/apeblog
完善8.2的兼容性
This commit is contained in:
parent
deacf4b4b0
commit
362ea75c7a
|
|
@ -53,6 +53,7 @@ class Advert extends AuthController
|
|||
* @param Request $request
|
||||
* @return string
|
||||
* @throws FormBuilderException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function add(Request $request)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -121,9 +121,9 @@ trait ModelTrait
|
|||
* @param null $eachFn 处理结果函数
|
||||
* @param array $params 分页参数
|
||||
* @param int $limit 分页数
|
||||
* @return array
|
||||
* @return BaseQuery
|
||||
*/
|
||||
public static function page($model = null, $eachFn = null, $params = [], $limit = 20): array
|
||||
public static function page($model = null, $eachFn = null, $params = [], $limit = 20): BaseQuery|array|null
|
||||
{
|
||||
if (is_numeric($eachFn) && is_numeric($model)) {
|
||||
return parent::page($model, $eachFn);
|
||||
|
|
|
|||
Loading…
Reference in New Issue