hejianhao
2025-01-10 e6eb5dccecce12a0b6dacf21c8fa2904c896dbaa
1
2
3
4
5
6
7
8
9
10
 
 
export function generateVerificationCode() {
  const characters = '123456789abcdefghijkmnpqrstuvwxyABCDEFGHJKLMNPQRSTUVWXY';
  let code = '';
  for (let i = 0; i < 4; i++) {
    code += characters.charAt(Math.floor(Math.random() * characters.length));
  }
  return code;
}