完成登录

This commit is contained in:
kuaifan
2021-05-31 19:52:18 +08:00
parent 0a75bacb9b
commit 3646554e73
9 changed files with 821 additions and 27 deletions

View File

@@ -2023,6 +2023,18 @@ class Base
) * 6380';
}
/**
* 获取每页数量
* @param $max
* @param $default
* @param string $inputName
* @return mixed
*/
public static function getPaginate($max, $default, $inputName = 'pagesize')
{
return Min(Max(Base::nullShow(Request::input($inputName), $default), 1), $max);
}
/**
* image64图片保存
* @param array $param [ image64=带前缀的base64, path=>文件路径, fileName=>文件名称, scale=>[压缩原图宽,高, 压缩方式] ]