TWI462534B - Information transmission method and device in instant messaging - Google Patents

Information transmission method and device in instant messaging Download PDF

Info

Publication number
TWI462534B
TWI462534B TW098104694A TW98104694A TWI462534B TW I462534 B TWI462534 B TW I462534B TW 098104694 A TW098104694 A TW 098104694A TW 98104694 A TW98104694 A TW 98104694A TW I462534 B TWI462534 B TW I462534B
Authority
TW
Taiwan
Prior art keywords
account
message
target account
target
sub
Prior art date
Application number
TW098104694A
Other languages
Chinese (zh)
Other versions
TW201031150A (en
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to TW098104694A priority Critical patent/TWI462534B/en
Publication of TW201031150A publication Critical patent/TW201031150A/en
Application granted granted Critical
Publication of TWI462534B publication Critical patent/TWI462534B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Description

即時通訊中的訊息傳送方法及裝置Message transmission method and device in instant messaging

本發明係關於網路即時通訊領域,特別是關於一種即時通訊中的訊息傳送方法及一種即時通訊中的訊息傳送裝置。The invention relates to the field of network instant messaging, in particular to a message transmitting method in instant messaging and a message transmitting device in instant messaging.

即時通訊(IM,Instant Messaging)是一種使人們能在網上識別線上用戶並與他們即時交換訊息(包括文字資訊、檔案、語音與視頻等)的技術,由於其所擁有的即時性、低成本、高效率等諸多優勢,目前已成為最為普及的網路溝通方式之一。Instant Messaging (IM) is a technology that enables people to identify online users and exchange messages with them (including text messages, files, voices, videos, etc.) on the Internet, due to their immediacy and low cost. Many advantages, such as high efficiency, have become one of the most popular ways of network communication.

通常,即時通訊係關於終端或網站平臺通過網路與即時通訊伺服器進行交互的過程,例如,一種典型的即時通訊過程為:Usually, instant messaging is a process in which a terminal or website platform interacts with an instant messaging server over a network. For example, a typical instant messaging process is:

一、用戶A輸入自己的用戶名和密碼登錄即時通訊伺服器,伺服器通過讀取用戶資料庫來驗證用戶身份,如果用戶名、密碼都正確,就登記用戶A的IP位址、IM用戶端軟體的版本號及使用的TCP/UDP埠號,然後返回用戶A登錄成功的標誌,此時用戶A在IM系統中的狀態為線上(Online Presence)。1. User A enters his or her own username and password to log in to the instant messaging server. The server authenticates the user by reading the user database. If the username and password are correct, the user's IP address and IM client software are registered. The version number and the TCP/UDP nickname used, and then return the sign that User A is successfully logged in. At this time, User A's status in the IM system is Online Presence.

二、根據用戶A記憶在IM伺服器上的好友列表(Buddy List),伺服器將用戶A線上的相關資訊發送到也同時線上的即時通訊好友的PC機,這些資訊包括線上狀態、IP位址、IM用戶端使用的TCP埠(Port)號等。2. According to the Buddy List that the user A memorizes on the IM server, the server sends the relevant information on the user A line to the PC of the instant messaging friend who is also on the same line, and the information includes the online status and the IP address. The TCP port number used by the IM client.

三、即時通訊伺服器把用戶A記憶在伺服器上的好友列表及相關資訊回送到他的PC機,這些資訊包括也線上狀態、IP位址、IM用戶端使用的TCP埠(Port)號等資訊,用戶A的PC機上的IM用戶端收到後將顯示這些好友列表及其線上狀態。3. The instant messaging server sends the friend list and related information memorized by the user A to the server to the PC. The information includes the online status, the IP address, the TCP port number used by the IM client, and the like. Information, after receiving the IM client on User A's PC, these buddy lists and their online status will be displayed.

在這種情況下,如果用戶A想與他的線上好友用戶B聊天,他將直接通過伺服器發送過來的用戶B的IP地址、TCP埠號等資訊,直接向用戶B的PC機發出聊天資訊,用戶B的IM用戶端軟體收到後顯示在螢幕上,然後用戶B再直接回復到用戶A的PC機,這樣雙方的即時訊息通過網路進行點對點的直接通訊,即對等通訊方式(Peer To Peer)。然而,如果用戶A與用戶B的點對點通訊由於防火牆、網路速度等原因難以建立或者速度很慢,IM伺服器還可以提供訊息中轉服務,即用戶A和用戶B的即時訊息全部先發送到IM伺服器,再由伺服器轉發給對方。In this case, if user A wants to chat with his online friend user B, he will directly send the chat information to user B's PC through the IP address and TCP nickname of user B sent from the server. User B's IM client software is displayed on the screen, and then user B directly replies to user A's PC, so that the instant messages of both parties communicate directly through the network, that is, peer-to-peer communication (Peer) To Peer). However, if the peer-to-peer communication between user A and user B is difficult to establish due to firewall, network speed, etc., or the speed is very slow, the IM server can also provide a message relay service, that is, the instant messages of user A and user B are all sent first. The IM server is forwarded to the other party by the server.

隨著即時通訊技術的發展,可能存在這樣的應用場景:With the development of instant messaging technology, there may be such an application scenario:

若訊息接收端的某個IM帳號接收訊息的資料量過大或過多,則需要為該IM帳號分配更多資源,增加更多系統開銷,而這種資源與開銷的過多佔用可能引發各種系統問題,如傳輸中斷、系統掉線等。If the amount of data received by an IM account on the receiving end of the message is too large or too large, more resources need to be allocated for the IM account, which increases the system overhead. Such excessive use of resources and overhead may cause various system problems, such as Transmission interruption, system drop, etc.

因此,現階段需要本領域技術人員迫切解決的一個技術問題就是,如何提供一種即時通訊中的訊息傳送方法,用以針對IM帳號合理分配資源,使用戶獲得更好體驗。Therefore, a technical problem that needs to be solved urgently by those skilled in the art at this stage is how to provide a message transmission method in instant messaging for reasonably allocating resources for an IM account, so that the user can obtain a better experience.

本發明所要解決的技術問題是提供一種即時通訊中的訊息傳送方法,以針對IM帳號合理分配資源,使用戶獲得更好體驗。The technical problem to be solved by the present invention is to provide a message transmission method in instant messaging, so as to reasonably allocate resources for an IM account, so that the user can obtain a better experience.

本發明的另一個目的是提供了一種即時通訊中的訊息傳送裝置,用以保證上述方法在實際中的實現及應用。Another object of the present invention is to provide a message transmitting apparatus in instant messaging for ensuring the implementation and application of the above method in practice.

為了解決上述技術問題,本發明實施例揭露了一種即時通訊中的訊息傳送方法,所述訊息由訊息發送端傳送至訊息接收端,所述訊息接收端為具有特徵屬性的主帳號及相關的子帳號,所述方法包括:In order to solve the above technical problem, an embodiment of the present invention discloses a message transmission method in instant messaging, where the message is transmitted by a message sending end to a message receiving end, and the message receiving end is a master account having a characteristic attribute and a related child. Account number, the method includes:

觸發所述主帳號或子帳號進入訊息傳送模式;讀取所述訊息發送端與訊息接收端的歷史傳送資訊,判斷所述主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則將所述最近聯繫帳號確定為目標帳號;若否,則按照預置規則查找目標帳號;將所述訊息傳送至所述目標帳號。Triggering the primary account or the sub-account to enter a message transmission mode; reading historical transmission information of the message sending end and the message receiving end, and determining whether there is a recent online contact account in the main account and the related sub-account, and if so, Determining the most recent contact account as a target account; if not, searching for a target account according to a preset rule; transmitting the message to the target account.

最好,在讀取判斷步驟前,還包括:Preferably, before reading the judgment step, it also includes:

判斷所述主帳號及相關的子帳號是否具有訊息共用的屬性,如果是,則執行讀取判斷步驟;如果否,則將所述主帳號確定為目標帳號。Determining whether the primary account and the related sub-account have attributes shared by the message, and if yes, performing a read determination step; if not, determining the primary account as the target account.

最好,在讀取判斷步驟前,還包括:Preferably, before reading the judgment step, it also includes:

判斷所述主帳號及相關的子帳號是否為線上狀態,如果是,則執行讀取判斷步驟;如果否,則隨機選取一個子帳號為目標帳號。Determining whether the primary account and the related sub-account are online. If yes, performing a read determination step; if not, randomly selecting a sub-account as the target account.

最好,通過以下步驟按照預置規則查找目標帳號:Preferably, use the following steps to find the target account according to the preset rules:

查找當前接收訊息最少的帳號為目標帳號。Find the account with the least received message as the target account.

最好,所述主帳號及相關的子帳號的特徵屬性包括分組資訊。Preferably, the feature attributes of the primary account and related sub-accounts include group information.

本發明實施例還揭露了一種即時通訊中的訊息傳送裝置,所述訊息由訊息發送端傳送至訊息接收端,所述訊息接收端為具有特徵屬性的主帳號及相關的子帳號,所述裝置包括:The embodiment of the invention further discloses a message transmitting device in instant messaging, wherein the message is transmitted by the message sending end to the message receiving end, and the message receiving end is a master account with characteristic attributes and an associated sub-account, the device include:

觸發模組,用於觸發所述主帳號或子帳號進入訊息傳送模式;第一判斷模組,用於讀取所述訊息發送端與訊息接收端的歷史傳送資訊,判斷所述主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則觸發第一目標帳號選取模組;若否,則觸發第二目標帳號選取模組;第一目標帳號選取模組,用於將所述最近聯繫帳號確定為目標帳號;第二目標帳號選取模組,用於按照預置規則查找目標帳號;傳送模組,用於將所述訊息傳送至所述目標帳號。a triggering module, configured to trigger the primary account or the sub-account to enter a message transmission mode; the first determining module is configured to read historical transmission information of the message sending end and the message receiving end, and determine the primary account and related Whether there is a recent contact account on the line in the sub-account, if yes, triggering the first target account selection module; if not, triggering the second target account selection module; the first target account selection module is used to The contact account is determined as the target account; the second target account selection module is configured to find the target account according to the preset rule; and the transfer module is configured to transmit the message to the target account.

最好,所述的裝置,還包括:Preferably, the device further comprises:

第二判斷模組,用於判斷所述主帳號及相關的子帳號是否具有訊息共用的屬性,如果是,則觸發所述第一判斷模組;如果否,則觸發第三目標帳號選取模組;第三目標帳號選取模組,用於將所述主帳號確定為目標帳號。The second determining module is configured to determine whether the primary account and the related sub-account have attributes shared by the message, and if yes, trigger the first determining module; if not, trigger the third target account selecting module a third target account selection module, configured to determine the primary account as a target account.

最好,所述的裝置,還包括:Preferably, the device further comprises:

第三判斷模組,用於判斷所述主帳號及相關的子帳號是否為線上狀態,如果是,則觸發所述第一判斷模組;如果否,則觸發第四目標帳號選取模組;第四目標帳號選取模組,用於隨機選取一個子帳號為目標帳號。a third determining module, configured to determine whether the primary account and the related sub-account are in an online state; if yes, triggering the first determining module; if not, triggering a fourth target account selecting module; The four-target account selection module is used to randomly select a sub-account as the target account.

最好,所述第二目標帳號選取模組查找的目標帳號為當前接收訊息最少的帳號。Preferably, the target account selected by the second target account selection module is the account with the least received message.

最好,所述訊息接收端部署在網頁上,並在網頁上顯示線上狀態。Preferably, the message receiving end is deployed on a web page and displays an online status on the web page.

與現有技術相比,本發明具有以下優點:Compared with the prior art, the present invention has the following advantages:

本發明通過在訊息接收端設置具有特徵屬性的主帳號及相關的子帳號,基於不同的情境從所述主帳號及相關的子帳號選擇合適的目標帳號,將訊息傳送至所述目標帳號,以完成訊息從訊息發送端至訊息接收端的傳送。本發明通過目標帳號的選取發送使資源分配合理化,從而使用戶獲得更好的使用體驗。The invention sets a main account with characteristic attributes and a related sub-account at the receiving end of the message, selects a suitable target account from the main account and the related sub-account based on different scenarios, and transmits a message to the target account, Complete the transfer of the message from the sender of the message to the receiver of the message. The invention rationalizes the resource allocation by selecting and sending the target account, thereby enabling the user to obtain a better use experience.

為使本發明的上述目的、特徵和優點能夠更加明顯易懂,下面結合附圖和具體實施方式對本發明作進一步詳細的說明。The present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.

本發明可用於眾多通用或專用的計算系統環境或配置中。例如:個人電腦、伺服器電腦、手持設備或可攜式設備、平板型設備、多處理器系統、包括以上任何系統或設備的分散式計算環境等等。The invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, decentralized computing environments including any of the above systems or devices, and the like.

本發明可以在由電腦執行的電腦可執行指令的一般上下文中描述,例如程式模組。一般地,程式模組包括執行特定任務或實現特定抽象資料類型的常式、程式、物件、元件、資料結構等等。也可以在分散式計算環境中實踐本發明,在這些分散式計算環境中,由通過通信網路而被連接的遠端處理設備來執行任務。在分散式計算環境中,程式模組可以位於包括記憶設備在內的本地和遠端電腦記憶介質中。The invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, a program module includes routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The invention may also be practiced in a distributed computing environment where tasks are performed by remote processing devices that are connected through a communication network. In a decentralized computing environment, program modules can be located in local and remote computer memory media, including memory devices.

本發明實施例的核心構思之一在於,在訊息接收端設置具有特徵屬性的主帳號及相關的子帳號,基於不同的情境從所述主帳號及相關的子帳號選擇合適的目標帳號,將訊息傳送至所述目標帳號,以完成訊息從訊息發送端至訊息接收端的傳送。本發明通過目標帳號的選取發送使資源分配合理化,從而使用戶獲得更好的使用體驗。One of the core concepts of the embodiment of the present invention is that a primary account having a feature attribute and a related sub-account are set at the message receiving end, and a suitable target account is selected from the primary account and the related sub-account based on different scenarios, and the message is Transfer to the target account to complete the transfer of the message from the sender to the message receiver. The invention rationalizes the resource allocation by selecting and sending the target account, thereby enabling the user to obtain a better use experience.

參考圖1,示出了本發明的一種即時通訊中的訊息傳送方法實施例1的流程圖,其中,所述訊息由訊息發送端傳送至訊息接收端,所述訊息接收端為具有特徵屬性的主帳號及相關的子帳號,本實施例可以包括以下步驟:Referring to FIG. 1, a flowchart of Embodiment 1 of a method for transmitting a message in an instant messaging according to the present invention is shown, wherein the message is transmitted from a message sending end to a message receiving end, and the message receiving end has a feature attribute. The main account and related sub-accounts, this embodiment may include the following steps:

步驟101、觸發所述主帳號或子帳號進入訊息傳送模式;步驟102、讀取所述訊息發送端與訊息接收端的歷史傳送資訊,判斷所述主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則執行步驟103;否則執行步驟104;步驟103、將所述最近聯繫帳號確定為目標帳號,並執行步驟105;步驟104、按照預置規則查找目標帳號,並執行步驟105;步驟105、將所述訊息傳送至所述目標帳號。Step 101: Trigger the primary account or the sub-account to enter a message transmission mode. Step 102: Read historical transmission information of the message sending end and the message receiving end, and determine whether the main account and the related sub-account have a recent online presence. Contact the account, if yes, go to step 103; otherwise, go to step 104; Step 103, determine the most recent contact account as the target account, and perform step 105; Step 104, find the target account according to the preset rules, and execute step 105; Step 105: Transfer the message to the target account.

在實際中,所述主帳號可以為登錄IM的帳號,現有的IM系統中,存在在一個主帳號下創建一個或多個子帳號的情形,在本實施例中,所述主帳號與子帳號依據特徵屬性關聯,最好,所述特徵屬性可以包括分組資訊,例如,參見圖2所示的分組介面示意圖,其中“客服”即為對應的主帳號,“客服1、客服2...客服N”即對應的子帳號。為實現訊息的合理分配,主帳號可以在網頁上部署了訊息分配的腳本(如JS腳本),並在網頁上顯示主帳號的IM圖示。當用戶點擊該主帳號的IM圖示或採用其他方式觸發進入訊息傳送模式後,系統則可以依據所述訊息分配的腳本將訊息傳送到某個帳號上。In the embodiment, the primary account and the sub-account are based on the primary account and the sub-account in the current IM system. Feature attribute association, preferably, the feature attribute may include group information. For example, refer to the group interface diagram shown in FIG. 2, where “customer service” is the corresponding primary account, “customer service 1, customer service 2... customer service N "The corresponding sub-account. In order to realize the reasonable distribution of the message, the main account can deploy a message distribution script (such as a JS script) on the webpage, and display the IM icon of the main account on the webpage. After the user clicks on the IM icon of the primary account or triggers the message transmission mode by other means, the system can transmit the message to an account according to the script allocated by the message.

參考圖3,示出了本發明的一種即時通訊中的訊息傳送方法實施例2的流程圖,其中,所述訊息由訊息發送端傳送至訊息接收端,所述訊息接收端為具有特徵屬性的主帳號及相關的子帳號,本實施例可以包括以下步驟:Referring to FIG. 3, a flowchart of Embodiment 2 of a method for transmitting a message in an instant messaging according to the present invention is shown, wherein the message is transmitted from a message sending end to a message receiving end, and the message receiving end is characterized by a characteristic attribute. The main account and related sub-accounts, this embodiment may include the following steps:

步驟301、觸發所述主帳號或子帳號進入訊息傳送模式;步驟302、判斷所述主帳號及相關的子帳號是否具有訊息共用的屬性,如果是,則執行步驟303;如果否,則執行步驟306;步驟303、讀取所述訊息發送端與訊息接收端的歷史傳送資訊,判斷所述主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則執行步驟304;否則執行步驟305;步驟304、將所述最近聯繫帳號確定為目標帳號,並執行步驟307;步驟305、按照預置規則查找目標帳號,並執行步驟307;步驟306、將所述主帳號確定為目標帳號,並執行步驟307;步驟307、將所述訊息傳送至所述目標帳號。Step 301: The primary account or the sub-account is triggered to enter a message transmission mode. Step 302: Determine whether the primary account and the related sub-account have attributes shared by the message. If yes, execute step 303; if not, perform steps 306. Step 303: Read historical transmission information of the message sending end and the message receiving end, and determine whether there is a recent contact account on the line in the primary account and the related sub-account. If yes, go to step 304; otherwise, go to step 305. Step 304: Determine the most recent contact account as the target account, and perform step 307; Step 305, find the target account according to the preset rule, and perform step 307; Step 306, determine the master account as the target account, and Step 307 is performed; step 307, the message is transmitted to the target account.

參考圖4,示出了本發明的一種即時通訊中的訊息傳送方法實施例3的流程圖,其中,所述訊息由訊息發送端傳送至訊息接收端,所述訊息接收端為具有特徵屬性的主帳號及相關的子帳號,本實施例可以包括以下步驟:Referring to FIG. 4, a flowchart of Embodiment 3 of a message transmission method in an instant messaging according to the present invention is shown, wherein the message is transmitted from a message sending end to a message receiving end, and the message receiving end is characterized by a characteristic attribute. The main account and related sub-accounts, this embodiment may include the following steps:

步驟401、觸發所述主帳號或子帳號進入訊息傳送模式;步驟402、判斷所述主帳號及相關的子帳號是否具有訊息共用的屬性,如果是,則執行步驟403;如果否,則執行步驟407;步驟403、判斷所述主帳號及相關的子帳號是否為線上狀態,如果是,則執行步驟404;如果否,則執行步驟408;步驟404、讀取所述訊息發送端與訊息接收端的歷史傳送資訊,判斷所述主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則執行步驟405;否則執行步驟406;步驟405、將所述最近聯繫帳號確定為目標帳號,並執行步驟409;步驟406、按照預置規則查找目標帳號,並執行步驟409;步驟407、將所述主帳號確定為目標帳號,並執行步驟409;步驟408、隨機選取一個子帳號為目標帳號,並執行步驟409;步驟409、將所述訊息傳送至所述目標帳號。Step 401: Trigger the primary account or the sub-account to enter the message transmission mode. Step 402: Determine whether the primary account and the related sub-account have attributes shared by the message. If yes, execute step 403; if not, perform steps Step 403: Determine whether the primary account and the related sub-account are online. If yes, go to step 404; if no, go to step 408; step 404, read the message sender and the message receiver. The historical transmission information is used to determine whether there is a recent contact account on the line in the primary account and the related sub-account. If yes, go to step 405; otherwise, go to step 406; step 405, determine the most recent contact account as the target account, and Step 409: Step 406: Find the target account according to the preset rule, and execute step 409; Step 407, determine the primary account as the target account, and perform step 409; Step 408, randomly select a sub-account as the target account. And executing step 409; step 409, transmitting the message to the target account.

在上述實施例中,最好是,可以通過以下步驟按照預置規則查找目標帳號:In the above embodiment, preferably, the target account can be found according to a preset rule by the following steps:

查找當前接收訊息最少的帳號為目標帳號。Find the account with the least received message as the target account.

當然,本領域技術人員採用任一種方法查找所述目標帳號都是可行的,例如,在查找當前未接收訊息且未設置“拒接訊息”的帳號為目標帳號等,本發明對此不需要作出限定。Certainly, it is feasible for a person skilled in the art to find the target account by using any method. For example, if the account that does not currently receive the message and does not set the “reject message” is the target account, the present invention does not need to make this. limited.

本說明書中的各個實施例均採用遞進的方式描述,某個實施例中沒有詳述的部分,可以參見前述部分的相關描述即可。上述隨意舉出了本發明的幾種實施例,本領域技術人員根據具體情況適當組合、選擇,可以充分地發揮本發明的技術功效。基於上述實施例的任意組合都是本發明的實施方案,但是由於篇幅限制,本說明書在此就不一一詳述了。The various embodiments in the present specification are described in a progressive manner, and a portion not described in detail in an embodiment may be referred to the related description in the foregoing section. Several embodiments of the present invention are arbitrarily mentioned above, and those skilled in the art can appropriately combine and select according to specific conditions, and the technical effects of the present invention can be fully exerted. Any combination based on the above embodiments is an embodiment of the present invention, but due to space limitations, the present specification will not be described in detail herein.

以下通過一個應用本發明實施例的具體例子對本發明進一步說明。The invention is further illustrated below by a specific example of the application of the embodiments of the invention.

假設在網上交易的即時通訊系統中,訊息發送端為買家B,訊息接收端S’包括S、Sn和Snn,其中,S為賣家的主帳號,Sn(包括S1,S2......)為S關聯的一級子帳號,Snn(包括S11、S12、S21、S22......)為Sn關聯的二級子帳號。B可以通過即時通訊工具與S’溝通,並可以從網頁上獲得S’的線上狀態。其中,線上狀態的顯示規則為,只要有二級子帳號線上,一級子帳號圖示就顯示為線上狀態。當B點擊網頁上Sn的線上狀態圖示,即可觸發網頁中的腳本發送請求給IM分配伺服器,IM分配伺服器則可進行以下分配過程:Assume that in the instant messaging system of online transactions, the sender of the message is buyer B, and the sender of the message S' includes S, Sn and Snn, where S is the seller's primary account, Sn (including S1, S2.... ..) is the first-level sub-account associated with S, and Snn (including S11, S12, S21, S22, ...) is the secondary sub-account associated with Sn. B can communicate with S’ through an instant messaging tool and can obtain the online status of S’ from the web page. The display rule of the online state is that as long as there is a secondary sub-account line, the first-level sub-account icon is displayed as an online state. When B clicks on the online status icon of Sn on the webpage, the script sending request in the webpage can be triggered to the IM distribution server, and the IM distribution server can perform the following allocation process:

S1、判斷買家B是否被主帳號S設置為與相關的子帳號訊息共用,如果是,則執行S2;如果否,則執行S6;S2、獲取S、Sn的線上狀態,如果線上,則執行S3;如果否,則執行S7;S3、讀取B與S、Sn的歷史傳送資訊,判斷是否存在線上的最近聯繫帳號,若存在,則執行S4;否則執行S5;S4、向所述最近聯繫帳號傳送訊息;S5、查找當前接收訊息最少且未設置“拒接訊息”的帳號,向該帳號傳送訊息;S6、向S傳送訊息;S7、隨機選取一個Sn傳送訊息。S1, determining whether the buyer B is set to be shared with the related sub-account message by the main account S, if yes, executing S2; if not, executing S6; S2, obtaining the online status of S, Sn, if online, executing S3; if not, execute S7; S3, read historical transmission information of B and S, Sn, determine whether there is a recent contact account on the line, if yes, execute S4; otherwise, execute S5; S4, contact the nearest contact The account transmits the message; S5, finds the account that currently receives the least message and does not set the "reject message", transmits the message to the account; S6, transmits the message to S; S7, randomly selects a Sn to transmit the message.

可以看出,本發明的一種應用情形為,在網上交易平臺提供的即時通訊中,業務量較大賣家在處理繁複訊息時的應用。It can be seen that an application scenario of the present invention is that in the instant messaging provided by the online trading platform, the service volume of the seller is large when the complicated message is processed.

對於前述的各方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明並不受所描述的動作順序的限制,因為依據本發明,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於較佳實施例,所涉及的動作和模組並不一定是本發明所必須的。For the foregoing method embodiments, for the sake of brevity, they are all described as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described order of actions, because according to the present invention, Some steps can be performed in other orders or at the same time. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

參考圖5,示出了本發明的一種即時通訊中的訊息傳送裝置實施例1的結構框圖,所述訊息由訊息發送端傳送至訊息接收端,所述訊息接收端為具有特徵屬性的主帳號及相關的子帳號,本實施例可以包括以下模組:Referring to FIG. 5, it is a structural block diagram of Embodiment 1 of a message transmitting apparatus in an instant messaging according to the present invention. The message is transmitted from a message sending end to a message receiving end, and the message receiving end is a main character having a characteristic attribute. For the account number and related sub-accounts, this embodiment may include the following modules:

觸發模組501,用於觸發所述主帳號或子帳號進入訊息傳送模式;第一判斷模組502,用於讀取所述訊息發送端與訊息接收端的歷史傳送資訊,判斷所述主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則觸發第一目標帳號選取模組503;若否,則觸發第二目標帳號選取模組504;第一目標帳號選取模組503,用於將所述最近聯繫帳號確定為目標帳號;第二目標帳號選取模組504,用於按照預置規則查找目標帳號;傳送模組505,用於將所述訊息傳送至所述目標帳號。The triggering module 501 is configured to trigger the master account or the sub-account to enter the message transmission mode; the first determining module 502 is configured to read historical transmission information of the message sending end and the message receiving end, and determine the main account and Whether there is a recent contact account on the line in the related sub-account, and if so, triggering the first target account selection module 503; if not, triggering the second target account selection module 504; the first target account selection module 503, The first contact account selection module 504 is configured to search for a target account according to a preset rule, and the transfer module 505 is configured to transmit the message to the target account.

參考圖6,示出了本發明的一種即時通訊中的訊息傳送裝置實施例2的結構框圖,所述訊息由訊息發送端傳送至訊息接收端,所述訊息接收端為具有特徵屬性的主帳號及相關的子帳號,本實施例可以包括以下模組:Referring to FIG. 6, a block diagram of a second embodiment of a message transmitting apparatus in an instant messaging according to the present invention is shown. The message is transmitted from a message sending end to a message receiving end, and the message receiving end is a main character having a characteristic attribute. For the account number and related sub-accounts, this embodiment may include the following modules:

觸發模組601,用於觸發所述主帳號或子帳號進入訊息傳送模式;第二判斷模組602,用於判斷所述主帳號及相關的子帳號是否具有訊息共用的屬性,如果是,則觸發第一判斷模組603;如果否,則觸發第三目標帳號選取模組606;第一判斷模組603,用於讀取所述訊息發送端與訊息接收端的歷史傳送資訊,判斷所述主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則觸發第一目標帳號選取模組604;若否,則觸發第二目標帳號選取模組605;第一目標帳號選取模組604,用於將所述最近聯繫帳號確定為目標帳號;第二目標帳號選取模組605,用於按照預置規則查找目標帳號;第三目標帳號選取模組606,用於將所述主帳號確定為目標帳號;傳送模組607,用於將所述訊息傳送至所述目標帳號。The triggering module 601 is configured to trigger the primary account or the sub-account to enter a message transmission mode; the second determining module 602 is configured to determine whether the primary account and the related sub-account have attributes shared by the message, and if yes, Triggering the first determining module 603; if not, triggering the third target account selection module 606; the first determining module 603 is configured to read historical transmission information of the message sending end and the message receiving end, and determine the main Whether there is an online nearest contact account in the account and the related sub-account, and if so, triggering the first target account selection module 604; if not, triggering the second target account selection module 605; the first target account selection module 604 The second target account selection module 605 is configured to search the target account according to the preset rule; the third target account selection module 606 is configured to determine the primary account. A target account; a transfer module 607, configured to transmit the message to the target account.

參考圖7,示出了本發明的一種即時通訊中的訊息傳送裝置實施例3的結構框圖,所述訊息由訊息發送端傳送至訊息接收端,所述訊息接收端為具有特徵屬性的主帳號及相關的子帳號,本實施例可以包括以下模組:Referring to FIG. 7, a block diagram of a third embodiment of a message transmitting apparatus in an instant messaging according to the present invention is shown. The message is transmitted from a message sending end to a message receiving end, and the message receiving end is a main character having a characteristic attribute. For the account number and related sub-accounts, this embodiment may include the following modules:

觸發模組701,用於觸發所述主帳號或子帳號進入訊息傳送模式;第二判斷模組702,用於判斷所述主帳號及相關的子帳號是否具有訊息共用的屬性,如果是,則觸發第三判斷模組703;如果否,則觸發第三目標帳號選取模組707;第三判斷模組703,用於判斷所述主帳號及相關的子帳號是否為線上狀態,如果是,則觸發所述第一判斷模組404;如果否,則觸發第四目標帳號選取模組708;第一判斷模組704,用於讀取所述訊息發送端與訊息接收端的歷史傳送資訊,判斷所述主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則觸發第一目標帳號選取模組705;若否,則觸發第二目標帳號選取模組706;第一目標帳號選取模組705,用於將所述最近聯繫帳號確定為目標帳號;第二目標帳號選取模組706,用於按照預置規則查找目標帳號;第三目標帳號選取模組707,用於將所述主帳號確定為目標帳號;第四目標帳號選取模組708,用於隨機選取一個子帳號為目標帳號;傳送模組709,用於將所述訊息傳送至所述目標帳號。The triggering module 701 is configured to trigger the primary account or the sub-account to enter a message transmission mode; the second determining module 702 is configured to determine whether the primary account and the related sub-account have attributes shared by the message, and if yes, Triggering the third determining module 703; if not, triggering the third target account selection module 707; the third determining module 703 is configured to determine whether the primary account and the related sub-account are online, and if so, Triggering the first determining module 404; if not, triggering the fourth target account selection module 708; the first determining module 704 is configured to read historical transmission information of the message sending end and the message receiving end, and determine the location Whether the online current contact account exists in the primary account and the related sub-account, and if so, triggering the first target account selection module 705; if not, triggering the second target account selection module 706; the first target account selection module The group 705 is configured to determine the recent contact account as a target account; the second target account selection module 706 is configured to search for a target account according to a preset rule; and the third target account selection module 707 The primary account number for the account as a target; fourth target account selection module 708, for randomly selecting a sub-account of the target account; transmitting module 709 for transmitting the message to the target account.

在上述實施例中,所述主帳號及相關的子帳號的特徵屬性可以包括分組資訊。最好,所述第二目標帳號選取模組查找的目標帳號可以為當前接收訊息最少的帳號。更為最好,所述訊息接收端可以部署在網頁上,並在網頁上顯示線上狀態。In the above embodiment, the feature attributes of the primary account and related sub-accounts may include group information. Preferably, the target account that the second target account selection module searches for may be the account that receives the least message at present. More preferably, the message receiving end can be deployed on a web page and display the online status on the web page.

由於圖5、6和7所示的裝置實施例都可以對應適用於前述的各種方法實施例中,所以描述較為簡略,未詳盡之處可以參見本說明書前面相應部分的描述。Since the device embodiments shown in FIGS. 5, 6, and 7 can be correspondingly applied to the various method embodiments described above, the description is relatively simple. For details, refer to the description of the corresponding part in the foregoing specification.

最後,還需要說明的是,在本文中,諸如第一和第二等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個......”限定的要素,並不排除在包括所述要素的過程、方法、物品或者設備中還存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.

以上對本發明所提供的一種即時通訊中的訊息傳送方法和一種即時通訊中的訊息傳送裝置進行了詳細介紹,本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明的方法及其核心思想;同時,對於本領域的一般技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書內容不應理解為對本發明的限制。The method for transmitting a message in the instant messaging and the message transmitting device in the instant messaging are provided in detail. The principles and embodiments of the present invention are described in the following examples. The description is only for helping to understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. The contents of this specification are not to be construed as limiting the invention.

圖1是本發明的一種即時通訊中的訊息傳送方法實施例1的流程圖;1 is a flowchart of Embodiment 1 of a message transmission method in instant messaging according to the present invention;

圖2是一種分組介面的示意圖;2 is a schematic diagram of a packet interface;

圖3是本發明的一種即時通訊中的訊息傳送方法實施例2的流程圖;3 is a flow chart of Embodiment 2 of a message transmission method in instant messaging according to the present invention;

圖4是本發明的一種即時通訊中的訊息傳送方法實施例3的流程圖;4 is a flowchart of Embodiment 3 of a message transmission method in instant messaging according to the present invention;

圖5是本發明的一種即時通訊中的訊息傳送裝置實施例1的結構框圖;5 is a structural block diagram of Embodiment 1 of a message transmitting apparatus in instant messaging according to the present invention;

圖6是本發明的一種即時通訊中的訊息傳送裝置實施例2的結構框圖;6 is a structural block diagram of Embodiment 2 of a message transmitting apparatus in instant messaging according to the present invention;

圖7是本發明的一種即時通訊中的訊息傳送裝置實施例3的結構框圖。FIG. 7 is a structural block diagram of Embodiment 3 of a message transmitting apparatus in an instant messaging according to the present invention.

Claims (8)

一種即時通訊中的訊息傳送方法,其特徵在於,該訊息由訊息發送端傳送至訊息接收端,該訊息接收端為具有特徵屬性的主帳號及相關的子帳號,該方法包括:觸發該主帳號或子帳號進入訊息傳送模式;讀取該訊息發送端與訊息接收端的歷史傳送資訊,判斷該主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則將該最近聯繫帳號確定為目標帳號;若否,則按照預置規則查找目標帳號;將該訊息傳送至該目標帳號,其中通過以下步驟按照預置規則查找目標帳號:查找當前接收訊息最少的帳號為目標帳號。 A method for transmitting a message in instant messaging, wherein the message is transmitted by the message sending end to the message receiving end, and the message receiving end is a master account having a characteristic attribute and a related sub-account, the method comprising: triggering the master account Or the sub-account enters the message transmission mode; reads the historical transmission information of the message sender and the message receiver, and determines whether there is a recent contact account on the line in the master account and the related sub-account; if yes, the recent contact account is determined as The target account; if not, the target account is searched according to the preset rule; the message is transmitted to the target account, wherein the target account is searched according to the preset rule by the following steps: finding the account with the least received message as the target account. 如申請專範圍第1項所述的方法,其中在讀取判斷步驟前,還包括:判斷該主帳號及相關的子帳號是否具有訊息共用的屬性,如果是,則執行讀取判斷步驟;如果否,則將該主帳號確定為目標帳號。 The method of claim 1, wherein before the reading determining step, the method further comprises: determining whether the primary account and the related sub-account have attributes shared by the message, and if yes, performing a reading determination step; No, the primary account is determined as the target account. 如申請專範圍第2項所述的方法,其中在讀取判斷步驟前,還包括:判斷該主帳號及相關的子帳號是否為線上狀態,如果是,則執行讀取判斷步驟;如果否,則隨機選取一個子帳號為目標帳號。 The method of claim 2, wherein before the reading determining step, the method further comprises: determining whether the primary account and the related sub-account are online, and if yes, performing a reading determination step; if not, Then randomly select a sub-account as the target account. 如申請專範圍第1項所述的方法,其中所述主帳號及相關的子帳號的特徵屬性包括分組資訊。 The method of claim 1, wherein the characteristic attribute of the primary account and the related sub-account includes group information. 一種即時通訊中的訊息傳送裝置,其特徵在於,該訊息由訊息發送端傳送至訊息接收端,該訊息接收端為具有特徵屬性的主帳號及相關的子帳號,該裝置包括:觸發模組,用於觸發該主帳號或子帳號進入訊息傳送模式;第一判斷模組,用於讀取該訊息發送端與訊息接收端的歷史傳送資訊,判斷該主帳號及相關的子帳號中是否存在線上的最近聯繫帳號,若是,則觸發第一目標帳號選取模組;若否,則觸發第二目標帳號選取模組;第一目標帳號選取模組,用於將該最近聯繫帳號確定為目標帳號;第二目標帳號選取模組,用於按照預置規則查找目標帳號;傳送模組,用於將該訊息傳送至該目標帳號,其中該第二目標帳號選取模組查找的目標帳號為當前接收訊息最少的帳號。 The message transmitting device in the instant messaging is characterized in that the message is transmitted from the message sending end to the message receiving end, and the message receiving end is a main account having a characteristic attribute and a related sub-account. The device comprises: a trigger module. The first determining module is configured to read the historical transmission information of the message sending end and the message receiving end, and determine whether the main account and the related sub-account have an online line. Contact the account recently, if yes, trigger the first target account selection module; if not, trigger the second target account selection module; the first target account selection module is used to determine the recent contact account as the target account; The second target account selection module is configured to search for the target account according to the preset rule; the transfer module is configured to transmit the message to the target account, wherein the target account selected by the second target account selection module is the least received message currently received. Account number. 如申請專範圍第5項所述的裝置,其中還包括:第二判斷模組,用於判斷該主帳號及相關的子帳號是否具有訊息共用的屬性,如果是,則觸發該第一判斷模組;如果否,則觸發第三目標帳號選取模組;第三目標帳號選取模組,用於將該主帳號確定為目標帳號。 The device of claim 5, further comprising: a second determining module, configured to determine whether the primary account and the related sub-account have attributes shared by the message, and if yes, triggering the first determining mode The group; if not, triggers the third target account selection module; and the third target account selection module is configured to determine the primary account as the target account. 如申請專範圍第6項所述的裝置,其中還包括:第三判斷模組,用於判斷該主帳號及相關的子帳號是 否為線上狀態,如果是,則觸發該第一判斷模組;如果否,則觸發第四目標帳號選取模組;第四目標帳號選取模組,用於隨機選取一個子帳號為目標帳號。 The device of claim 6, further comprising: a third determining module, configured to determine that the primary account and the associated sub-account are No, the online status, if yes, triggers the first determining module; if not, triggers the fourth target account selection module; and the fourth target account selection module is used to randomly select a sub-account as the target account. 如申請專範圍第5項所述的裝置,其中該訊息接收端部署在網頁上,並在網頁上顯示線上狀態。 The device of claim 5, wherein the message receiving end is deployed on a webpage and displays an online status on the webpage.
TW098104694A 2009-02-13 2009-02-13 Information transmission method and device in instant messaging TWI462534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098104694A TWI462534B (en) 2009-02-13 2009-02-13 Information transmission method and device in instant messaging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098104694A TWI462534B (en) 2009-02-13 2009-02-13 Information transmission method and device in instant messaging

Publications (2)

Publication Number Publication Date
TW201031150A TW201031150A (en) 2010-08-16
TWI462534B true TWI462534B (en) 2014-11-21

Family

ID=44854421

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098104694A TWI462534B (en) 2009-02-13 2009-02-13 Information transmission method and device in instant messaging

Country Status (1)

Country Link
TW (1) TWI462534B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101685226B1 (en) * 2012-06-12 2016-12-20 라인 가부시키가이샤 Messenger interworking service system and method using social graph based on relationships of messenger platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022213A1 (en) * 2005-07-20 2007-01-25 Research In Motion Limited Scheme for sharing IM message history
US7298831B1 (en) * 2004-12-07 2007-11-20 International Business Machines Corporation Automated distribution of an instant messaging request for an unavailable intended recipient to a backup recipient
US20070268864A1 (en) * 2006-05-22 2007-11-22 Motorola, Inc. Method and system to enhance social networking through random location connectivity
TW201243615A (en) * 2011-04-20 2012-11-01 Inventec Corp System for providing instant message through data sharing and method thereof
TW201333735A (en) * 2013-04-30 2013-08-16 zhong-bin Li Chinese network information monitoring and analyzing system and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7298831B1 (en) * 2004-12-07 2007-11-20 International Business Machines Corporation Automated distribution of an instant messaging request for an unavailable intended recipient to a backup recipient
US20070022213A1 (en) * 2005-07-20 2007-01-25 Research In Motion Limited Scheme for sharing IM message history
US20070268864A1 (en) * 2006-05-22 2007-11-22 Motorola, Inc. Method and system to enhance social networking through random location connectivity
TW201243615A (en) * 2011-04-20 2012-11-01 Inventec Corp System for providing instant message through data sharing and method thereof
TW201333735A (en) * 2013-04-30 2013-08-16 zhong-bin Li Chinese network information monitoring and analyzing system and method thereof

Also Published As

Publication number Publication date
TW201031150A (en) 2010-08-16

Similar Documents

Publication Publication Date Title
JP6353103B2 (en) Method and apparatus for sending an authentication request message in a social network
AU2018206697B2 (en) Authentication of service requests initiated from a social networking site
CN105530175B (en) Message processing method, device and system
JP6581214B2 (en) Chat service providing method using client bot and apparatus for performing the method
CN110601956B (en) Content aggregation method and device, computer equipment and storage medium
JP5579084B2 (en) Instant messaging method and system
US9813373B2 (en) Methods and devices for online contacts expansion
WO2019072197A1 (en) Red packet distribution method, device, and medium
US20150172228A1 (en) Method and system for communicating information over a network
CN115004673B (en) Message pushing method, device, electronic equipment and computer readable medium
US8713117B2 (en) Systems and methods for performing live chat functionality via a mobile device
EP3541025B1 (en) Techniques for messaging bot rich communication
TW201347467A (en) Method, client and server of transmitting group communication information
TWI621078B (en) Business object verification method and device
CN106487655B (en) Message interaction method and device and processing server
JP2018518771A (en) Transaction processing method and system
JP2006243985A (en) Message notification system and method, and server used therefor
US9521106B2 (en) Method, system and device for obtaining potential friends information
CN106161199B (en) A kind of Content of Communication treating method and apparatus
TWI462534B (en) Information transmission method and device in instant messaging
US7660848B2 (en) Information terminal, and server for efficiently exchanging messages via a network
CN109768918A (en) For realizing the method and apparatus of instant messaging
KR20050114805A (en) A system and method for real-rime representing the status of messenger users and supporting the real-time conversation between them and a computer-readable medium recorded a program for executing thereof
CN104079618A (en) Methods and device for conducting remote resource sharing and access through browser
TW201222445A (en) Method and device for initiating establishment of social network service relationship

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees