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/goods/controller/app/comment.ts | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modules/goods/controller/app/comment.ts b/src/modules/goods/controller/app/comment.ts
index 521c871..8e9cc64 100644
--- a/src/modules/goods/controller/app/comment.ts
+++ b/src/modules/goods/controller/app/comment.ts
@@ -21,7 +21,7 @@
entity: GoodsCommentEntity,
insertParam: ctx => {
return {
- userId: ctx.user.id,
+ userId: ctx.user.userId,
};
},
pageQueryOp: {
@@ -49,7 +49,7 @@
@Body('orderId') orderId: number
) {
return this.ok(
- await this.goodsCommentService.submit(this.ctx.user.id, orderId, data)
+ await this.goodsCommentService.submit(this.ctx.user.userId, orderId, data)
);
}
}
--
Gitblit v1.9.1