Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
修复 蹲点收取逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
TKaxv-7S committed Jun 23, 2024
1 parent 77a1a86 commit 3d80bfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ private JSONObject collectUserEnergy(String userId) {
}
long end = System.currentTimeMillis();
long serverTime = userHomeObject.getLong("now");
offsetTime.set(Math.min((start + end) / 2 - serverTime, -3000));
offsetTime.set(Math.max((start + end) / 2 - serverTime, -3000));
Log.i("服务器时间:" + serverTime + ",本地与服务器时间差:" + offsetTime.get());
Thread.sleep(100L);
if (!"SUCCESS".equals(userHomeObject.getString("resultCode"))) {
Expand Down

0 comments on commit 3d80bfa

Please sign in to comment.