From d1c0205d771d05404f8d25db1f0d526b653bb7b8 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Mon, 28 Mar 2022 15:55:55 +0800 Subject: [PATCH] add oa notification --- pkg/common/constant/constant.go | 3 +++ script/function.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/pkg/common/constant/constant.go b/pkg/common/constant/constant.go index 65de6ef5b..0def0881b 100644 --- a/pkg/common/constant/constant.go +++ b/pkg/common/constant/constant.go @@ -64,6 +64,7 @@ const ( ConversationNotNotification = 1308 ConversationDefault = 0 UserNotificationEnd = 1399 + OANotification = 1400 GroupNotificationBegin = 1500 @@ -95,6 +96,8 @@ const ( //SessionType SingleChatType = 1 GroupChatType = 2 + + NotificationChatType = 4 //token NormalToken = 0 InValidToken = 1 diff --git a/script/function.sh b/script/function.sh index 0deb52b38..97f19187a 100644 --- a/script/function.sh +++ b/script/function.sh @@ -8,4 +8,8 @@ sub_s2=${sub_s1//,/ } sub_s3=${sub_s2#*[} sub_s4=${sub_s3%]*} ports_array=$sub_s4 +} +remove_space(){ + value=$* + result=`echo $value | sed 's/ //g'` } \ No newline at end of file