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/cs/controller/app/msg.ts |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/modules/cs/controller/app/msg.ts b/src/modules/cs/controller/app/msg.ts
index 9aea144..453322c 100644
--- a/src/modules/cs/controller/app/msg.ts
+++ b/src/modules/cs/controller/app/msg.ts
@@ -38,7 +38,7 @@
       },
     ],
     where: ctx => {
-      return [['d.userId = :userId', { userId: ctx.user?.id }]];
+      return [['d.userId = :userId', { userId: ctx.user?.userId }]];
     },
   },
 })
@@ -51,7 +51,9 @@
 
   @Get('/unreadCount', { summary: '鏈娑堟伅鏁�' })
   async unreadCount() {
-    return this.ok(await this.csMsgService.unreadCount(this.ctx.user?.id, 1));
+    return this.ok(
+      await this.csMsgService.unreadCount(this.ctx.user?.userId, 1)
+    );
   }
 
   @Post('/read', { summary: '鏍囪宸茶' })

--
Gitblit v1.9.1