From e90d8a87ee201e26cae3ec2a68604182a77337ca Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Fri, 18 Feb 2022 15:16:33 +0800 Subject: [PATCH] config --- config/config.yaml | 2 ++ pkg/common/config/config.go | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/config.yaml b/config/config.yaml index f40bfa62a..9b735520c 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -173,6 +173,8 @@ messagecallback: callbackUrl: "http://www.xxx.com/msg/judge" #TimeOut use second as unit callbackTimeOut: 10 +messagejudge: + isJudgeFriend: true # c2c: # callbackBeforeSendMsg: # switch: false diff --git a/pkg/common/config/config.go b/pkg/common/config/config.go index 7ca4e4afb..f6049009d 100644 --- a/pkg/common/config/config.go +++ b/pkg/common/config/config.go @@ -85,7 +85,7 @@ type config struct { OpenImOnlineMessageRelayName string `yaml:"openImOnlineMessageRelayName"` OpenImGroupName string `yaml:"openImGroupName"` OpenImAuthName string `yaml:"openImAuthName"` - OpenImMessageCMSName string `yaml:"openImMessageCMSName"` + OpenImMessageCMSName string `yaml:"openImMessageCMSName"` OpenImAdminCMSName string `yaml:"openImAdminCMSName"` } Etcd struct { @@ -162,6 +162,9 @@ type config struct { CallbackUrl string `yaml:"callbackUrl"` CallBackTimeOut int `yaml:"callbackTimeOut"` } + MessageJudge struct { + IsJudgeFriend bool `yaml:"isJudgeFriend"` + } IOSPush struct { PushSound string `yaml:"pushSound"` BadgeCount bool `yaml:"badgeCount"` @@ -278,7 +281,7 @@ type config struct { OfflinePush POfflinePush `yaml:"offlinePush"` DefaultTips PDefaultTips `yaml:"defaultTips"` } `yaml:"blackDeleted"` - ConversationOptUpdate struct{ + ConversationOptUpdate struct { Conversation PConversation `yaml:"conversation"` OfflinePush POfflinePush `yaml:"offlinePush"` DefaultTips PDefaultTips `yaml:"defaultTips"`