From 0d90e20ec20f0aeee642756a7ebf9e8514174124 Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期一, 26 十月 2026 21:15:20 +0800
Subject: [PATCH] 微信小程序插件支持
---
src/modules/user/service/address.ts | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modules/user/service/address.ts b/src/modules/user/service/address.ts
index a478640..d676bab 100644
--- a/src/modules/user/service/address.ts
+++ b/src/modules/user/service/address.ts
@@ -27,7 +27,7 @@
async list() {
return this.userAddressEntity
.createQueryBuilder()
- .where('userId = :userId ', { userId: this.ctx.user.id })
+ .where('userId = :userId ', { userId: this.ctx.user.userId })
.addOrderBy('isDefault', 'DESC')
.getMany();
}
@@ -44,7 +44,7 @@
.createQueryBuilder()
.update()
.set({ isDefault: false })
- .where('userId = :userId ', { userId: this.ctx.user.id })
+ .where('userId = :userId ', { userId: this.ctx.user.userId })
.andWhere('id != :id', { id: data.id })
.execute();
}
--
Gitblit v1.9.1