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/controller/app/address.ts | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/modules/user/controller/app/address.ts b/src/modules/user/controller/app/address.ts
index ae3eba5..bcf018d 100644
--- a/src/modules/user/controller/app/address.ts
+++ b/src/modules/user/controller/app/address.ts
@@ -13,12 +13,12 @@
service: UserAddressService,
insertParam: ctx => {
return {
- userId: ctx.user.id,
+ userId: ctx.user.userId,
};
},
pageQueryOp: {
where: async ctx => {
- return [['userId =:userId', { userId: ctx.user.id }]];
+ return [['userId =:userId', { userId: ctx.user.userId }]];
},
addOrderBy: {
isDefault: 'DESC',
@@ -34,6 +34,8 @@
@Get('/default', { summary: '榛樿鍦板潃' })
async default() {
- return this.ok(await this.userAddressService.default(this.ctx.user.id));
+ return this.ok(
+ await this.userAddressService.default(this.ctx.user.userId)
+ );
}
}
--
Gitblit v1.9.1