mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 20:48:09 +08:00
fix: 调整用户编号长度为12位
This commit is contained in:
parent
ce09f28b6e
commit
056ade708f
@ -487,6 +487,6 @@ class AccountAccess implements AccountInterface
|
|||||||
*/
|
*/
|
||||||
private function userCode(): string
|
private function userCode(): string
|
||||||
{
|
{
|
||||||
return CodeExtend::uniqidNumber(16, 'U');
|
return CodeExtend::uniqidNumber(12, 'U');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ class Config extends Controller
|
|||||||
protected function _form_filter(array &$data)
|
protected function _form_filter(array &$data)
|
||||||
{
|
{
|
||||||
if (empty($data['code'])) {
|
if (empty($data['code'])) {
|
||||||
$data['code'] = CodeExtend::uniqidNumber(16, 'M');
|
$data['code'] = CodeExtend::uniqidNumber(12, 'M');
|
||||||
}
|
}
|
||||||
if ($this->request->isGet()) {
|
if ($this->request->isGet()) {
|
||||||
$data['content'] = $data['content'] ?? [];
|
$data['content'] = $data['content'] ?? [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user