Merge branch 'superGroup' into v2.3.0release
# Conflicts: # go.sum # pkg/common/db/RedisModel.go # pkg/common/db/model.go
This commit is contained in:
@@ -8,6 +8,7 @@ package logic
|
||||
|
||||
import (
|
||||
pusher "Open_IM/internal/push"
|
||||
fcm "Open_IM/internal/push/fcm"
|
||||
"Open_IM/internal/push/getui"
|
||||
jpush "Open_IM/internal/push/jpush"
|
||||
"Open_IM/pkg/common/config"
|
||||
@@ -41,6 +42,10 @@ func init() {
|
||||
if config.Config.Push.Jpns.Enable {
|
||||
offlinePusher = jpush.JPushClient
|
||||
}
|
||||
|
||||
if config.Config.Push.Fcm.Enable {
|
||||
offlinePusher = fcm.FcmClient
|
||||
}
|
||||
}
|
||||
|
||||
func Run() {
|
||||
|
||||
Reference in New Issue
Block a user