gcx/frontend/genex-mobile/ios/Runner
hailin d68d48cb95 feat(auth): 微信登录 / 注册完整实现 — social_accounts + fluwx 全链路
后端:
- 新增 social_accounts 表 Entity/Repository/Migration (049)
- WechatProvider: code ↔ access_token / 获取用户信息 (native https)
- WechatService: unionid 优先查找 → 自动登录/注册 → 发布事件
- POST /auth/wechat 端点 (WechatLoginDto, referralCode 支持)
- auth.module.ts 注册 SocialAccount、WechatProvider、WechatService

Flutter (genex-mobile):
- pubspec.yaml: 添加 fluwx ^3.10.0
- main.dart: registerWxApi 初始化 (WECHAT_APP_ID via --dart-define)
- AuthService: loginByWechat(code, referralCode?, deviceInfo?)
- WelcomePage: 改为 StatefulWidget,监听 weChatResponseEventHandler
  微信按钮触发 sendWeChatAuth,授权成功后自动登录 → /main
  未安装微信 / 登录失败均有 SnackBar 提示
- 4语言 i18n: wechatNotInstalled / wechatLoginFailed

Android:
- AndroidManifest: WXEntryActivity + queries(com.tencent.mm)
- WXEntryActivity.kt: 继承 fluwx 提供的基类,无额外代码
- proguard-rules.pro: keep WeChat SDK 类

iOS:
- Info.plist: CFBundleURLTypes (wx${WECHAT_APP_ID}) + LSApplicationQueriesSchemes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 03:37:51 -08:00
..
Assets.xcassets fix(branding): 重新生成全平台图标 — 基于更新后的Logo SVG v2 2026-02-22 08:00:19 -08:00
Base.lproj feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
AppDelegate.swift feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
Info.plist feat(auth): 微信登录 / 注册完整实现 — social_accounts + fluwx 全链路 2026-03-04 03:37:51 -08:00
Runner-Bridging-Header.h feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00