feat(push): add JPush integration for offline message push
Add JPush (极光推送) integration to enable push notifications for offline users. This includes: - New jpush client package with API for batch push notifications - Configuration for jpush (enabled, app_key, master_secret, production mode) - Updated push service to send messages via JPush when users are offline - Added PushChatMessage method with do-not-disturb checking - Integrated push service with chat service to notify offline users of new messages - Updated deployment workflow with JPush and related environment variables
This commit is contained in:
@@ -263,6 +263,15 @@ casbin:
|
||||
report:
|
||||
auto_hide_threshold: 3 # 自动隐藏阈值,举报次数达到此数值时自动隐藏内容
|
||||
|
||||
# 极光推送配置
|
||||
# 环境变量:
|
||||
# APP_JPUSH_ENABLED, APP_JPUSH_APP_KEY, APP_JPUSH_MASTER_SECRET, APP_JPUSH_PRODUCTION
|
||||
jpush:
|
||||
enabled: false
|
||||
app_key: ""
|
||||
master_secret: ""
|
||||
production: false # true: 生产环境, false: 开发环境
|
||||
|
||||
# 初始化超级管理员密钥
|
||||
# 环境变量: APP_SETUP_SECRET
|
||||
# 设置后可使用 POST /api/v1/admin/setup-super-admin 接口初始化第一位超级管理员
|
||||
|
||||
Reference in New Issue
Block a user