From 8c30ad6506a25ddcf6549520b1fe11a4699162ce Mon Sep 17 00:00:00 2001 From: TomyJan Date: Sun, 7 Jul 2024 14:07:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=86=8D=E6=AC=A1=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E9=87=8D=E5=A4=8D=E6=8E=A8=E9=80=81=E4=BD=93?= =?UTF-8?q?=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/gameEnergy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/gameEnergy.js b/model/gameEnergy.js index 9450892..a7b24d1 100644 --- a/model/gameEnergy.js +++ b/model/gameEnergy.js @@ -347,6 +347,8 @@ export async function doEnergyPush( ) return false } + user.saveEnergyLastPushTime(uin, gameId, gameUid, Date.now()) + let pushMsg = apiDataIsFull ? `未知的游戏 ${gameId} UID ${gameUid} 的体力恢复啦 (${energy}/${energyMax}) ~` : `未知的游戏 ${gameId} UID ${gameUid} 的体力此时应已恢复, 但可能由于缓存问题接口返回未恢复 (${energy}/${energyMax}) ~` @@ -361,7 +363,5 @@ export async function doEnergyPush( await sendMsgFriend(uin, pushMsg) - await user.saveEnergyLastPushTime(uin, gameId, gameUid, Date.now()) - return true }