添加天梯排行榜,修复setHour有时差的bug

This commit is contained in:
luying
2020-11-06 17:31:23 +08:00
parent bd93d9dc1c
commit 04ecef03b5
29 changed files with 285 additions and 148 deletions
@@ -13,7 +13,7 @@ export async function roleLevelup(roleId: string, kingExp: number) {
for(let i = lv; i <= newLv; i++) {
let {sum, cur} = getExpByLv(i);
let lastSum = sum - cur;
console.log(sum, cur, lastSum, exp, newExp);
// console.log(sum, cur, lastSum, exp, newExp);
let startExp = exp > lastSum? exp - lastSum: 0;
let getExp = newExp > sum? cur - startExp: newExp - lastSum - startExp;