Commit Graph

57 Commits

Author SHA1 Message Date
xiezhouwei 53898ad22b chore: remove $ symbol from wallet management page
- Replace $ with USD or empty in amount display
- Remove $ after Coins icon in preset amount cards
- Replace (1 $ =) with (1 USD =) in exchange rate hint
- Update renderTopUpCountInUSD to return value without $ prefix
- Keep EUR symbol unchanged
2026-06-11 11:58:41 +08:00
xiezhouwei d7fdbb4e18 feat: add supplierApply permission toggle for providing compute button
- Add supplierApply module to console area in role-menu-permission config
- Add supplierApply to DEFAULT_SIDEBAR_CONFIG in useSidebar hook
- Update HeaderLogo to check sidebar module config before showing the button
- Update MobileSiteNavDropdown to check same permission for mobile entry
- Default value is enabled (backward compatible)
2026-06-11 11:37:48 +08:00
xiezhouwei 82016579db fix(payment): resolve payment settings save logic and enable persistence
- Fix Bug 1: Always save all provider-specific fields regardless of
  currently selected provider in dropdown, preventing data loss when
  switching between Alipay/WeChat/ePay/Yipay configurations
- Fix Bug 2: Add EpayEnabled/YipayEnabled backend Go variables and
  OptionMap entries so enable/disable checkboxes persist across page
  reloads
- Fix white screen crash by wrapping orphan Col elements in proper Row
- Add EpayEnabled/YipayEnabled to PaymentSetting.jsx initial state
- Remove duplicate payment card imports for Stripe/Creem/Waffo/Alipay/Wechat
2026-06-09 14:35:37 +08:00
xiezhouwei 6fc114ec32 feat: add Alipay and WeChat Pay payment gateway support
- Add Alipay payment backend: RSA2 signing/verification, async notify, sync return
- Add WeChat Pay backend: APIv3 signing, AES-GCM decryption, H5 pay, async notify
- Add payment setting UI components for Alipay and WeChat Pay
- Register config keys (24 items) in OptionMap for both gateways
- Add API routes: /api/user/alipay/pay, /api/user/wechatpay/pay,
  /api/alipay/notify, /api/alipay/return, /api/wechatpay/notify
- Add enable_alipay_topup/enable_wechatpay_topup to /api/status endpoint
- Add i18n translations for all new UI strings (11 locales)
- Fix: data is not defined ReferenceError in topup/index.jsx useEffect
- Fix: unused imports in controller/topup_wechat.go
- Update .gitignore for build artifacts
2026-06-08 09:01:33 +08:00
xiezhouwei b63f75ade4 feat: add captcha verification for login form
- Add /api/captcha endpoint with captcha generation/verification service
- Add captcha_enabled option in system settings (model/option.go)
- Add captcha display and refresh logic in LoginForm
- Fix captcha not showing on Chrome due to Semi UI Form.Input suffix
  incompatibility; refactored to standalone flex layout
- Fix stale localStorage cache preventing captcha rendering on first visit
  by proactively fetching /api/status on LoginForm mount
- Add captcha_enabled toggle in admin SystemSetting panel
- Add i18n keys for captcha-related text (zh-CN, en)
2026-06-05 13:57:13 +08:00
xiezhouwei aa1c9559c3 feat: 操作日志功能实现及字段级diff优化
- 新增操作日志完整功能: model/service/controller/middleware + 前端页面
- 用户管理 UpdateUser/ManageUser 改为字段级 diff,仅记录实际变更字段
- 模型定价 UpdateOption 改为模型粒度 diff,仅记录变更的模型条目
- 防止中间件与 controller 重复记录操作日志
- 修复前端侧边栏操作日志模块可见性及权限配置合并
2026-06-04 15:17:59 +08:00
xiezhouwei ccd7d1f4c2 Initial commit 2026-06-03 10:01:10 +08:00