This commit is contained in:
vastxie
2024-07-31 14:12:56 +08:00
parent dd0e1dafd5
commit c831009379
366 changed files with 1881 additions and 1540 deletions

View File

@@ -207,6 +207,11 @@ let UserService = class UserService {
userInfo.isBindWx = !!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.openId);
delete userInfo.openId;
const userBalance = await this.userBalanceService.queryUserBalance(userId);
const processedId = (userId * 123 + 100000000)
.toString(36)
.toUpperCase()
.slice(-6);
userInfo.id = processedId;
return { userInfo, userBalance: Object.assign({}, userBalance) };
}
async getUserById(id) {