神像:修复无法强化bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user