This commit is contained in:
wong
2026-03-24 10:38:29 +08:00
parent 1853934d85
commit 29413f57c7
2 changed files with 12 additions and 2 deletions

View File

@@ -21,8 +21,8 @@ class PostCreateAddFriendPlanV1Controller extends BaseController
*/
public function generateApiKey()
{
// 生成5组随机字符串每组5个字符
$chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
// 生成5组随机字符串每组5个字符(包含大小写字母和数字)
$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
$apiKey = '';
for ($i = 0; $i < 5; $i++) {