1.提交缺失的东西

This commit is contained in:
2025-05-15 15:48:31 +08:00
parent 4bbb96d217
commit 68e8a7cb16
4 changed files with 76 additions and 0 deletions

View File

@ -30,7 +30,26 @@ function create_token(string $extra = '') : string
$encryptSalt = md5( $salt . uniqid());
return md5($salt . $extra . time() . $encryptSalt);
}
/**
* User: 意象信息科技 cjh
* Desc: 返回是否有下一页
* @param $count 总记录数
* @param $page 当前页码
* @param $size 每页记录数
* @return int
*/
function is_more($count, $page, $size)
{
$more = 0;
$last_page = ceil($count / $size); //总页数、也是最后一页
if ($last_page && $last_page > $page) {
$more = 1;
}
return $more;
}
/**
* @notes 截取某字符字符串