Commit Graph

116 Commits

Author SHA1 Message Date
495e021c83 Merge branch 'master' of http://192.168.195.14:3000/outsource/xiangyixiangqin
All checks were successful
continuous-integration/drone/push Build is passing
2026-04-06 14:51:05 +08:00
b4d2fb4068 UI修改 2026-04-06 14:51:02 +08:00
zpc
10b551ed6b feat(wechat): Enhance subscription message sending with improved error handling and logging
All checks were successful
continuous-integration/drone/push Build is passing
- Update notification templates to include action context in user nicknames (unlock, favorite, message, reminder)
- Refactor subscription message request to use manual HttpRequestMessage for better control
- Add empty response validation with specific warning log
- Enhance error logging to include ToUser identifier for better diagnostics
- Improve exception handling with ToUser context in error logs
- These changes provide better visibility into subscription message failures and clearer user action context in notifications
2026-04-01 14:58:22 +08:00
zpc
b63139b5ae 21
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-29 22:05:51 +08:00
zpc
e9bdf2623a 123
Some checks are pending
continuous-integration/drone/push Build is running
2026-03-29 22:03:15 +08:00
zpc
55d36ffd8e 21
Some checks are pending
continuous-integration/drone/push Build is running
2026-03-29 21:58:59 +08:00
zpc
5db16f9a30 2121
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-29 21:46:40 +08:00
zpc
bcff4b759c feat(wechat): Add default template data builder for notification templates
All checks were successful
continuous-integration/drone/push Build is passing
- Add BuildDefaultTemplateData method to construct fallback template data
- Map notification fields to WeChat template placeholders (first, keyword1-3, remark)
- Provide default template structure when database field mapping is not configured
- Ensures template messages can be sent with sensible defaults as safety net
2026-03-29 21:39:20 +08:00
zpc
b1daa6c6c8 21
Some checks are pending
continuous-integration/drone/push Build is running
2026-03-29 21:36:21 +08:00
zpc
3764b6ef57 feat(wechat): Add template field mapping configuration for notification templates
All checks were successful
continuous-integration/drone/push Build is passing
- Add field mapping properties to NotificationTemplatesConfig interface for unlock, favorite, message, and daily recommend templates
- Add UI form fields in system config view for configuring JSON-based field mappings with helper text
- Implement dynamic template data construction using configured field mappings in NotificationService
- Add fallback to traditional first/keyword format when field mapping is not configured
- Support flexible field mapping with value types: title, name, content, time, remark
- Update SystemConfigService to persist and retrieve field mapping configurations
- Enable backend-driven template field customization without code changes
2026-03-29 21:22:01 +08:00
zpc
125ff21b77 feat(wechat): Enforce HTTP/1.1 protocol and improve template message request handling
All checks were successful
continuous-integration/drone/push Build is passing
- Set HTTP client to use HTTP/1.1 with exact version policy for WeChat API compatibility
- Replace PostAsJsonAsync with manual HttpRequestMessage construction for better control
- Add User-Agent and Accept headers to template message requests
- Use StringContent with explicit UTF-8 encoding for JSON serialization
- Update error logging to include request body and remove sensitive app secret from logs
- Improve diagnostic information for template message failures
2026-03-29 21:09:26 +08:00
zpc
df9a1d40c9 feat(wechat): Enhance template message error logging with app secret and full access token
All checks were successful
continuous-integration/drone/push Build is passing
- Add AppSecret to template message failure logging for better diagnostics
- Include full access token in logs instead of truncated version for complete debugging context
- Improve error visibility by logging complete credentials information when template message sending fails
2026-03-29 21:01:35 +08:00
zpc
e5f398e437 feat(wechat): Add response headers logging to template message error diagnostics
Some checks are pending
continuous-integration/drone/push Build is running
- Include response headers in diagnostic logging when template message send fails
- Extract headers as formatted key-value pairs for better error visibility
- Update log message to include Headers parameter alongside existing diagnostics
- Improves troubleshooting capability by capturing full HTTP response metadata
2026-03-29 20:59:23 +08:00
zpc
9be72eb106 feat(wechat): Add access token refresh control and improve template message error handling
All checks were successful
continuous-integration/drone/push Build is passing
- Add forceRefresh parameter to GetServiceAccountAccessTokenAsync for cache bypass capability
- Implement automatic token refresh retry logic for HTTP 412 and token expiration error codes (40001, 42001)
- Extract SendServiceAccountTemplateMessageAsync into internal method to support retry mechanism
- Enhance logging with contextual parameters (AppId, ToUser, TemplateId, AccessToken prefix) for better diagnostics
- Add conditional logging for failed requests with full diagnostic information
- Improve error handling to distinguish between token expiration scenarios and other failures
- Add informational logging when requesting new access tokens
2026-03-29 20:51:06 +08:00
zpc
e34d90886d feat(wechat): Enhance template message logging with status code and request body
All checks were successful
continuous-integration/drone/push Build is passing
- Add HTTP status code to template message response logging for better debugging
- Include serialized request body in logs to facilitate troubleshooting
- Improve observability of WeChat service account template message operations
2026-03-29 20:43:26 +08:00
zpc
a74eee4dc8 feat(wechat): Improve template message response handling with logging
All checks were successful
continuous-integration/drone/push Build is passing
- Add response content logging for debugging template message sends
- Handle empty response cases with explicit null check and warning log
- Replace ReadFromJsonAsync with manual deserialization for better error visibility
- Ensure service account template messages are properly validated before processing
2026-03-29 20:37:30 +08:00
zpc
3c53cddd0b feat(wechat): Integrate service account user info API for UnionId retrieval
All checks were successful
continuous-integration/drone/push Build is passing
- Add IWeChatService dependency injection to WeChatEventController
- Implement GetServiceAccountUserInfoAsync method to fetch user info including UnionId from WeChat API
- Add ServiceAccountUserInfo DTO class with Subscribe, OpenId, and UnionId properties
- Refactor follow event handler to use WeChat API for UnionId instead of XML parsing
- Add validation to ensure UnionId is retrieved before attempting user association
- Update notification URLs in appsettings.json to remove redundant path segment
- Improve error logging when UnionId retrieval fails or user association is not found
2026-03-29 20:23:54 +08:00
zpc
4af5ae8065 feat(wechat): Add WeChat official account token and encryption key configuration
All checks were successful
continuous-integration/drone/push Build is passing
- Add token and encodingAESKey fields to NotificationTemplatesConfig interface
- Add UI form inputs for WeChat token and EncodingAESKey in system config page
- Add configuration constants SaTokenKey and SaEncodingAesKeyKey to SystemConfigService
- Update WeChatEventController to fetch token from database instead of hardcoded value
- Make CheckSignature method async and retrieve token from ISystemConfigService
- Update GetNotificationTemplates to include token and encodingAESKey from config
- Update SetNotificationTemplates to persist token and encodingAESKey to database
- Update mini app manifest with new appid
- Enables dynamic WeChat server configuration without code changes
2026-03-29 20:03:12 +08:00
zpc
600eeead70 chore(deploy): Configure nginx reverse proxy and docker network
All checks were successful
continuous-integration/drone/push Build is passing
- Update admin API base URL to use nginx reverse proxy path (/api)
- Add nginx reverse proxy configuration for admin-api service with proper headers and timeouts
- Add all services to xyqj-network for internal container communication
- Reorder app-api volume mounts for consistency
- Create bridge network for service-to-service communication in docker-compose
2026-03-29 19:31:36 +08:00
zpc
e4e4fb774e 修改web路径
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-29 19:26:34 +08:00
zpc
b55b56c9cb Add notification template configuration management
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-29 01:11:22 +08:00
zpc
ecccecfd83 Update Dockerfiles to use custom image registry for Node and .NET base images
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-29 00:11:13 +08:00
526bd57d5f 分享 2026-03-27 21:27:43 +08:00
e7345b75cd 资料 2026-03-25 17:35:44 +08:00
7210dcfa5f 字号调整 2026-03-22 17:30:44 +08:00
d18eec529f 删除 2026-03-20 15:48:11 +08:00
83785dc20c 展示页面 2026-03-09 17:02:55 +08:00
9698522be2 通知 2026-03-05 18:39:55 +08:00
30bf13e112 每日推荐通知 2026-03-02 21:09:35 +08:00
85a3107a38 UI修改 2026-03-01 18:09:05 +08:00
zpc
91f22008ed Merge branch 'master' of 192.168.195.14:outsource/xiangyixiangqin 2026-02-28 19:16:45 +08:00
zpc
098d93607b 21 2026-02-28 19:15:57 +08:00
e05ecd90f5 隐藏搜素 2026-02-28 12:45:07 +08:00
bcad055b3b 修改逻辑 2026-02-28 03:49:11 +08:00
13eb154424 id修改 2026-02-26 19:25:04 +08:00
a889c53bfc 会员搜索 2026-02-08 14:56:40 +08:00
24e5f5a010 首页推荐 2026-02-08 14:31:53 +08:00
9b9e8f99b2 推荐 2026-02-08 13:58:03 +08:00
261e57a6a3 更新状态 2026-02-08 13:22:21 +08:00
0e84a4fe84 聊天,会员 2026-02-07 21:50:03 +08:00
de2b59ca90 会员,未读消息 2026-02-07 15:41:18 +08:00
23a620d69d 逻辑优化 2026-02-06 17:58:15 +08:00
2f18801615 . 2026-01-29 21:09:56 +08:00
56456a1c04 消息 2026-01-29 20:31:24 +08:00
e66142eb9d 搜索结果 2026-01-29 19:45:48 +08:00
e5d28064e0 搜索 2026-01-29 19:22:17 +08:00
85c835021a 搜索 2026-01-29 19:12:11 +08:00
ada62eb7d0 实名 2026-01-29 18:12:38 +08:00
b0c62bb226 实名 2026-01-29 17:50:55 +08:00
79ad42e43c 审核中 2026-01-29 17:19:59 +08:00