CN113992460B - Message sending method, device, electronic equipment and storage medium - Google Patents

Message sending method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113992460B
CN113992460B CN202111232746.1A CN202111232746A CN113992460B CN 113992460 B CN113992460 B CN 113992460B CN 202111232746 A CN202111232746 A CN 202111232746A CN 113992460 B CN113992460 B CN 113992460B
Authority
CN
China
Prior art keywords
message
account
group
user accounts
sent
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202111232746.1A
Other languages
Chinese (zh)
Other versions
CN113992460A (en
Inventor
梁栩华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111232746.1A priority Critical patent/CN113992460B/en
Publication of CN113992460A publication Critical patent/CN113992460A/en
Application granted granted Critical
Publication of CN113992460B publication Critical patent/CN113992460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a message sending method, a message sending device, an electronic device and a storage medium, wherein the message sending method comprises the following steps: receiving a message to be sent by a service end, wherein the message to be sent comprises at least one message content and an account group identifier corresponding to each message content; acquiring account related information of user accounts to be grouped, grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts; and sending message content corresponding to the target account group identification to each group of user accounts according to the target account group identification corresponding to each group of user accounts. By enabling clients belonging to different groups to display different message contents, individuation and targeted pushing of the downlink messages can be realized, and the sending function of the downlink messages is enriched.

Description

Message sending method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a message sending method, a device, an electronic apparatus, a computer storage medium, and a computer program product.
Background
With the rapid development of internet technology, each live platform needs to simultaneously maintain a large number of live rooms, for example, sending video streams of the live rooms to audience terminals, being responsible for information transmission between the live rooms and the audience terminals, pushing downlink messages to the live rooms and the audience terminals, and the like.
In the related art, a downlink message (e.g., a top notification message, a pet upgrade message, a chat room expression message, etc.) may be issued to all online clients (e.g., a viewer side and/or a host side) through a server. And each client displays the same downlink message. Or the downlink message can be sent to the designated client, and only the designated client can display the downlink message. However, the inventors found that the downlink message transmission method in the related art has a problem of a single format.
Disclosure of Invention
The present disclosure provides a message sending method, apparatus, electronic device, computer storage medium, and computer program product, so as to at least solve the problem in the related art that the form of sending a downlink message to a client is relatively single. The technical scheme of the present disclosure is as follows:
in a first aspect, an embodiment of the present application provides a method for sending a message, including:
Receiving a message to be sent by a service end, wherein the message to be sent comprises at least one message content and account group identifiers corresponding to each message content;
acquiring account related information of user accounts to be grouped, grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts;
And sending message content corresponding to the target account group identification to each group of user accounts according to the target account group identification corresponding to each group of user accounts.
In one embodiment, the method further comprises:
receiving an account grouping mode corresponding to the message to be sent, which is sent by the service end;
Grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts, wherein the method comprises the following steps:
And grouping the user accounts to be grouped according to the account related information according to an account grouping mode corresponding to the message to be sent, and determining a target account group identifier corresponding to each group of user accounts.
In one embodiment, the account related information is an account identification;
The grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts, including:
performing conversion processing on account identifiers of each user account to be grouped to obtain an identifier conversion result;
And obtaining a mapping relation between the identification conversion result and the account group identification, and determining the target account group identification corresponding to the identification conversion result of each user account to be grouped according to the mapping relation.
In one embodiment, the account related information is account attribute information;
The grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts, including:
And determining account group identifications corresponding to the account attribute information of each user account to be grouped from the mapping relation of the account attribute information and the account group identifications as the target account group identifications.
In one embodiment, the message to be sent by the receiving service end includes:
the information to be sent is obtained from a first information queue, the information in the first information queue is obtained from a plurality of second information queues at intervals of a first time length and is stored in an aggregation mode, and the second information queues correspond to information types and are used for storing the information under the information types sent by the service end.
In one embodiment, the obtaining the message to be sent from the first message queue includes:
And acquiring the messages stored in the second time length from the first message queue at intervals of the second time length, and taking each message stored in the second time length as the message to be sent.
In one embodiment, the message content includes a message text and a message display mode, and the message content is used for indicating the client where the user account is located to display the message text according to the message display mode.
In a second aspect, an embodiment of the present application provides a message sending apparatus, including:
the message receiving module is configured to execute a message to be sent by a receiving service end, wherein the message to be sent comprises at least one message content and an account group identifier corresponding to the message content;
the grouping module is configured to acquire account related information of user accounts to be grouped, group the user accounts to be grouped according to the account related information, and determine a target account group identifier corresponding to each group of user accounts;
And the message sending module is configured to execute the target account group identification corresponding to each group of the user accounts and send message content corresponding to the target account group identification to each group of the user accounts.
In one embodiment, the apparatus further comprises:
the grouping mode receiving module is configured to execute an account grouping mode corresponding to the message to be sent and sent by the service end;
The grouping module is configured to perform grouping of the user accounts to be grouped according to the account related information according to an account grouping mode corresponding to the message to be sent, and determine a target account group identifier corresponding to each group of user accounts.
In one embodiment, the account related information is an account identification; the grouping module comprises:
the conversion unit is configured to perform conversion processing on account identifiers of the user accounts to be grouped to obtain an identifier conversion result;
And the grouping unit is configured to acquire a mapping relation between the identification conversion result and the account group identifications, and determine the target account group identifications corresponding to the identification conversion result of each user account to be grouped according to the mapping relation.
In one embodiment, the account related information is account attribute information; the grouping module is configured to determine an account group identifier corresponding to the account attribute information of each user account to be grouped from the mapping relation of the account attribute information and the account group identifier, and the account group identifier is used as the target account group identifier.
In one embodiment, the message receiving module is configured to obtain the message to be sent from a first message queue, where the message in the first message queue is obtained from a plurality of second message queues at intervals of a first time length and stored in an aggregation manner, and the second message queue corresponds to a message type and is used for storing the message under the message type sent by the service end.
In one embodiment, the message receiving module is configured to obtain, from the first message queue, the messages stored in the second time duration every second time duration, and use each message stored in the second time duration as the message to be sent.
In one embodiment, the message content includes a message text and a message display mode, and the message content is used for indicating the client where the user account is located to display the message text according to the message display mode.
In a third aspect, an embodiment of the present application provides an electronic device, including:
A processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement a messaging method as described in any of the embodiments of the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method for sending a message according to any one of the embodiments of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, where the computer program product includes instructions, where the instructions when executed by a processor of an electronic device enable the electronic device to perform the messaging method according to any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
At least one message content corresponding to the account group identification is configured in the message to be sent. Grouping the user accounts to be grouped according to the account association information of the user accounts to be grouped, determining a target account group identifier corresponding to each group of user accounts, and sending message content corresponding to the target account group identifier to each group of user accounts, so that the user accounts belonging to different groups can display different message contents, on one hand, individuation and targeted pushing of downlink messages are realized, and the sending function of the downlink messages is enriched; on the other hand, the association between the downstream message and the user account can also be increased.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is an application environment diagram illustrating a message transmission method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of messaging according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a method of messaging according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a message transmitting apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram of an electronic device, shown according to another exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be further noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
The message sending method provided by the disclosure can be applied to an application environment as shown in fig. 1. Wherein the service server 110 interacts with the message server 120 through a network. The message server 120 interacts with N terminals 130 through a network. N is any positive integer. The service server 110 is a server with at least a plurality of service servers deployed therein. The message server 120 is a server in which at least a messaging service is deployed. The service server 110 sends a message to be sent to the message server 120, where the message to be sent includes at least one message content and an account group identifier corresponding to the message content. The message server 120 groups user accounts to be grouped in the connected terminal 110, determines a target account group identifier corresponding to each group of user accounts, and sends message content corresponding to the target account group identifier to each group of user accounts, so that the terminal 110 displays the received message content.
The service server 110 and the message server 120 may be implemented as separate servers or a server cluster formed by a plurality of servers. The terminal 130 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices.
Fig. 2 is a flowchart illustrating a message transmission method according to an exemplary embodiment, which is used in a message server as shown in fig. 2, and includes the following steps.
In step S210, a message to be sent by the service end is received, where the message to be sent includes at least one message content and an account group identifier corresponding to the message content.
The message to be sent refers to a message which needs to be pushed by the message server. There may be a plurality of messages to be transmitted, and for each message to be transmitted, each message to be transmitted may be processed as follows. Message content may refer to content that is actually capable of being presented on a client page. The message content may include, but is not limited to, message text, message display mode, etc., for example, the message to be sent includes message content a: "text A", message content B: "text B", wherein message content a corresponds to account group identification a; message content B corresponds to account group identification B.
Specifically, the service end configures the message to be sent in the service server. And after receiving the message to be sent, the service server sends the message to be sent to the message server so that the message server receives the message to be sent.
In step S220, account related information of the user accounts to be grouped is obtained, the user accounts to be grouped are grouped according to the account related information, and a target account group identifier corresponding to each group of user accounts is determined.
Wherein the user accounts to be grouped may be user accounts currently corresponding to clients in the server connection, the number including one or more.
The account-associated information may be information that can be obtained directly from the client, e.g., terminal device version number, client version, client identification, etc.; the information obtained by further processing the information directly obtained from the client may also be information obtained by, for example, further determining the city in which the client is currently located according to the position coordinates reported by the client; the account history (e.g., live room access record) is further queried based on the account identification reported by the client.
Specifically, in one embodiment, the target account group identifier to which each user account to be grouped belongs may be carried in a configuration file of the located client. After a connection relationship is established between the client and the message server, each client reports the respective target account group identifier to the message server, so that the server groups the user accounts to be grouped in the connection to obtain at least one group of user accounts and the target account group identifier corresponding to each group of user accounts.
In another embodiment, the target account group identifier to which each user account to be grouped belongs may also be determined by the client according to a preset account grouping manner. For example, the account group identifier is preset to be determined according to the current position, then the client determines the target account group identifier of the user account according to the current position after establishing a connection relationship with the message server, and sends the target account group identifier of the user account to the message server, so that the server groups the user accounts to be grouped in the connection to obtain at least one group of user accounts and the target account group identifier corresponding to each group of user accounts.
According to the embodiment, the client side automatically determines the target account group identification of the user account, so that the determination efficiency of the account group identification can be improved, and the operation pressure of the server is reduced.
In yet another embodiment, the target account group identifier to which each user account to be grouped belongs may also be determined by the server according to a pre-acquired account grouping manner. For example, the account grouping mode is to determine the target account group identifier of each user account to be grouped according to the current position of the client, and then the client reports the current position to the server after establishing a connection relationship with the message server, so that the server determines the target account group identifier of each user account to be grouped according to the current position, and further groups the user accounts to be grouped according to the target account group identifier of each user account to be grouped, so as to obtain at least one group of user accounts and the target account group identifier corresponding to each group of user accounts.
In step S230, according to the target account group identifier corresponding to each group of user accounts, message content corresponding to the target account group identifier is sent to each group of user accounts.
Specifically, after determining the target group identifier of each group of user accounts, the message server acquires the message content corresponding to the target account group identifier from the message to be sent. And sending the message content corresponding to the target account group identification to each group of user accounts so that the client side where each group of user accounts is located displays the message content.
In one embodiment, the client may display the message content at a preset location. The preset position may be determined depending on the message type of the message to be transmitted, etc. For example, if the message type is a top notification message, the message content may be displayed in the form of a top pop-up window; the message type is a chat room emoticon message, then the message content may be displayed at the emoticon addition of the chat window.
In the message sending method, at least one message content corresponding to the account group identifier is configured in the message to be sent. Grouping the user accounts to be grouped according to the account association information of the user accounts to be grouped, determining a target account group identifier corresponding to each group of user accounts, and sending message content corresponding to the target account group identifier to each group of user accounts, so that the user accounts belonging to different groups can display different message contents, on one hand, individuation and targeted pushing of downlink messages are realized, and the sending function of the downlink messages is enriched; on the other hand, the association between the downstream message and the user account can also be increased.
In an exemplary embodiment, the method further comprises: and receiving an account grouping mode corresponding to the message to be sent, which is sent by the service terminal.
The account grouping manner may be, but not limited to, one or more of a preset algorithm, a classified search, etc. It will be appreciated that different account groupings may be employed for different account association information.
Specifically, the account grouping mode and the message to be sent have a corresponding relationship. When configuring the message to be sent, the service end can synchronously configure an account grouping mode suitable for the message to be sent, and the message to be sent and the account grouping mode corresponding to the message to be sent are sent to the message server through the service server, so that the message server groups the user accounts to be grouped according to the account grouping mode corresponding to the message to be sent and account related information of each user account to be grouped, and a target account group identifier corresponding to each group of user accounts is determined.
In this embodiment, by configuring a corresponding account grouping manner for each message to be sent, a plurality of user accounts to be grouped in the connection can be grouped more accurately and more in line with an application scenario of the message to be sent, thereby helping to promote the association between the message and the user.
In an exemplary embodiment, the account related information is an account identification; step S220, grouping user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts, including: performing conversion processing on account identifiers of each user account to be grouped to obtain an identifier conversion result; and obtaining a mapping relation between the identification conversion result and the account group identifications, and determining a target account group identification corresponding to the identification conversion result of each user account to be grouped according to the mapping relation.
Wherein the account identification may be a unique representation of the user account, e.g., if the account grouping is for registered users, the account identification may be a registered account number for the application; if the account grouping is for the terminal device, the account identification may be the terminal device identification.
Specifically, after the client identifier is obtained, the message server converts the account identifier into a character string with a preset length through a preset algorithm. The preset algorithm may be determined according to actual requirements, for example, a hash algorithm. The message server converts the obtained character string to obtain the corresponding intermediate parameter. And performing modulo operation on the intermediate parameter and a preset base number (for example, 10), and taking the remainder as an identification conversion result. And inquiring and obtaining a target account group identifier corresponding to the identifier conversion result of each user account to be grouped by the server according to the preset mapping relation between the identifier conversion result and the account group identifier.
In an exemplary embodiment, the account related information is account attribute information; step S220, grouping user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts, including: and determining an account group identifier corresponding to the account attribute information of each user account to be grouped from the mapping relation between the account attribute information and the account group identifier as a target account group identifier.
The account attribute information may be used to characterize, among other things, the characteristics and nature of the user account, such as, for example, user gender, access records (e.g., live room access records), geographic location, and the like.
Specifically, a corresponding relation between account attribute information and account group identifiers is preconfigured in the message server, and after the account attribute information is acquired, the account group identifier corresponding to the account attribute information of each user account to be grouped is inquired from the corresponding relation and is used as a target account group identifier of the user account to be grouped.
In one example, client version 1 is preconfigured with account group identification a; client version 2 corresponds to account group identification B. If the client version of a user account to be grouped is version 1, the target account group identifier is an account group identifier A. In another example, a user account corresponding account group identifier a for which a gift certificate exists is preconfigured, and a user account corresponding account group identifier B for which a gift certificate does not exist. If the gift record exists in the historical access record of a certain user account to be grouped, the target account group identifier of the user account to be grouped is an account group identifier A.
In this embodiment, by setting an account grouping manner corresponding to a specific type of account association information in the message server, the message server can flexibly group each user account to be grouped in the connection, so that the message sending function is more comprehensive.
In an exemplary embodiment, step S210, receiving a message to be sent by a service end includes: and acquiring the information to be transmitted from a first information queue, wherein the information in the first information queue is acquired from a plurality of second information queues at intervals of a first time length and is stored in an aggregation mode, and the second information queue corresponds to the information type and is used for storing the information under the information type transmitted by the service terminal.
Specifically, as shown in fig. 3, the message server is deployed with a signaling writing service, a signaling aggregation service, and a live long connection service. In the writing stage, each service end sends the message to be sent and the corresponding message type to the signaling writing service through an RPC (Remote Procedure Call Protocol, remote call protocol) protocol. The message includes at least one message content and an account group identification corresponding to the message content. The signaling writing service writes the message into a second message queue corresponding to the message type of the message. The second message queue may store messages using data structures such as Redis Set (Set of key-value databases), redis Zset (Set of sequential attributes in key-value databases), and the like.
In the aggregation stage, the aggregation service acquires the unprocessed messages from the corresponding second message queues of each message type every first time length. The signaling aggregation service aggregates the acquired as-yet-unprocessed messages into a whole as an aggregated message and writes the aggregated message into the first message queue. The first message queue may store the aggregated message using a data structure such as Redis Set, redis Zset, etc.
In the sending stage, the live broadcast long connection service acquires the aggregation messages which are not processed in the second time period from the first message queue every second time period, and each message in the aggregation messages which are not processed is used as a message to be sent. For each message to be sent, the live long connection service obtains account related information of each user account to be grouped in the connection. And processing the account association information according to an account grouping mode corresponding to the message to be sent to obtain target account group identifiers of all the user accounts to be grouped, and grouping the user accounts to be grouped. The specific manner in which the identification of the target account group is determined may be referred to in the above embodiments and is not specifically described herein. The live broadcast long connection service searches the message content corresponding to the target account group identifier from the message to be sent, and sends the message content corresponding to the target account group identifier to each corresponding group of user accounts.
In the embodiment, by grouping the user accounts, the user accounts belonging to different groups can display different message contents, so that on one hand, individuation and targeted pushing of the downlink message are realized, and the sending function of the downlink message is enriched; on the other hand, the association between the downstream message and the user can also be increased.
In an exemplary embodiment, the message content includes message text and message display means.
The message display mode is used for representing a style of presenting the target message content on the client page, and for example, may include information such as text display color, text font size, font, display shape, size and the like.
Specifically, after receiving the message text and the message display mode sent by the message server, the client side where each user account is located displays the message text at a preset position of the page according to the mode indicated by the message display mode. For example, the target account group identifier of a certain user account is an account group identifier a, the message server obtains a message text corresponding to the account group identifier a from a message to be sent as a text a, and the message display mode is red, so that the text a of a red font is displayed at a preset position of the page.
In this embodiment, by configuring multiple message texts and message display styles corresponding to the message texts, user accounts in different groups can display diversified message contents, so that the display of downlink messages is more consistent with the user characteristics.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described above may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the steps or stages is not necessarily sequential, but may be performed in turn or alternately with at least a part of other steps or stages.
It should be understood that the same/similar parts of the embodiments of the method described above in this specification may be referred to each other, and each embodiment focuses on differences from other embodiments, and references to descriptions of other method embodiments are only needed.
Fig. 4 is a block diagram of a messaging device 400, according to an example embodiment. Referring to fig. 4, the apparatus includes a message receiving module 402, a grouping module 404, and a message transmitting module 406.
A message receiving module 402, configured to execute receiving a message to be sent by a service end, where the message to be sent includes at least one message content and an account group identifier corresponding to the message content; a grouping module 404 configured to obtain account related information of the user accounts to be grouped, group the user accounts to be grouped according to the account related information, and determine a target account group identifier corresponding to each group of user accounts; the message sending module 406 is configured to send, to each group of user accounts, message content corresponding to the target account group identifier according to the target account group identifier corresponding to each group of user accounts.
In an exemplary embodiment, the apparatus 400 further comprises: the grouping mode receiving module is configured to execute an account grouping mode corresponding to the message to be sent, which is sent by the receiving service end; the grouping module is configured to perform grouping of the user accounts to be grouped according to the account related information according to the account grouping mode corresponding to the message to be sent, and determine the target account group identification corresponding to each group of user accounts.
In an exemplary embodiment, the account related information is an account identification; grouping module 404, comprising: the conversion unit is configured to perform conversion processing on account identifiers of each user account to be grouped to obtain an identifier conversion result; and the grouping unit is configured to acquire the mapping relation between the identification conversion result and the account group identifications, and determine the target account group identifications corresponding to the identification conversion result of each user account to be grouped according to the mapping relation.
In an exemplary embodiment, the account related information is account attribute information; the grouping module 404 is configured to determine, as the target account group identifier, an account group identifier corresponding to the account attribute information of each user account to be grouped from the mapping relationship of the account attribute information and the account group identifier.
In an exemplary embodiment, the message receiving module 402 is configured to perform acquiring a message to be sent from a first message queue, where the message in the first message queue is acquired from a plurality of second message queues at intervals of a first time length and is stored in an aggregate manner, where the second message queue corresponds to a message type, and is used for storing a message under the message type sent by a service end.
In an exemplary embodiment, the message receiving module 402 is configured to perform obtaining, from the first message queue, the messages stored in the second time period every second time period, and take each message stored in the second time period as a message to be sent.
In an exemplary embodiment, the message content includes a message text and a message display mode, and the message content is used for indicating the client where the user account is located to display the message text according to the message display mode.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 5 is a block diagram of an electronic device S00 for displaying messages, according to an example embodiment. For example, electronic device S00 may be a server. Referring to fig. 5, electronic device S00 includes a processing component S20 that further includes one or more processors, and memory resources represented by memory S22, for storing instructions, such as applications, executable by processing component S20. The application program stored in the memory S22 may include one or more modules each corresponding to a set of instructions. Further, the processing component S20 is configured to execute instructions to perform the above-described method.
The electronic device S00 may further include: the power supply assembly S24 is configured to perform power management of the electronic device S00, the wired or wireless network interface S26 is configured to connect the electronic device S00 to a network, and the input output (I/O) interface S28. The electronic device S00 may operate based on an operating system stored in the memory S22, such as Windows Server, mac OS X, unix, linux, freeBSD, or the like.
In an exemplary embodiment, a computer readable storage medium comprising instructions, such as a memory S22 comprising instructions, is also provided, the instructions being executable by a processor of the electronic device S00 to perform the above-described method. The storage medium may be a computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, comprising instructions therein, which are executable by a processor of the electronic device S00 to perform the above-described message display method.
It should be noted that the descriptions of the foregoing apparatus, the electronic device, the computer readable storage medium, the computer program product, and the like according to the method embodiments may further include other implementations, and the specific implementation may refer to the descriptions of the related method embodiments and are not described herein in detail.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method of transmitting a message, comprising:
Receiving a plurality of messages to be sent by a service end, wherein each message to be sent comprises a plurality of message contents and account group identifiers corresponding to each message content;
acquiring account related information of user accounts to be grouped, grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts; the user account to be grouped is a user account corresponding to a client in the connection of the message server;
According to the target account group identification corresponding to each group of user accounts, obtaining message content corresponding to the target account group identification from the message to be sent, and sending the message content corresponding to the target account group identification to each group of user accounts, so that the client side where each group of user accounts is located displays the message content under the corresponding target account group identification; wherein the content of the messages displayed by the user accounts belonging to different groups is different;
The message to be sent by the receiving service end includes: the information to be sent is obtained from a first information queue, the information in the first information queue is obtained from a plurality of second information queues at intervals of a first time length and is stored in an aggregation mode, the second information queues correspond to information types and are used for storing information under the information types sent by the service end, and the information under the information types sent by the service end comprises at least one information content and account group identifications corresponding to the information content;
The obtaining the message to be sent from the first message queue includes: and acquiring the messages stored in the second time length from the first message queue at intervals of the second time length, and taking each message stored in the second time length as the message to be sent.
2. The message transmission method according to claim 1, characterized in that the method further comprises:
receiving an account grouping mode corresponding to the message to be sent, which is sent by the service end;
Grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts, wherein the method comprises the following steps:
And grouping the user accounts to be grouped according to the account related information according to an account grouping mode corresponding to the message to be sent, and determining a target account group identifier corresponding to each group of user accounts.
3. The messaging method of claim 1, wherein the account related information is an account identification;
The grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts, including:
performing conversion processing on account identifiers of each user account to be grouped to obtain an identifier conversion result;
And obtaining a mapping relation between the identification conversion result and the account group identification, and determining the target account group identification corresponding to the identification conversion result of each user account to be grouped according to the mapping relation.
4. The message transmission method according to claim 1, wherein the account related information is account attribute information;
The grouping the user accounts to be grouped according to the account related information, and determining a target account group identifier corresponding to each group of user accounts, including:
And determining account group identifications corresponding to the account attribute information of each user account to be grouped from the mapping relation of the account attribute information and the account group identifications as the target account group identifications.
5. The message sending method according to any one of claims 1 to 4, wherein the message content includes a message text and a message display mode, and the message content is used for instructing a client where the user account is located to display the message text according to the message display mode.
6. A message transmission apparatus, comprising:
The message receiving module is configured to execute a plurality of messages to be sent by a receiving service end, wherein each message to be sent comprises a plurality of message contents and account group identifications corresponding to the message contents;
The grouping module is configured to acquire account related information of user accounts to be grouped, group the user accounts to be grouped according to the account related information, and determine a target account group identifier corresponding to each group of user accounts; the user account to be grouped is a user account corresponding to a client in the connection of the message server;
The message sending module is configured to execute a target account group identifier corresponding to each group of user accounts, acquire message content corresponding to the target account group identifier from the message to be sent, and send the message content corresponding to the target account group identifier to each group of user accounts, so that the client side where each group of user accounts is located displays the message content under the corresponding target account group identifier; wherein the content of the messages displayed by the user accounts belonging to different groups is different;
The message receiving module is further configured to obtain the message to be sent from a first message queue, wherein the message in the first message queue is obtained from a plurality of second message queues at intervals of a first time length and is stored in an aggregation mode, the second message queues correspond to message types and are used for storing the message under the message types sent by the service end, and the message under the message types sent by the service end comprises at least one message content and account group identifications corresponding to the message content;
The message receiving module is further configured to acquire the messages stored in the second time duration from the first message queue every second time duration, and take each message stored in the second time duration as the message to be sent.
7. The message transmission apparatus according to claim 6, characterized in that the apparatus further comprises:
the grouping mode receiving module is configured to execute an account grouping mode corresponding to the message to be sent and sent by the service end;
The grouping module is configured to perform grouping of the user accounts to be grouped according to the account related information according to an account grouping mode corresponding to the message to be sent, and determine a target account group identifier corresponding to each group of user accounts.
8. The messaging device of claim 6, wherein the account related information is an account identification; the grouping module comprises:
the conversion unit is configured to perform conversion processing on account identifiers of the user accounts to be grouped to obtain an identifier conversion result;
And the grouping unit is configured to acquire a mapping relation between the identification conversion result and the account group identifications, and determine the target account group identifications corresponding to the identification conversion result of each user account to be grouped according to the mapping relation.
9. The message transmission apparatus according to claim 6, wherein the account related information is account attribute information; the grouping module is configured to determine an account group identifier corresponding to the account attribute information of each user account to be grouped from the mapping relation of the account attribute information and the account group identifier, and the account group identifier is used as the target account group identifier.
10. The message transmission apparatus according to any one of claims 6 to 9, wherein the message content includes a message text and a message display mode, and the message content is used to instruct a client where the user account is located to display the message text according to the message display mode.
11. An electronic device, comprising:
A processor;
a memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the messaging method of any of claims 1 to 5.
12. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the messaging method of any of claims 1 to 5.
CN202111232746.1A 2021-10-22 2021-10-22 Message sending method, device, electronic equipment and storage medium Active CN113992460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111232746.1A CN113992460B (en) 2021-10-22 2021-10-22 Message sending method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111232746.1A CN113992460B (en) 2021-10-22 2021-10-22 Message sending method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113992460A CN113992460A (en) 2022-01-28
CN113992460B true CN113992460B (en) 2024-08-13

Family

ID=79740334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111232746.1A Active CN113992460B (en) 2021-10-22 2021-10-22 Message sending method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113992460B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065721B (en) * 2022-04-21 2024-06-21 北京达佳互联信息技术有限公司 Message processing method, device, electronic equipment and storage medium
CN116385073A (en) * 2023-02-24 2023-07-04 中电金信软件有限公司 Information sending method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717132A (en) * 2015-02-13 2015-06-17 腾讯科技(深圳)有限公司 Information sending method, device and system
CN105991408A (en) * 2015-02-12 2016-10-05 腾讯科技(深圳)有限公司 Message processing method, message processing device and processing server
CN112835929A (en) * 2021-01-28 2021-05-25 卓望数码技术(深圳)有限公司 User management method, system and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472400B (en) * 2015-12-24 2019-06-11 Tcl集团股份有限公司 A kind of information push method and system
CN106997357B (en) * 2016-01-22 2020-10-09 腾讯科技(深圳)有限公司 Message processing method, device and system
CN106027381B (en) * 2016-07-28 2019-04-30 北京北信源软件股份有限公司 The method of message grouping control in instant messaging
CN108123839B (en) * 2017-12-21 2020-08-21 Oppo广东移动通信有限公司 Message sending method, device, server and storage medium
CN110300050B (en) * 2019-05-23 2023-02-07 中国平安人寿保险股份有限公司 Message pushing method and device, computer equipment and storage medium
CN112583896B (en) * 2020-11-30 2023-03-21 北京达佳互联信息技术有限公司 Session management method, session management device, electronic equipment, session management server and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991408A (en) * 2015-02-12 2016-10-05 腾讯科技(深圳)有限公司 Message processing method, message processing device and processing server
CN104717132A (en) * 2015-02-13 2015-06-17 腾讯科技(深圳)有限公司 Information sending method, device and system
CN112835929A (en) * 2021-01-28 2021-05-25 卓望数码技术(深圳)有限公司 User management method, system and storage medium

Also Published As

Publication number Publication date
CN113992460A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
US10009303B2 (en) Message push method and apparatus
CN113992460B (en) Message sending method, device, electronic equipment and storage medium
US20200333930A1 (en) Information processing method, terminal, server, and computer storage medium
CN114124861B (en) Message mass-sending method, device, computer equipment and storage medium
TW201346761A (en) Transmitting and displaying offline data
US11244153B2 (en) Method and apparatus for processing information
CN112738050B (en) Method, computer readable medium and system for integrating additional information into a telecommunications call
CN113779422B (en) Method and device for realizing relationship chain label, electronic equipment and storage medium
CN112689202B (en) Live broadcast room message processing method and device, server and storage medium
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN107391764B (en) Service data query method
CN110602171B (en) Interaction method and device
CN109032920A (en) A kind of method and device for being tested protocol interface
CN114298799A (en) Order information display method and device, storage medium and computer equipment
CN114679602A (en) Data processing method and device, electronic equipment and storage medium
CN113364664A (en) Instant messaging method and device
CN113438497A (en) Data processing method and device, electronic equipment and computer readable storage medium
KR100461730B1 (en) Mobile application server for various mobile devices
CN114327517B (en) Software-driven implementation method and system
CN113691438B (en) Instant message processing method, device, equipment and storage medium
CN114968455B (en) Report generation method and device of application interface and electronic equipment
CN113014470B (en) Receipt processing method and device for session message in instant messaging application
CN116385073A (en) Information sending method and device
CN117201597A (en) Message processing method, device, electronic equipment and storage medium
CN113761039A (en) Method and device for processing information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant