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/login.ts |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/modules/user/controller/app/login.ts b/src/modules/user/controller/app/login.ts
index 3f76431..4b26801 100644
--- a/src/modules/user/controller/app/login.ts
+++ b/src/modules/user/controller/app/login.ts
@@ -59,15 +59,21 @@
   }
 
   @CoolTag(TagTypes.IGNORE_TOKEN)
-  @Post('/miniPhone', { summary: '缁戝畾灏忕▼搴忔墜鏈哄彿' })
+  @Post('/miniPhone', { summary: '灏忕▼搴忔墜鏈哄彿鎺堟潈鐧诲綍' })
   async miniPhone(@Body() body) {
-    const { code, encryptedData, iv } = body;
+    const { code, encryptedData, iv, loginCode } = body;
     return this.ok(
-      await this.userLoginService.miniPhone(code, encryptedData, iv)
+      await this.userLoginService.miniPhone(code, encryptedData, iv, loginCode)
     );
   }
 
   @CoolTag(TagTypes.IGNORE_TOKEN)
+  @Post('/miniAuto', { summary: '灏忕▼搴忛潤榛樼櫥褰�' })
+  async miniAuto(@Body('code') code: string) {
+    return this.ok(await this.userLoginService.miniAuto(code));
+  }
+
+  @CoolTag(TagTypes.IGNORE_TOKEN)
   @Get('/captcha', { summary: '鍥剧墖楠岃瘉鐮�' })
   async captcha(
     @Query('width') width: number,

--
Gitblit v1.9.1