修复一堆错误

This commit is contained in:
undefined committed 2020-06-20 13:32:53 +08:00
1 parent 2d3cee7753
commit b5e3b81c17
23 files changed
+120 -159

No files matched your search

+1 -3
View File
@@ -1,8 +1,6 @@
const { hasIn } = require("lodash");
const dict = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
String.random = function random(digit) {
String.random = function random(digit = 32) {
let str = '';
for (let i = 1; i <= digit; i++) str += dict[Math.floor(Math.random() * 62)];
return str;