模拟数据:每日推荐

This commit is contained in:
chen wei bo
2025-09-02 15:08:06 +08:00
parent 4e18e56cf9
commit 4945bcb66f
8 changed files with 78 additions and 24 deletions
@@ -25,6 +25,20 @@ export class GirlConfig extends BaseConfig {
return ConfigManager.tables.TbGirls;
}
/**
* 获取所有配置 id,如果存在
*/
public getAllId(): any | null {
let allData = this.getAllConfig();
if (!allData) return null;
const dataArr = allData.getDataList();
let allId = [];
for (let oneData of dataArr) {
allId.push(oneData.id);
}
return allId;
}
/**
* 获取配置,根据 id
*/