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