神像:修复无法强化bug

This commit is contained in:
luying
2021-06-09 17:15:15 +08:00
parent 7ed630f85e
commit 9b945b6d8c
4 changed files with 19 additions and 9 deletions
+2 -2
View File
@@ -168,8 +168,8 @@ export function shouldRefreshWeek(preTime: Date, now: Date, day: number = 1, hou
* @param cnt 返回随机元素个数
*/
export function getRandEelm<T>(source: Array<T> = [], cnt = 1): Array<T> {
if (cnt > source.length || cnt == 0) return [];
if (cnt === source.length) return source;
if (cnt == 0) return [];
if (cnt >= source.length) return source;
let idxs = new Set();
while (1) {