diff --git a/plugin/think-plugs-account/src/service/contract/AccountAccess.php b/plugin/think-plugs-account/src/service/contract/AccountAccess.php index 2b036a71a..8f09b59ee 100644 --- a/plugin/think-plugs-account/src/service/contract/AccountAccess.php +++ b/plugin/think-plugs-account/src/service/contract/AccountAccess.php @@ -487,6 +487,6 @@ class AccountAccess implements AccountInterface */ private function userCode(): string { - return CodeExtend::uniqidNumber(16, 'U'); + return CodeExtend::uniqidNumber(12, 'U'); } } \ No newline at end of file diff --git a/plugin/think-plugs-payment/src/controller/Config.php b/plugin/think-plugs-payment/src/controller/Config.php index 8de5d96f1..4d69e9e35 100644 --- a/plugin/think-plugs-payment/src/controller/Config.php +++ b/plugin/think-plugs-payment/src/controller/Config.php @@ -81,7 +81,7 @@ class Config extends Controller protected function _form_filter(array &$data) { if (empty($data['code'])) { - $data['code'] = CodeExtend::uniqidNumber(16, 'M'); + $data['code'] = CodeExtend::uniqidNumber(12, 'M'); } if ($this->request->isGet()) { $data['content'] = $data['content'] ?? [];