From 389a295e748177aa86956a49325b4545462e8b47 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 21 Sep 2022 21:25:23 +0800 Subject: [PATCH] 1 --- server/game2006service/tasks/fragment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/game2006service/tasks/fragment.js b/server/game2006service/tasks/fragment.js index 211009bb..f9f229fa 100644 --- a/server/game2006service/tasks/fragment.js +++ b/server/game2006service/tasks/fragment.js @@ -41,7 +41,7 @@ class Fragment { const isAlloced = await this.isAlloced(conn, daySeconds, nowTime, hourSeconds); if (!isAlloced) { const allocedFragments = await this.fetchAllocedFragments(conn, daySeconds, nowTime); - await this.realloc(conn, daySeconds, hourSeconds, nowTime, allocedFragments); + await this.realloc(conn, daySeconds, nowTime, hourSeconds, allocedFragments); } } } catch (err) { @@ -176,7 +176,7 @@ class Fragment { ['fragment_type', this.getFragementType(element['type'])], ['fragment_num', element['item_num']], ['alloc_num', element['item_num']], - ['alloc_time', hourSeconds], + ['alloc_time', daySeconds + hourSeconds], ['createtime', nowTime], ['modifytime', nowTime], ]