This commit is contained in:
aozhiwei 2022-09-21 15:55:07 +08:00
parent 7aa8729bbe
commit aed93cef4f

View File

@ -26,18 +26,18 @@ class Fragment {
const hourSeconds = utils.getHourSeconds(nowTime, constant.TIME_ZONE);
const {err, conn} = await app.getDbConn("GameDb1");
if (!err && conn) {
const allocedFragments = await this.fetchAllocedFragments(conn);
const allocedFragments = await this.fetchAllocedFragments(conn, daySeconds);
}
} catch (err) {
}
}
async fetchAllocedFragments(conn) {
async fetchAllocedFragments(conn, daySeconds) {
const {err, rows} = await conn.execQuery(
'SELECT * FROM t_fragment_pool WHERE alloc_time >= ? AND alloc_time <= ?',
[
daySeconds
]
);
if (err) {