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/app/controller/app/feedback.ts | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/modules/app/controller/app/feedback.ts b/src/modules/app/controller/app/feedback.ts
index 17f4805..e4d2140 100644
--- a/src/modules/app/controller/app/feedback.ts
+++ b/src/modules/app/controller/app/feedback.ts
@@ -11,13 +11,13 @@
entity: AppFeedbackEntity,
insertParam: ctx => {
return {
- userId: ctx.user.id,
+ userId: ctx.user.userId,
};
},
pageQueryOp: {
fieldEq: ['a.type'],
where: ctx => {
- const userId = ctx.user.id;
+ const userId = ctx.user.userId;
return [['a.userId = :userId', { userId }]];
},
},
@@ -31,7 +31,7 @@
@Post('/submit', { summary: '鎻愪氦鎰忚鍙嶉' })
async submit(@Body() info) {
- info.userId = this.ctx.user.id;
+ info.userId = this.ctx.user.userId;
await this.appFeedbackService.submit(info);
return this.ok();
}
--
Gitblit v1.9.1