CN110855544A - Message sending method, device and readable medium - Google Patents

Message sending method, device and readable medium Download PDF

Info

Publication number
CN110855544A
CN110855544A CN201810950577.7A CN201810950577A CN110855544A CN 110855544 A CN110855544 A CN 110855544A CN 201810950577 A CN201810950577 A CN 201810950577A CN 110855544 A CN110855544 A CN 110855544A
Authority
CN
China
Prior art keywords
chat
client
resource
message
chat message
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.)
Granted
Application number
CN201810950577.7A
Other languages
Chinese (zh)
Other versions
CN110855544B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810950577.7A priority Critical patent/CN110855544B/en
Publication of CN110855544A publication Critical patent/CN110855544A/en
Application granted granted Critical
Publication of CN110855544B publication Critical patent/CN110855544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a message sending method, a message sending device and a readable medium, and relates to the field of electronic commerce. The method comprises the following steps: the method comprises the steps that a first client side obtains chat contents through a first group chat interface, generates a first chat message and sends the first chat message to at least two second client sides participating in a first group chat; the second client receives and displays the first chat message; and when the second client meets the distribution condition, automatically acquiring all or part of the first donation resources in the first chat message. By setting the additional resource chat mode in the group chat, the first client adds the donation resource when sending the first message in the first group chat of more than three persons, namely at least three clients participate in sending and receiving the donation resource, the number of the virtual resources received by each client is different, and the problems that although the transfer operation is carried out for many times in the double chat, the number of the virtual resources owned by both parties is not changed, and the data transmission burden of the payment server is increased are solved.

Description

Message sending method, device and readable medium
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a method and an apparatus for sending a message, and a readable medium.
Background
When the instant messaging program is used for communication, the message types which can be sent comprise text messages, voice messages, video messages, emotion messages, picture messages, red packet messages, additional resource messages and the like. The additional resource message refers to a message type with a donation resource (such as physical currency, virtual currency, etc.) at the same time when the message is sent. When the user who receives the additional resource message checks the additional resource message, the instant messaging program can automatically pick up the donation resource attached to the additional resource message.
In the related technology, after a user sending an additional resource message sends the additional resource message in a chat interface with another account a and pays for corresponding donated resources through a payment server, the additional resource message is sent to another account a of the user in an instant messaging program, and when another account a views the additional resource message through the instant messaging program, the donated resources paid by the user can be automatically received.
The two parties send the additional resource information mutually, because the sent additional resource information is definitely picked up by the user of the receiving party, and the chat of the two parties usually sends one information for the two persons in turn, which is similar to the frequent transfer operation between the two parties, the final result is that one party transfers a certain amount of donated resources to the other party, but carries out data interaction caused by multiple transfers. Such as: the account a and the account b chat through an additional resource chat mode, when a message is sent to transfer 0.5 yuan to the opposite side, after 20 minutes of chat, the account transfer result is obtained by counting that the account a transfers 1 yuan to the account b, and the number of mutual transfer times reaches 64 times, so that system resources occupied by a payment server of an instant messaging application program when the donation resources are transferred are wasted, and the data transmission quantity of the payment server is increased.
Disclosure of Invention
The embodiment of the application provides a message sending method, a message sending device and a readable medium, which can solve the problem that the data transmission burden of a payment server is increased due to the effect that although the transfer operation is carried out for many times, the number of virtual resources owned by two parties is not changed because the number of virtual resources of sentence material messages set by the two parties is the same when 1 is chatted to 1. The technical scheme is as follows:
in one aspect, a method for sending a message is provided, the method including:
a first client acquires chat content through a first group chat interface in an additional resource chat mode, wherein the additional resource chat mode is a chat mode with additional donation resource information when a chat message is sent, and the first group chat interface is a chat interface for the first client to participate in first group chat;
after receiving a message sending request, the first client generates a first chat message according to the chat content and the donated resource information, wherein the first chat message corresponds to a resource allocation mode, the resource allocation mode is used for determining the allocation mode of the first donated resource, and the donated resource information comprises the number of the first donated resource;
the first client sends the first chat message to at least two second clients participating in the first group chat, wherein the second clients are clients participating in the first group chat except the first client;
the second client receives the first chat message and displays the first chat message through a second group chat interface, wherein the second group chat interface is a chat interface for the second client to participate in the first group chat;
and when the second client meets the allocation condition corresponding to the resource allocation mode, automatically acquiring all or part of the first donated resources in the first chat message.
In another aspect, a message sending method is provided, and the method includes:
receiving a first chat message sent by a first client participating in a first group chat, wherein the first chat message is generated according to chat content and a first donation resource acquired by the first client through a first group chat interface in an additional resource chat mode, and the first chat message corresponds to a resource allocation mode;
sending the first chat message to at least two second clients participating in the first group chat, the second clients being clients participating in the first group chat other than the first client;
and when the second client side meets the allocation condition corresponding to the resource allocation mode, transferring all or part of the first donated resources in the first chat message to an account corresponding to the second client side according to the resource allocation mode.
In another aspect, a message sending method is provided, and the method includes:
obtaining chat content through a first group chat interface in an additional resource chat mode, wherein the additional resource chat mode is a chat mode in which donation resource information is added when a chat message is sent, and the first group chat interface is a chat interface in which the first client participates in first group chat;
after receiving a message sending request, generating a first chat message according to the chat content and the donated resource information, wherein the first chat message corresponds to a resource allocation mode, and the resource allocation mode is used for determining the allocation mode of the first donated resource;
and sending the first chat message to at least two second clients participating in the first group chat, wherein the second clients are clients participating in the first group chat except the first client.
In an optional embodiment, after receiving the message sending request, the method further includes:
and sending order information to a server according to the sending request, wherein the order information comprises the donation resource information, the order information is used for the server to transfer the first donation resource from an account corresponding to the first client to a transfer account, and the transfer account is used for transferring the first donation resource.
In an optional embodiment, sending the order information to the server according to the sending request includes:
receiving payment operation, wherein the payment operation is used for paying the donated resources needing to be paid by the first client;
and sending the order information to the server according to the payment operation.
In an optional embodiment, after sending the first chat message to at least two second clients participating in the first group chat, the method further includes:
displaying the first chat message in the first group chat interface, wherein donation resource information of the first donation resource attached to the first chat message is displayed on the peripheral side of the first chat message.
In an alternative embodiment, before obtaining the chat content through the first group chat interface in the additional resource chat mode, the method includes:
displaying a first group chat interface in a common chat mode, wherein the first group chat interface comprises a mode switching control;
receiving a first trigger operation on the mode switching control, wherein the first trigger operation is used for setting a chat mode of the first client participating in the first group chat to the additional resource chat mode;
and displaying a first group chat interface in the additional resource chat mode according to the first trigger operation.
In an optional embodiment, the first group chat interface further comprises a gifted resource setting control;
after receiving the message sending request, before generating a first chat message according to the chat content and the donation resource information, the method further comprises:
receiving a second trigger operation on the gifted resource setting control;
superimposing and displaying a donated resource setting card on the first group chat interface according to the second trigger operation, wherein the donated resource setting card is used for setting donated resource information of the first donated resource attached to the first chat message;
receiving a setting operation on the donated resource setting card, and determining donated resource information of the first donated resource corresponding to the first chat message according to the setting operation.
In an optional embodiment, when the resource allocation manner is to allocate the first donated resource corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random manner, the donated resource setting card is further configured to set a value of the n;
the determining donation resource information of the first donation resource corresponding to the first chat message according to the setting operation further includes:
and determining donation resource information of the first donation resource corresponding to the first chat message and the number n of distributed donation resources of the first donation resource according to the setting operation.
In an optional embodiment, the method further comprises:
displaying an account identifier of an account logged in the second client for getting the first donated resource at a preset position corresponding to the first chat message in the first group chat interface;
the account identification comprises at least one of an avatar, a nickname and an identity identification.
In an optional embodiment, the resource allocation manner includes:
distributing the first donation resources corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random manner, wherein n is a set positive integer;
or the like, or, alternatively,
distributing the first donation resource corresponding to the first chat message to the second client side viewing the first chat message in the first group chat in an equally-divided or random manner;
or the like, or, alternatively,
and distributing the first donation resource corresponding to the first chat message to all second clients in the first group chat in an equally-divided or random mode.
In another aspect, a message sending method is provided, and the method includes:
receiving the first chat message;
displaying the first chat message through a second group chat interface, wherein the second group chat interface is a chat interface for the second client to participate in the first group chat;
and when the allocation condition corresponding to the resource allocation mode is met, automatically acquiring all or part of the first donated resources in the first chat message.
In an optional embodiment, automatically acquiring all or part of the first donated resources in the first chat message when the allocation condition corresponding to the resource allocation manner is satisfied includes:
and sending a pickup request to the server, wherein the pickup request is used for the server to transfer all or part of the first donated resources from the transfer account to an account corresponding to the second client according to the resource allocation mode when the second client meets the allocation condition corresponding to the resource allocation mode.
In an alternative embodiment, receiving the first chat message and displaying the first chat message through a second group chat interface includes:
receiving the first chat message, and receiving a drawing signal of a dialog bubble corresponding to the first chat message, wherein the dialog bubble is used for displaying the first chat message;
sending a pick-up request to the server, comprising:
and sending a pickup request to the server according to the drawing signal.
In an optional embodiment, after automatically acquiring all or part of the first donated resources in the first chat message when the allocation condition corresponding to the resource allocation manner is satisfied, the method further includes:
receiving a pickup success indication sent by the server, wherein the pickup success indication comprises the number of the first donation resources picked up by the second client;
and displaying the first chat message after the first donated resource is picked up in the second group chat interface, wherein the number of the first donated resources picked up by the second client is displayed on the peripheral side of the first chat message.
In an optional embodiment, the method further comprises:
displaying a prompt control at a preset position of the second group chat interface in a superposed manner;
receiving a third trigger operation on the prompt control;
and displaying a total earning amount according to the third triggering operation, wherein the total earning amount comprises the total amount of the donated resources which are earned by the second client in the first group chat.
In another aspect, a message transmitting apparatus is provided, the apparatus including:
the system comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving a first chat message sent by a first client participating in first group chat, the first chat message is generated according to chat content and first donation resources acquired by the first client through a first group chat interface in an additional resource chat mode, and the first chat message corresponds to a resource allocation mode;
a sending module, configured to send the first chat message to at least two second clients participating in the first group chat, where the second clients are clients participating in the first group chat except for the first client;
and the transfer module is used for transferring all or part of the first donated resources in the first chat message to an account corresponding to the second client according to the resource allocation mode when the second client meets the allocation condition corresponding to the resource allocation mode.
In another aspect, an electronic device is provided, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the message sending method according to the embodiment of the present application.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the message sending method according to the embodiment of the present application.
In another aspect, a computer program product is provided, which when running on a computer, causes the computer to execute the message sending method according to the embodiment of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
by setting an additional resource chat mode in a group chat, when a first client sends a first message in a first group chat with more than three persons, a donation resource is added, namely in the first group chat, when the donation resource is divided by a second client, the number of messages sent by each client in the first group chat is not the same, so that the number of donation resources received by each client is also different, when the donation resource is randomly distributed by the second client, the number of donation resources received by each client is obviously not the same, namely after the additional resource chat mode is started in the group chat, at least three clients participate in sending and receiving the donation resources instead of simple 1-to-1 transfer, and finally, the number of virtual resources received and sent by each client is also different, thereby increasing the interest of the chat, and avoiding the situation that the number of virtual resources of the material messages set by both clients is the same when 1-to-1 chat is started, the effect that the number of virtual resources owned by both parties is not changed even though the transfer operation is performed for many times is caused, and the data transmission burden of the payment server is increased.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block diagram of a messaging system provided in an exemplary embodiment of the present application;
fig. 2 is a flowchart of a message sending method according to an exemplary embodiment of the present application;
fig. 3 is an interface diagram of a message sending method according to an exemplary embodiment of the present application;
fig. 4 is a flowchart of a message sending method according to another exemplary embodiment of the present application;
fig. 5 is an interface diagram of a message sending method according to another exemplary embodiment of the present application;
fig. 6 is a flowchart of a message sending method according to another exemplary embodiment of the present application;
fig. 7 is an interface diagram of a message sending method according to another exemplary embodiment of the present application;
fig. 8 is an interface diagram of a message sending method according to another exemplary embodiment of the present application;
fig. 9 is an interface diagram of a message sending method according to another exemplary embodiment of the present application;
fig. 10 is an interface diagram of a message sending method according to another exemplary embodiment of the present application;
fig. 11 is an interface diagram of a message sending method according to another exemplary embodiment of the present application;
fig. 12 is an interface diagram of a message sending method according to another exemplary embodiment of the present application;
fig. 13 is an interface diagram of a message sending method according to another exemplary embodiment of the present application;
fig. 14 is a block diagram of a message sending apparatus according to an exemplary embodiment of the present application;
fig. 15 is a block diagram of a message sending apparatus according to another exemplary embodiment of the present application;
fig. 16 is a block diagram of a message sending apparatus according to another exemplary embodiment of the present application;
fig. 17 is a block diagram of a terminal according to an exemplary embodiment of the present application;
fig. 18 is a block diagram of a server according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application are briefly described:
additional resources chat mode: the additional resource chat mode refers to a chat mode in which a donation resource is added when a chat message is sent, and optionally, when the client terminal which opens the additional resource chat mode sends the chat message, only after the chat message is edited and sent, the chat message defaults to the additional donation resource without setting the number of the donation resource before sending each time, for example: the client sends chat messages after setting the number of the donation resources to be 10, a first chat message is edited to be 'good at home', after click sending, the first chat message is sent and the donation resources 10 are attached to the first chat message, then the client edits a second chat message to obtain 'I is xxx', after click sending, the second chat message is sent, and the donation resources 10 are attached to the second chat message. Optionally, in the above example, the chat message is used as a text message for explanation, and in actual operation, the type of the chat message may also be at least one of a picture message, a video message, a voice message, a sharing link message, and an emoticon message.
The common chat mode comprises the following steps: the method refers to a common chat mode, namely, in the mode, the message sent by the client is a common chat message, and the common chat message is not added with donation resources.
Resource donation: refers to a resource to which a message is attached that is sent in an additional resource chat mode, and optionally, the complimentary resource may be at least one of physical currency, virtual currency, credit points.
In conjunction with the above noun introduction, a messaging system according to an embodiment of the present application is described, fig. 1 is a block diagram of a messaging system according to an exemplary embodiment of the present application, and as shown in fig. 1, the messaging system includes a first client 11, a second client 12, an instant messaging server 13, and a payment server 14;
in the embodiment of the present application, the first client 11 refers to a client sending a first chat message in a first group chat in an additional resource chat mode, where the first group chat includes at least three clients participating in a chat, and the first chat message is attached with a gifted resource. Optionally, the first group chat includes a first client 11 participating in chat and a second client 12 participating in the first group chat, where at least two second clients 12 receive the first chat message sent by the first client 11, as shown in fig. 1, the message sending system includes a second client 121 and a second client 122. Optionally, the first client 11 may also receive a chat message sent by the second client 12. The chat message sent by the second client 12 may be a normal chat message sent by the second client 12 in a normal chat mode, or may be a chat message with additional donation resources sent by the second client 12 in an additional resource chat mode.
Optionally, during the chat process, the first client 11 and the second client 12 send the chat message through the instant messaging server 13, that is, taking the example that the first client 11 sends the first chat message to the second client 12 as an illustration, the first client 11 first sends the first chat message to the instant messaging server 13, and after receiving the first chat message, the instant messaging server 13 sends the first chat message to the second client 12 in the first group chat.
Optionally, the first chat message sent by the first client 11 is sent in an additional resource chat mode, so that the first chat message is attached with the donation resource, and after the first client 11 pays for the donation resource attached to the first chat message through the payment server 14, the second client 12 receives the donation resource attached to the first chat message through the payment server 14.
Optionally, the first client 11, the second client 12 and the instant messaging server 13 communicate with each other through the communication network 15, and the first client 11, the second client 12 and the payment server 14 communicate with each other through the communication network 15.
It should be noted that the instant messaging server 13 and the payment server 14 may be implemented on the same server device, or may be implemented on different server devices, which is not limited in this embodiment of the present application.
It should be noted that the first client and the second client are application programs installed on different terminals, where the first client and the second client may be the same application program, or the first client and the second client may also be different application programs, which is not limited in this embodiment of the application.
With reference to the above noun introduction and the above description of the messaging system, fig. 2 is a flowchart of a messaging method provided in an exemplary embodiment of the present application, and is described by taking an application of the method in the first client 11 and the second client 12 shown in fig. 1 as an example, as shown in fig. 2, the method includes:
in step 201, a first client obtains chat content through a first group chat interface in an additional resource chat mode.
Optionally, the first group chat interface is a chat interface for the first client to participate in the first group chat, and the additional resource chat mode is a chat mode in which bonus resource information is added when sending a chat message.
Optionally, the chat content includes at least one of text content, picture content, video content, voice content, shared link content, and emoticon content.
Optionally, the first group chat interface is a three-person or more chat interface for the first client to participate in the first group chat.
Optionally, the first group chat interface includes a chat message display area and a chat message sending area, where the chat message display area is configured to display chat messages sent by at least three clients participating in the first group chat, and optionally, when displaying the chat message sent by each client, the sent chat message and the received chat message may be respectively displayed on the left and right sides of the first group chat interface, such as: when a first client displays a chat message in a chat message display area, displaying the chat message sent by a second client on the left side of the chat message display area, and displaying the chat message sent by the first client on the right side of the chat message display area; it is also possible to display both sent and received chat messages on one side of the first group chat interface.
Referring to fig. 3, schematically, a first group chat interface 31 is a 15-person chat interface for a first client to participate in a first group chat "xx chat group", and the first group chat interface 31 includes a chat message display area 311 and a chat message transmission area 312, wherein in the chat message display area 311, a chat message 32 transmitted by the first client is displayed on the right side of the chat message display area 311, and a chat message 33 transmitted by a second client is displayed on the left side of the chat message display area 311. It should be noted that the dashed box in fig. 3 is schematically shown, and is not necessarily present in actual operation.
Step 202, after receiving the message sending request, the first client generates a first chat message according to the chat content and the donation resource information.
Optionally, the donated resource information is used to indicate an amount of the first donated resource.
Optionally, the donated resource information of the first donated resource includes the number of the first donated resource, and optionally, the donated resource information further includes at least one of a type of the first donated resource and account information of an account registered in the first client.
The number of the first donated resources can be set or random; the type of the first donated resource includes at least one of a physical currency, a virtual currency, a credit, and a credit score; the account information of the account logged in the first client includes at least one of an account identifier, an account name and an account icon of the account.
Optionally, the first chat message corresponds to a resource allocation manner, and the resource allocation manner is used for determining an allocation manner of the first donated resource.
Optionally, when the resource allocation manner corresponding to the first chat message is that the first donated resources are picked up by the first n second clients viewing the first chat message, the value of n is used to indicate the number of shares of the first donated resources.
Illustratively, the message content of the first chat message is a text content "today is really good weather", the number of the first donation resources attached to the first chat message is "5.5 yuan", and the resource allocation manner corresponding to the first chat message is that the first donation resources are picked up by the first 3 second clients viewing the first chat message in a random allocation manner.
Optionally, the resource allocation manner may be explicitly included in the first chat message (that is, the first chat message includes the resource allocation manner), or may be determined in an implicit information manner according to the allocation manner of the first donated resource corresponding to the first chat message (that is, the first chat message does not include the allocation manner of the first donated resource, the allocation manner of the first donated resource is agreed between the first client and the second client, or the resource allocation manner of the first donated resource is a default allocation manner). Illustratively, when the resource allocation manner is explicitly included in the first chat message, the first chat message includes the chat content, the first donated resource and the resource allocation manner of the first donated resource, such as: the first chat message comprises chat content 'today weather is true and good', first donated resources '5.5 yuan' and a first donated resource allocation mode, 'the first 3 second clients viewing the first chat message randomly receive the first donated resources', and after receiving the first chat message, the second clients receive all or part of the first donated resources according to the first donated resources in the first chat message and the resource allocation mode; when the resource allocation mode determines the allocation mode of the first donated resource in the form of implicit information, the first client and the second client use the agreed allocation mode as the resource allocation mode of the first donated resource, so that the first chat message does not need to carry the resource allocation mode of the first donated resource, and the second client can receive all or part of the first donated resource according to the agreed allocation mode.
In step 203, the first client sends the first chat message to at least two second clients participating in the first group chat.
Optionally, the first client sends the first chat message to at least two second clients participating in the first group chat through the instant messaging server.
The second client is a client participating in the first group chat except the first client.
And step 204, the second client receives the first chat message and displays the first chat message through the second group chat interface.
Optionally, the second group chat interface is a chat interface for the second client to participate in the first group chat.
Optionally, the second group chat interface can be a chat interface in an additional resource chat mode, or a chat interface in a normal chat mode,
in step 205, when the second client meets the allocation condition corresponding to the resource allocation manner, all or part of the first donated resources in the first chat message are automatically acquired.
Optionally, the resource allocation manner includes any one of the following manners:
firstly, distributing first donation resources corresponding to a first chat message to first n second clients viewing the first chat message in a first group chat in an equally-divided or random manner, wherein n is a set positive integer;
optionally, when the resource allocation manner is the first allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is the top n clients viewing the first chat message in the first group chat.
Optionally, the above n is used to refer to the number of shares into which the first gifted resource attached to the first chat message is divided.
Optionally, when the value of n is 1, the second client may receive all the first donation resources attached to the first chat message; and when the value of n is more than 1, the second client can receive part of the first donation resources attached to the first chat message.
Secondly, distributing the first donation resources corresponding to the first chat message to a second client side for viewing the first chat message in the first group chat in an equally-divided or random mode;
optionally, when the resource allocation manner is a second allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is a client viewing the first chat message in the first group chat.
Optionally, when only one second client in the first group chat views the first chat message, the second client can receive all the first donation resources attached to the first chat message; when more than one second client in the first group chat views the first chat message, the second client can receive a part of the first donation resource attached to the first chat message.
And thirdly, distributing the first donation resources corresponding to the first chat message to all the second clients in the first group chat in an equally-divided or random mode.
Optionally, when the resource allocation manner is a third allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is a client participating in the first group chat.
In summary, in the message sending method provided by this embodiment, by setting the additional resource chat mode in the group chat, when the first client sends the first message in the first group chat with more than three persons, the first client is added with the gifting resource, that is, in the first group chat, when the gifting resource is shared by the second client, since the number of messages sent by each client in the first group chat is not the same, the number of gifting resources picked up by each client is also different, when the gifting resource is randomly distributed by the second client, it is obvious that the number of gifting resources picked up by each client is not the same, that is, after the additional resource chat mode is started in the group chat, at least three clients participate in sending and picking up the gifting resource, instead of simple 1 to 1 transfer, and finally the number of virtual resources picked up and sent out by each client is also different, the interest of chatting is increased, and the problem that the data transmission burden of a payment server is increased due to the effect that although the transfer operation is carried out for many times, the quantity of the virtual resources owned by both parties is not changed when the quantity of the virtual resources of the sentence material messages set by both parties is the same when 1 is used for 1.
With reference to the description of the noun introduction and the messaging system, fig. 4 is a flowchart of a messaging method provided in an exemplary embodiment of the present application, and is described by taking an application of the method in the first client 11 and the second client 12 shown in fig. 1 as an example, as shown in fig. 4, the method includes:
step 401, the first client displays the first group chat interface in the normal chat mode.
Optionally, the first group chat interface is configured to display chat messages sent by at least three clients participating in the first group chat, and the first group chat interface includes a mode switching control. Optionally, the mode switch control is used to switch between a normal mode and an additional resource chat mode. The mode switching control displayed in the first group chat interface in the normal mode may be the same as or different from the mode switching control displayed in the first group chat interface in the additional resource chat mode, and this is not limited in this embodiment of the application.
In step 402, a first client receives a first trigger operation on a mode switching control.
Optionally, when the first client is an application installed on the mobile terminal, the first trigger operation may be a touch operation on the mode switching control, and when the first client is an application installed in a terminal such as a computer or a notebook computer, the first trigger operation may be a click operation on the mode switching control through an external input device.
And step 403, the first client displays a first group chat interface in the additional resource chat mode according to the first trigger operation.
Optionally, the first triggering operation is configured to set a chat mode in which the first client participates in the first group chat to an additional resource chat mode, and according to the first triggering operation, the chat mode of the first client in the first group chat is switched from the normal chat mode to the additional resource chat mode, so that the first group chat interface in the additional resource chat mode is displayed according to the first triggering operation.
Optionally, the first group chat interface is a three-person or more chat interface in which the first client participates in the first group chat, the additional resource chat mode is a chat mode in which a gifting resource is added when sending a chat message, and the first group chat interface includes a chat message display area and a chat message sending area.
Optionally, the chat message sending area displays a prompt message, where the prompt message includes the number of the first donated resources attached to the first chat message and/or the number of shares into which the first donated resources are divided.
In step 404, the first client receives a second trigger operation on the gifted resource setting control.
Optionally, the first group chat interface further includes a donation resource setting control. Optionally, the gifted resource setting control is included in a chat message sending area of the first group chat interface in the additional resource chat mode. The donation resource setting control is used for setting donation resource information of a first donation resource attached to a first group chat message sent by a first client.
And 405, the first client superimposes and displays the donated resource setting card on the first group chat interface according to the second trigger operation.
Optionally, the gifted resource setting card is used for setting the gifted resource information of the first gifted resource attached to the first chat message.
Optionally, the donated resource information of the first donated resource includes the number of the first donated resource, and optionally, the donated resource information further includes at least one of a type of the first donated resource and account information of an account registered in the first client.
The number of the first donated resources can be set or random; the type of the first donated resource includes at least one of a physical currency, a virtual currency, a credit, and a credit score; the account information of the account logged in the first client includes at least one of an account identifier, an account name and an account icon of the account.
It should be noted that, when the donated resource setting card sets the donated resource information, and when the donated resource information includes account information of an account registered in the first client, the donated resource setting card cannot modify the account information.
Optionally, the gifted resource setting card may also be used to set the number of copies into which the gifted resource is divided. And when the resource allocation mode corresponding to the first chat message is to allocate the first donated resources corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random mode, the donated resource setting card is further used for setting the value of n.
When the information of the first donated resource includes the number of the first donated resource, the number of the first donated resource may refer to the total number of the first donated resource or may refer to a single number of each share into which the first donated resource is divided.
In step 406, the first client receives the setting operation on the donated resource setting card, and determines donated resource information of the first donated resource corresponding to the first chat message according to the setting operation.
Illustratively, taking the example that only the number of the first gifted resource is included in the gifted resource information as an example, as shown in fig. 5, a gifted resource setting card 52 is displayed superimposed on the first group chat interface 51, the gifted resource setting card 52 includes a first setting area 521 and a second setting area 522, wherein the first setting area 521 is used for setting the number of the gifted resources, the second setting area 522 is used for setting the number of divided gifted resources, the user inputs the amount of money in the first setting area 521, and after inputting the number of divided gifted resources in the second setting area 522, click determination is performed as a setting operation, the number of the first gifted resource and the number of divided gifted resources corresponding to the first chat message are determined according to the setting operation, as shown in fig. 5, the user sets the number of the gifted resource to 5 yuan in the first setting area 521, the user sets the number of copies into which the gifted resource is divided to 3 in the second setting area 522.
Step 407, the first client obtains the chat content through the first group chat interface in the additional resource chat mode.
Optionally, the first group chat interface is a chat interface for the first client to participate in the first group chat, and the additional resource chat mode is a chat mode in which a gifting resource is added when sending a chat message.
Optionally, the chat content includes at least one of text content, picture content, video content, voice content, shared link content, and emoticon content.
Optionally, when the chat content is text content, the manner of obtaining the chat content includes editing text; when the chat content is the picture content, the mode of obtaining the chat content comprises picture shooting and/or picture selection in an album; when the chat content is video content, the mode of obtaining the chat content comprises video shooting and/or video selection in an album; when the chat content is voice content, the mode of obtaining the chat content comprises voice recording and/or voice file selection; when the chat content is the sharing link content, the mode of obtaining the chat content comprises a link sharing operation; when the chat content is emotion content, the manner of obtaining the chat content comprises selecting the emotion.
Step 408, after receiving the message sending request, the first client generates a first chat message according to the chat content and the donation resource information.
Optionally, when the chat content is text content, the first group chat interface includes a sending control, receives a trigger operation on the sending control, and generates a sending request for the first chat message; when the chat content is the picture content, displaying a picture editing interface after the picture is shot, wherein the picture editing interface comprises a sending control, receiving triggering operation of the sending control and generating a sending request of a first chat message; when the chat content is the picture content, after the picture is selected in the photo album display interface, triggering a sending control in the photo album display interface, and generating a sending request for a first chat message; when the chat content is video content, displaying a video preview interface after the video shooting is finished, wherein the video preview interface comprises a sending control, receiving the triggering operation of the sending control and generating a sending request for a first chat message; when the chat content is video content, after the video is selected in the album display interface, triggering a sending control in the album display interface and generating a sending request for a first chat message; when the chat content is voice content, a user can start voice recording when clicking a recording control in a first group chat interface, finish recording when clicking the recording control again, and click a sending control to generate a sending request for a first chat message; the user can also press the recording control to record, and a sending request for the first chat message is generated when the recording control is released; when the chat content is the sharing link content, after the sharing content is selected in other application programs, the first client is automatically called, a user selects a first group chat in the first client, and triggers a sending control to generate a sending request of a first chat message; when the chat content is the emotion content, generating a sending request of a first chat message according to selection operation of emotion, or triggering a sending control in a chat message sending area after emotion is selected to generate a sending request of the first message.
Optionally, the donated resource information of the first donated resource includes the number of the first donated resources.
Optionally, the first chat message corresponds to a resource allocation manner, and the resource allocation manner is used for determining an allocation manner of the first donated resource.
In step 409, the first client sends the first chat message to at least two second clients participating in the first group chat.
Optionally, the first client sends the first chat message to at least two second clients participating in the first group chat through the instant messaging server.
The second client is a client participating in the first group chat except the first client.
And step 410, the second client receives the first chat message and displays the first chat message through the second group chat interface.
Optionally, the second group chat interface is a chat interface for the second client to participate in the first group chat.
Optionally, the second group chat interface can be a chat interface in an additional resource chat mode, or a chat interface in a normal chat mode,
in step 411, when the second client meets the allocation condition corresponding to the resource allocation manner, the second client automatically obtains all or part of the first donated resources in the first chat message.
Optionally, the resource allocation manner includes any one of the following manners:
firstly, distributing first donation resources corresponding to a first chat message to first n second clients viewing the first chat message in a first group chat in an equally-divided or random manner, wherein n is a set positive integer;
optionally, when the resource allocation manner is the first allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is the top n clients viewing the first chat message in the first group chat.
Optionally, when the value of n is 1, the second client may receive all the first donation resources attached to the first chat message; and when the value of n is more than 1, the second client can receive part of the first donation resources attached to the first chat message.
Secondly, distributing the first donation resources corresponding to the first chat message to a second client side for viewing the first chat message in the first group chat in an equally-divided or random mode;
optionally, when the resource allocation manner is a second allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is a client viewing the first chat message in the first group chat.
Optionally, when only one second client in the first group chat views the first chat message, the second client can receive all the first donation resources attached to the first chat message; when more than one second client in the first group chat views the first chat message, the second client can receive a part of the first donation resource attached to the first chat message.
And thirdly, distributing the first donation resources corresponding to the first chat message to all the second clients in the first group chat in an equally-divided or random mode.
Optionally, when the resource allocation manner is a third allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is a client participating in the first group chat.
In summary, in the message sending method provided by this embodiment, by setting the additional resource chat mode in the group chat, when the first client sends the first message in the first group chat with more than three persons, the first client is added with the gifting resource, that is, in the first group chat, when the gifting resource is shared by the second client, since the number of messages sent by each client in the first group chat is not the same, the number of gifting resources picked up by each client is also different, when the gifting resource is randomly distributed by the second client, it is obvious that the number of gifting resources picked up by each client is not the same, that is, after the additional resource chat mode is started in the group chat, at least three clients participate in sending and picking up the gifting resource, instead of simple 1 to 1 transfer, and finally the number of virtual resources picked up and sent out by each client is also different, the interest of chatting is increased, and the problem that the data transmission burden of a payment server is increased due to the effect that although the transfer operation is carried out for many times, the quantity of the virtual resources owned by both parties is not changed when the quantity of the virtual resources of the sentence material messages set by both parties is the same when 1 is used for 1.
In the method provided by this embodiment, by setting the donation resources, the number of the donation resources attached to the chat message sent by the client in the first group chat and the number of shares of the donation resources divided may be different, so as to increase the difference between the number of the donation resources sent and received by each client.
In an alternative embodiment, the first client pays for the first donation resource attached to the first chat message through the server, and the second client receives the first donation resource attached to the first chat message through the server. Fig. 6 is a flowchart of a message sending method according to another exemplary embodiment of the present application, which is described by taking as an example that the method is applied to the message sending system shown in fig. 1, and as shown in fig. 6, the method includes:
step 601, the first client obtains chat content through the first group chat interface in the additional resource chat mode.
Optionally, the first group chat interface is a chat interface for the first client to participate in the first group chat, and the additional resource chat mode is a chat mode in which a gifting resource is added when sending a chat message.
Optionally, the chat content includes at least one of text content, picture content, video content, voice content, shared link content, and emoticon content.
Optionally, the first group chat interface is a three-person or more chat interface for the first client to participate in the first group chat.
Optionally, the first group chat interface includes a chat message display area and a chat message sending area, where the chat message display area is configured to display chat messages sent by at least three clients participating in the first group chat, and optionally, when displaying the chat message sent by each client, the sent chat message and the received chat message may be respectively displayed on the left and right sides of the first group chat interface, such as: when a first client displays a chat message in a chat message display area, displaying the chat message sent by a second client on the left side of the chat message display area, and displaying the chat message sent by the first client on the right side of the chat message display area; it is also possible to display both sent and received chat messages on one side of the first group chat interface.
Step 602, after receiving the message sending request, the first client generates a first chat message according to the chat content and the donation resource information.
Optionally, the donated resource information of the first donated resource includes the number of the first donated resource, and optionally, the donated resource information further includes at least one of a type of the first donated resource and account information of an account registered in the first client.
The number of the first donated resources can be set or random; the type of the first donated resource includes at least one of a physical currency, a virtual currency, a credit, and a credit score; the account information of the account logged in the first client includes at least one of an account identifier, an account name and an account icon of the account.
Optionally, the first chat message corresponds to a resource allocation manner, and the resource allocation manner is used for determining an allocation manner of the first donated resource.
Illustratively, the message content of the first chat message is a text content "today is really good weather", the number of the first donation resources attached to the first chat message is "5.5 yuan", and the resource allocation manner corresponding to the first chat message is that the first donation resources are picked up by the first 3 second clients viewing the first chat message in a random allocation manner.
Optionally, the resource allocation manner includes any one of the following manners:
firstly, distributing first donation resources corresponding to a first chat message to first n second clients viewing the first chat message in a first group chat in an equally-divided or random manner, wherein n is a set positive integer;
optionally, when the resource allocation manner is the first allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is the top n clients viewing the first chat message in the first group chat.
Optionally, when the value of n is 1, the second client may receive all the first donation resources attached to the first chat message; and when the value of n is more than 1, the second client can receive part of the first donation resources attached to the first chat message.
Secondly, distributing the first donation resources corresponding to the first chat message to a second client side for viewing the first chat message in the first group chat in an equally-divided or random mode;
optionally, when the resource allocation manner is a second allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is a client viewing the first chat message in the first group chat.
Optionally, when only one second client in the first group chat views the first chat message, the second client can receive all the first donation resources attached to the first chat message; when more than one second client in the first group chat views the first chat message, the second client can receive a part of the first donation resource attached to the first chat message.
And thirdly, distributing the first donation resources corresponding to the first chat message to all the second clients in the first group chat in an equally-divided or random mode.
Optionally, when the resource allocation manner is a third allocation manner, the allocation condition corresponding to the resource allocation manner is that the second client is a client participating in the first group chat.
Optionally, the resource allocation manner is an optional setting item. That is, the user may set the resource allocation manner corresponding to the first chat message, or the user may not set the resource allocation manner corresponding to the first chat message.
When the user can set the resource allocation manner corresponding to the first chat message, the method is further classified into any one of the following cases:
firstly, a user sets a resource allocation mode, and the resource allocation mode set by the user is used as a resource allocation mode corresponding to a first chat message;
secondly, the user does not set the resource allocation mode, and determines that the default resource allocation mode is the resource allocation mode corresponding to the first chat message, such as: and the default resource allocation mode is that the first n second clients viewing the first chat message receive the first donated resources in a random mode, and when the user does not set the resource allocation mode, the resource allocation mode is used as the resource allocation mode of the first chat message.
When the user cannot set the resource allocation mode corresponding to the first chat message, the method is further classified into any one of the following cases:
firstly, randomly selecting a resource allocation mode as the resource allocation mode of a first chat message every time the first chat message is sent;
secondly, one resource allocation method is selected from the resource allocation methods to be used as the resource allocation method of all the first chat messages. Alternatively, the resource allocation manner of the chat message sent by the other client in the first group chat may be the same as or different from the resource allocation manner of the first chat message selected from the above resource allocation manners.
In an alternative embodiment, only one random allocation mode is provided as the allocation mode of all the chat messages sent in the additional resource chat mode, and the random allocation mode randomly draws the donated resources for the first n second clients viewing the first chat messages.
Step 603, the first client sends the order information to the server according to the sending request.
Optionally, the order information includes donation resource information of a first donation resource attached to the first chat message, the order information is used for the server to transfer the first donation resource corresponding to the first chat message from an account corresponding to the first client to a transit account, and the transit account is used for transferring the donation resource.
Optionally, when the first client sends the order information to the server, the first client first receives a payment operation, where the payment operation is used to pay for the donated resource that the first client needs to pay, and the first client sends the order information to the server according to the payment operation.
Optionally, before receiving the payment operation, the first client first sends, according to the sending request, a payment request to the server, where the payment request is used to request payment for the first donated resource attached to the first chat message, and optionally, the payment request includes the number of the first donated resource attached to the first chat message. Optionally, the payment request further includes at least one of voucher information, coupon information, and the like owned by the first client.
After receiving the payment request, the server generates an order identifier according to the payment request, where the order identifier may be a unique identifier sequentially generated by the server according to the payment request, or a unique identifier randomly generated by the server according to the payment request.
The server sends payment information to the first client, wherein the payment information comprises an order identification and the number of the donation resources required to be paid by the first client, and optionally, after the server determines the number of the donation resources attached to the first chat message according to the payment request, the server determines whether the first client uses the discount measures according to the information such as the voucher information, the discount information and the coupon information, and determines the number of the donation resources required to be paid by the first client. Illustratively, the amount of the bonus resource attached to the first chat message in the payment request is 20, and if the first client uses the 8-fold discount, the amount of the bonus resource that the first client needs to pay is 16.
And after receiving the payment information, the first client displays a payment interface according to the payment information, wherein the payment interface comprises a payment mode and the number of the donation resources needing to be paid by the first client. Optionally, the payment means includes but is not limited to: at least one of secret-free payment, password payment, fingerprint payment, face recognition payment, iris recognition payment and the like. Optionally, when the payment mode is a secret payment exemption mode, the first client may directly perform a payment operation; when the payment mode is password payment, the payment interface comprises a password input box; when the payment mode is fingerprint payment, the payment interface comprises a fingerprint payment prompt; when the payment mode is face recognition payment, the payment interface comprises a face recognition prompt; when the payment mode is that the iris is paid, the payment interface comprises an iris recognition prompt. For further description, referring to fig. 7, when the payment method is password payment, the payment interface 701 includes a password input box 702.
Optionally, the first client receives a payment operation according to the payment method.
It should be noted that, when the payment operation received by the first client is identified and the payment fails, a payment failure prompt is displayed in the first group chat interface, where the payment failure prompt may be a pop-up window prompt, a card prompt, or a preset position of the first chat message, and includes: a red exclamation point is displayed to the left of the first chat message to indicate that the first chat message failed to be sent.
Referring to fig. 8, schematically, a first chat message 802 sent by a first client is displayed in a first group chat interface 801, an exclamation symbol 803 is displayed on the left side of the first chat message 802, and the exclamation symbol 803 indicates that the first chat message 802 fails to be sent.
In step 604, the server receives the order information sent by the first client.
Optionally, after receiving the order information sent by the first client, the server stores the order information.
Step 605, the server transfers the first donation resource attached to the first chat message from the account corresponding to the first client to the transit account according to the order information.
Optionally, the order information includes donation resource information of a first donation resource attached to the first chat message, and the server transfers the first donation resource from an account corresponding to the first customer order to a transit account according to the order information, where the transit account is used for transferring the first donation resource.
Optionally, the server transfers the first donation resource and then sends a payment success message to the first client.
In step 606, the first client sends the first chat message to at least two second clients participating in the first group chat.
Optionally, the first client sends the first chat message to at least two second clients participating in the first group chat through the server.
The second client is a client participating in the first group chat except the first client.
At step 607, the first client displays the first chat message in the first group chat interface.
Optionally, after the first client pays the first donated resource attached to the first chat message successfully, the first chat message is sent to at least two second clients participating in the first group chat through the server, and the first chat message is displayed in a first group chat interface of the first client.
Optionally, the donated resource information of the first donated resource attached to the first chat message is displayed on the peripheral side of the first chat message. Optionally, the perimeter side includes at least one of a top side, a bottom side, a left side, and a right side of the first chat message.
Taking the example where the number of bonus resources attached to the first chat message is displayed on the lower side of the first chat message, please refer to fig. 9, where the number 92 of bonus resources displayed on the lower side of the first chat message 91 is "0.5 yuan".
At step 608, the server receives a first chat message sent by a first client participating in a first group chat.
Optionally, the first client sends the first chat message to the second client through the server.
In step 609, the server sends the first chat message to at least two second clients participating in the first group chat.
And step 610, the second client receives the first chat message and displays the first chat message through the second group chat interface.
Optionally, the second group chat interface is a chat interface for the second client to participate in the first group chat.
Optionally, the second group chat interface may be a chat interface in an additional resource chat mode, or may be a chat interface in a normal chat mode.
Optionally, when the second client displays the first chat message through the second group chat interface, after receiving the first chat message, the second client may receive a drawing signal of a dialog bubble corresponding to the first chat message, where the dialog bubble is used to display the first chat message, and after the dialog bubble is drawn, the second client displays the first chat message in the dialog bubble.
Step 611, the second client sends a pick-up request to the server.
Optionally, the second client sends a pickup request to the server according to the drawing signal.
Optionally, the pickup request includes an order identifier obtained when the second client receives the first chat message, and the order identifier server determines the first donated resource picked up by the second client.
In step 612, the server receives the pickup request sent by the second client.
Step 613, when the second client meets the allocation condition corresponding to the resource allocation manner, transferring all or part of the first donated resources in the first chat message from the transit account to an account corresponding to the second client according to the resource allocation manner.
The manner in which the server allocates the resource to the second client according to the resource allocation manner has been described in detail in step 602, and is not described herein again.
Optionally, when the resource allocation manner of the first donated resource is included in the first chat message in an explicit information manner, the server may determine the resource allocation manner corresponding to the first chat message when obtaining the order information corresponding to the first chat message, and transfer all or part of the resources in the first chat message to the account corresponding to the second client according to the resource allocation manner; when the resource allocation mode of the first donated resource determines the allocation mode of the first donated resource in an implicit information mode, the resource allocation mode is a default allocation mode agreed by the first client and the server, and the server transfers all or part of resources in the first chat message to an account corresponding to the second client according to the default allocation mode.
Step 614, the server sends a pick-up success indication to the second client.
Optionally, the pickup success indication includes the number of the first donated resources transferred to the account corresponding to the second client by the server, that is, the pickup success indication includes the number of the first donated resources picked up by the second client.
Step 615, the second client receives the picking success indication sent by the server.
And step 616, the second client displays the first chat message after the first donated resource is picked up in the second group chat interface.
Optionally, the circumferential side of the first chat message displays the amount of the first bonus resource picked up by the second client. Optionally, the perimeter side includes at least one of a top side, a bottom side, a left side, and a right side of the first chat message.
To illustrate an example in which the number of first donated resources to be retrieved by the second client is displayed on the lower side of the first chat message, referring to fig. 10, a first chat message 1002 is displayed on a second group chat interface 1001, and the number of donated resources to be retrieved by the second client is "0.02 yuan" is displayed on the lower side of the first chat message 1002.
Optionally, the second client displays a prompt control in a superimposed manner at a preset position of the second group chat interface, and when the second client receives a third trigger operation on the prompt control, the second client displays the total earning amount according to the third trigger operation.
Optionally, the total pickup amount includes a total amount of the complimentary resources that the second client picks up in the first group chat. Optionally, the total amount of money to be collected may be cleared by the second client at preset intervals, or may be cleared by the second client whenever the second client logs out, or may not be cleared.
Referring to fig. 11, schematically, a prompt control 1102 is displayed in a second group chat interface 1101 in an overlapping manner, and after receiving a third trigger operation on the prompt control 1102, a total earning amount 1103 is displayed, as shown in fig. 11, where the total earning amount 1103 is 1.02 yuan.
Step 617, the first client displays the account identifier of the account logged in the second client for getting the first donated resource at the preset position corresponding to the first chat message in the first group chat interface.
Optionally, the account identifier comprises at least one of an avatar, a nickname, and an identification.
Optionally, after transferring all or part of the first donated resources to an account corresponding to the second client, the server sends information of the second client that receives the first donated resources to the first client, and the first client displays an account identifier of an account logged in the second client that receives the first donated resources according to the information sent by the server.
Schematically, the account id is taken as an avatar for example, and as shown in fig. 12, a first chat message 1202 is displayed in a first group chat interface 1201, and a donated resource attached to the first chat message 1202 is retrieved by the second client a and the second client B, so an avatar 1203 of the second client a and an avatar 1204 of the second client B are displayed on the lower side of the first chat message 1202.
Optionally, after receiving the trigger signal for the first chat message in the first group chat interface of the first client or the second group chat interface of the second client, the pickup details of the first donated resource attached to the first chat message may be displayed in the first client or the second client. Schematically, the second client is taken as an example for explanation, please refer to fig. 13.
A first chat message 1302 is displayed in the second group chat interface 1301, and after a trigger signal on the first chat message 1302 is received, a pickup detail interface 1303 is displayed, and pickup details of first donated resources attached to the first chat message, that is, the number of the first donated resources respectively picked up by an account corresponding to each client, are displayed in the pickup detail interface 1303.
In summary, in the message sending method provided by this embodiment, by setting the additional resource chat mode in the group chat, when the first client sends the first message in the first group chat with more than three persons, the first client is added with the gifting resource, that is, in the first group chat, when the gifting resource is shared by the second client, since the number of messages sent by each client in the first group chat is not the same, the number of gifting resources picked up by each client is also different, when the gifting resource is randomly distributed by the second client, it is obvious that the number of gifting resources picked up by each client is not the same, that is, after the additional resource chat mode is started in the group chat, at least three clients participate in sending and picking up the gifting resource, instead of simple 1 to 1 transfer, and finally the number of virtual resources picked up and sent out by each client is also different, the interest of chatting is increased, and the problem that the data transmission burden of a payment server is increased due to the effect that although the transfer operation is carried out for many times, the quantity of the virtual resources owned by both parties is not changed when the quantity of the virtual resources of the sentence material messages set by both parties is the same when 1 is used for 1.
In the method provided by this embodiment, by setting the donation resources, the number of the donation resources attached to the chat message sent by the client in the first group chat and the number of shares of the donation resources divided may be different, so as to increase the difference between the number of the donation resources sent and received by each client.
According to the method provided by the embodiment, the server transfers the donated resources required to be paid by the first client side and transfers the donated resources received by the second client side, so that the transfer reliability of the donated resources is improved.
Fig. 14 is a block diagram of a message transmitting apparatus according to an exemplary embodiment of the present application, and as shown in fig. 14, the apparatus includes a display module 141, a receiving module 142, and a transmitting module 143;
a display module 141, configured to obtain chat content through a first group chat interface in an additional resource chat mode, where the additional resource chat mode is a chat mode in which gift resource information is added when a chat message is sent, and the first group chat interface is a chat interface in which the first client participates in a first group chat;
a receiving module 142, configured to generate a first chat message according to the chat content and donated resource information after receiving a message sending request, where the first chat message corresponds to a resource allocation manner, the resource allocation manner is used to determine an allocation manner of the first donated resource, and the donated resource information includes the number of the first donated resource;
a sending module 143, configured to send the first chat message to at least two second clients participating in the first group chat, where the second clients are clients participating in the first group chat except for the first client.
In an optional embodiment, the sending module 143 is configured to send order information to a server according to the sending request, where the order information includes the donated resource information, and the order information is used for the server to transfer the first donated resource from an account corresponding to the first client to a transit account, and the transit account is used for transferring the first donated resource.
In an optional embodiment, the display module 141 is configured to display the first chat message in the first group chat interface, and the gifted resource information attached to the first chat message is displayed on the peripheral side of the first chat message.
In an optional embodiment, the receiving module 142 is configured to receive a payment operation, where the payment operation is used to pay for the donated resources that the first client needs to pay;
a sending module 143, configured to send, by the first client, the order information to the server according to the payment operation.
In an optional embodiment, the display module 141 is configured to display a first group chat interface in a normal chat mode, where the first group chat interface includes a mode switching control;
a receiving module 142, configured to receive a first trigger operation on the mode switching control, where the first trigger operation is used to set a chat mode in which the first client participates in the first group chat to the additional resource chat mode;
and a display module 141, configured to display the first group chat interface in the additional resource chat mode according to the first trigger operation.
In an optional embodiment, the first group chat interface further comprises a gifted resource setting control;
a receiving module 142, configured to receive a second trigger operation on the gifted resource setting control;
a display module 141, configured to superimpose and display a donation resource setting card on the first group chat interface according to the second trigger operation, where the donation resource setting card is used to set the donation resource information;
the receiving module 142 is configured to receive a setting operation on the donated resource setting card, and determine the donated resource information according to the setting operation.
In an optional embodiment, when the resource allocation manner is to allocate the first donated resource corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random manner, the donated resource setting card is further configured to set a value of the n;
a receiving module 142, configured to determine, according to the setting operation, donation resource information of the first donation resource corresponding to the first chat message and the number n of shares of the first donation resource that are allocated.
In an optional embodiment, the display module 141 is configured to display, at a preset location in the first group chat interface corresponding to the first chat message, an account identifier of an account logged in the second client that receives the first donated resource; the account identification comprises at least one of an avatar, a nickname and an identity identification.
In an optional embodiment, the resource allocation manner includes:
distributing the first donation resources corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random manner, wherein n is a set positive integer;
or the like, or, alternatively,
distributing the first donation resource corresponding to the first chat message to the second client side viewing the first chat message in the first group chat in an equally-divided or random manner;
or the like, or, alternatively,
and distributing the first donation resource corresponding to the first chat message to all second clients in the first group chat in an equally-divided or random mode.
Fig. 15 is a block diagram of a message sending apparatus according to an exemplary embodiment of the present application, and as shown in fig. 15, the message sending apparatus includes a receiving module 151, a displaying module 152, and an obtaining module 153;
a receiving module 151, configured to receive the first chat message;
a display module 152, configured to display the first chat message through a second group chat interface, where the second group chat interface is a chat interface for the second client to participate in the first group chat;
the obtaining module 153 is configured to, when the allocation condition corresponding to the resource allocation manner is satisfied, automatically obtain all or part of the first donated resources in the first chat message.
In an optional embodiment, the obtaining module 153 is configured to send, by the second client, a pickup request to the server, where the pickup request is used for the server to transfer, when the second client meets an allocation condition corresponding to the resource allocation manner, all or part of the first donated resources from the transit account to an account corresponding to the second client according to the resource allocation manner.
In an optional embodiment, the receiving module 151 is configured to receive the first chat message, and receive a drawing signal of a dialog bubble corresponding to the first chat message, where the dialog bubble is used to display the first chat message;
an obtaining module 153, configured to send a pickup request to the server according to the drawing signal.
In an optional embodiment, the resource allocation manner includes:
distributing the first donation resources corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random manner, wherein n is a set positive integer;
or the like, or, alternatively,
distributing the first donation resource corresponding to the first chat message to the second client side viewing the first chat message in the first group chat in an equally-divided or random manner;
or the like, or, alternatively,
and distributing the first donation resource corresponding to the first chat message to all second clients in the first group chat in an equally-divided or random mode.
In an optional embodiment, the receiving module 151 is configured to receive a pickup success indication sent by the server, where the pickup success indication includes the number of the first donated resources picked up by the second client;
a display module 152, configured to display the first chat message after the first donated resource is picked up in the second group chat interface, where the number of the first donated resource picked up by the second client is displayed on the peripheral side of the first chat message.
In an optional embodiment, the display module 152 is configured to display a prompt control in an overlapping manner at a preset position of the second group chat interface;
a receiving module 151, configured to receive a third trigger operation on the prompt control;
a display module 152, configured to display a total amount of money to be collected according to the third trigger operation, where the total amount of money to be collected includes a total amount of the donated resources that the second client collects in the first group chat.
Fig. 16 is a block diagram of a message sending apparatus according to another exemplary embodiment of the present application, where the message sending apparatus includes: a receiving module 161, a sending module 162, and a transferring module 163;
a receiving module 161, configured to receive a first chat message sent by a first client participating in a first group chat, where the first chat message is generated according to chat content and a first donation resource acquired by the first client through a first group chat interface in an additional resource chat mode, and the first chat message corresponds to a resource allocation manner;
a sending module 162, configured to send the first chat message to at least two second clients participating in the first group chat, where the second clients are clients participating in the first group chat except for the first client;
a transferring module 163, configured to transfer all or part of the first donated resources in the first chat message to an account corresponding to the second client according to the resource allocation manner when the second client meets the allocation condition corresponding to the resource allocation manner.
In an optional embodiment, the receiving module 161 is configured to receive order information sent by the first client, where the order information is information sent by the first client when the first client sends a first chat message in an additional resource chat mode in a first group chat, the order information includes donated resource information of the first donated resource attached to the first chat message, and the donated resource information includes the number of the first donated resource;
a transferring module 163, configured to transfer the first donation resource attached to the first chat message from an account corresponding to the first client to a transit account according to the order information, where the transit account is used to transit the donation resource;
a receiving module 161, configured to receive a pickup request sent by a second client, where the pickup request is a request sent to the payment server when the second client displays the first chat message;
a transferring module 163, configured to, when the second client meets the allocation condition corresponding to the resource allocation manner, transfer all or part of the first donated resources in the first chat message from the transit account to an account corresponding to the second client according to the resource allocation manner.
In an optional embodiment, the sending module 162 is configured to send a pickup success indication to the second client, where the pickup success indication includes the number of the first donated resources transferred to the account corresponding to the second client.
In an optional embodiment, the resource allocation manner includes:
distributing the first donation resources corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random manner, wherein n is a set positive integer;
or the like, or, alternatively,
distributing the first donation resource corresponding to the first chat message to the second client side viewing the first chat message in the first group chat in an equally-divided or random manner;
or the like, or, alternatively,
and distributing the first donation resource corresponding to the first chat message to all second clients in the first group chat in an equally-divided or random mode.
Fig. 17 is a block diagram illustrating a terminal 1700 according to an exemplary embodiment of the present invention. The terminal 1700 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio layer iii, motion video Experts compression standard Audio layer 3), an MP4 player (Moving Picture Experts Group Audio layer IV, motion video Experts compression standard Audio layer 4), a notebook computer, or a desktop computer. Terminal 1700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, terminal 1700 includes: a processor 1701 and a memory 1702.
The processor 1701 may include one or more processing cores, such as 4-core processors, 8-core processors, and the like. The processor 1701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1701 may also include a main processor, which is a processor for processing data in an awake state, also called a Central Processing Unit (CPU), and a coprocessor; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1701 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and rendering content that the display screen needs to display. In some embodiments, the processor 1701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The memory 1702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1702 is used to store at least one instruction for execution by the processor 1701 to implement the messaging method provided by the method embodiments of the present application.
In some embodiments, terminal 1700 may also optionally include: a peripheral interface 1703 and at least one peripheral. The processor 1701, memory 1702 and peripheral interface 1703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1703 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1704, a touch display screen 1705, a camera 1706, an audio circuit 1707, a positioning component 1708, and a power source 1709.
The peripheral interface 1703 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1701 and the memory 1702. In some embodiments, the processor 1701, memory 1702, and peripheral interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1701, the memory 1702, and the peripheral interface 1703 may be implemented on separate chips or circuit boards, which are not limited in this embodiment.
The Radio Frequency circuit 1704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1704 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 1704 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1704 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1705 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1705 is a touch display screen, the display screen 1705 also has the ability to capture touch signals on or above the surface of the display screen 1705. The touch signal may be input as a control signal to the processor 1701 for processing. At this point, the display 1705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1705 may be one, providing the front panel of terminal 1700; in other embodiments, display 1705 may be at least two, each disposed on a different surface of terminal 1700 or in a folded design; in still other embodiments, display 1705 may be a flexible display disposed on a curved surface or a folded surface of terminal 1700. Even further, the display screen 1705 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1706 is used to capture images or video. Optionally, camera assembly 1706 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, inputting the electric signals into the processor 1701 for processing, or inputting the electric signals into the radio frequency circuit 1704 for voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1701 or the radio frequency circuit 1704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1707 may also include a headphone jack.
The positioning component 1708 is used to locate the current geographic location of the terminal 1700 to implement navigation or LBS (location based Service). The positioning component 1708 may be based on a GPS (global positioning System) in the united states, a beidou System in china, or a galileo System in russia.
Power supply 1709 is used to power the various components in terminal 1700. The power supply 1709 may be ac, dc, disposable or rechargeable. When the power supply 1709 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1700 also includes one or more sensors 1710. The one or more sensors 1710 include, but are not limited to: acceleration sensor 1711, gyro sensor 1712, pressure sensor 1713, fingerprint sensor 1714, optical sensor 1715, and proximity sensor 1716.
The acceleration sensor 1711 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1700. For example, the acceleration sensor 1711 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1701 may control the touch display screen 1705 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1711. The acceleration sensor 1711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1712 may detect a body direction and a rotation angle of the terminal 1700, and the gyro sensor 1712 may cooperate with the acceleration sensor 1711 to acquire a 3D motion of the user on the terminal 1700. The processor 1701 may perform the following functions based on the data collected by the gyro sensor 1712: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1713 may be disposed on the side frames of terminal 1700 and/or underlying touch display 1705. When the pressure sensor 1713 is disposed on the side frame of the terminal 1700, the user's grip signal to the terminal 1700 can be detected, and the processor 1701 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1713. When the pressure sensor 1713 is disposed at the lower layer of the touch display screen 1705, the processor 1701 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1705. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1714 is configured to capture a fingerprint of the user, and the processor 1701 is configured to identify the user based on the fingerprint captured by the fingerprint sensor 1714, or the fingerprint sensor 1714 is configured to identify the user based on the captured fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1701 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1714 may be disposed on the front, back, or side of terminal 1700. When a physical key or vendor Logo is provided on terminal 1700, fingerprint sensor 1714 may be integrated with the physical key or vendor Logo.
The optical sensor 1715 is used to collect the ambient light intensity. In one embodiment, the processor 1701 may control the display brightness of the touch display screen 1705 based on the ambient light intensity collected by the optical sensor 1715. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1705 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1705 is turned down. In another embodiment, the processor 1701 may also dynamically adjust the shooting parameters of the camera assembly 1706 according to the ambient light intensity collected by the optical sensor 1715.
Proximity sensors 1716, also known as distance sensors, are typically disposed on the front panel of terminal 1700. Proximity sensor 1716 is used to gather the distance between the user and the front face of terminal 1700. In one embodiment, when proximity sensor 1716 detects that the distance between the user and the front surface of terminal 1700 is gradually reduced, processor 1701 controls touch display 1705 to switch from a bright screen state to a dark screen state; when proximity sensor 1716 detects that the distance between the user and the front surface of terminal 1700 is gradually increased, processor 1701 controls touch display 1705 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the architecture shown in fig. 17 is not intended to be limiting with respect to terminal 1700, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
The application also provides a server, which includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the message sending method provided by the foregoing method embodiments. It should be noted that the server may be a server as provided in fig. 18 below.
Referring to fig. 18, a schematic structural diagram of a server according to an exemplary embodiment of the present application is shown. Specifically, the method comprises the following steps: the server 1800 includes a Central Processing Unit (CPU)1801, a system memory 1804 including a Random Access Memory (RAM)1802 and a Read Only Memory (ROM)1803, and a system bus 1805 that couples the system memory 1804 and the central processing unit 1801. The server 1800 also includes a basic input/output system (I/O system) 1806, which facilitates transfer of information between devices within the computer, and a mass storage device 1807, which stores an operating system 1813, application programs 1814, and other program modules 1815.
The basic input/output system 1806 includes a display 1808 for displaying information and an input device 1809 such as a mouse, keyboard, etc. for user input of information. Wherein the display 1808 and the input device 1809 are coupled to the central processing unit 1801 via an input/output controller 1810 coupled to the system bus 1805. The basic input/output system 1806 may also include an input/output controller 1810 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1810 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1807 is connected to the central processing unit 1801 through a mass storage controller (not shown) connected to the system bus 1805. The mass storage device 1807 and its associated computer-readable media provide non-volatile storage for the server 1800. That is, the mass storage device 1807 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROI drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1804 and mass storage device 1807 described above may be collectively referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 1801, the one or more programs containing instructions for implementing the message sending method described above, and the central processing unit 1801 executes the one or more programs to implement the message sending method provided by the various method embodiments described above.
The server 1800 may also operate in accordance with various embodiments of the invention, by being connected to remote computers over a network, such as the Internet. That is, the server 1800 may be connected to the network 1812 through the network interface unit 1811 connected to the system bus 1805, or the network interface unit 1811 may be used to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs, the one or more programs are stored in the memory, and the one or more programs include steps executed by the server for performing the message sending method provided by the embodiment of the present invention.
An embodiment of the present application further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the message sending method according to any one of fig. 2 to fig. 9.
The present application further provides a computer program product, which when running on a computer, causes the computer to execute the message sending method provided by the above method embodiments.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (19)

1. A method for sending a message, the method comprising:
a first client acquires chat content through a first group chat interface in an additional resource chat mode, wherein the additional resource chat mode is a chat mode with additional donation resource information when a chat message is sent, and the first group chat interface is a chat interface for the first client to participate in first group chat;
after receiving a message sending request, the first client generates a first chat message according to the chat content and the donated resource information, wherein the first chat message corresponds to a resource allocation mode, the resource allocation mode is used for determining the allocation mode of the first donated resource, and the donated resource information comprises the number of the first donated resource;
the first client sends the first chat message to at least two second clients participating in the first group chat, wherein the second clients are clients participating in the first group chat except the first client;
the second client receives the first chat message and displays the first chat message through a second group chat interface, wherein the second group chat interface is a chat interface for the second client to participate in the first group chat;
and when the second client meets the allocation condition corresponding to the resource allocation mode, automatically acquiring all or part of the first donated resources in the first chat message.
2. The method of claim 1, wherein the first client, after receiving the message sending request, further comprises:
the first client side sends order information to a server according to the sending request, wherein the order information comprises the donation resource information, the order information is used for the server to transfer the first donation resource from an account corresponding to the first client side to a transfer account, and the transfer account is used for transferring the first donation resource;
the second client automatically acquires all or part of the first donated resources in the first chat message when meeting the allocation condition corresponding to the resource allocation mode, and the method comprises the following steps:
and the second client sends a pickup request to the server, wherein the pickup request is used for the server to transfer all or part of the first donated resources from the transit account to an account corresponding to the second client according to the resource allocation mode when the second client meets the allocation condition corresponding to the resource allocation mode.
3. The method of claim 2, wherein sending, by the first client, order information to a server according to the sending request comprises:
the first client receives payment operation, and the payment operation is used for paying the donated resources needing to be paid by the first client;
and the first client sends the order information to the server according to the payment operation.
4. The method of claim 2, wherein the second client receives the first chat message and displays the first chat message through a second group chat interface, comprising:
the second client receives the first chat message and receives a drawing signal of a dialog bubble corresponding to the first chat message, wherein the dialog bubble is used for displaying the first chat message;
the second client sends a pickup request to the server, including:
and the second client sends a pickup request to the server according to the drawing signal.
5. The method of claim 1, wherein the resource allocation scheme comprises:
distributing the first donation resources corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random manner, wherein n is a set positive integer;
or the like, or, alternatively,
distributing the first donation resource corresponding to the first chat message to the second client side viewing the first chat message in the first group chat in an equally-divided or random manner;
or the like, or, alternatively,
and distributing the first donation resource corresponding to the first chat message to all second clients in the first group chat in an equally-divided or random mode.
6. The method of any of claims 1 to 5, wherein after the first client sends the first chat message to at least two second clients participating in the first group chat, further comprising:
the first client displays the first chat message in the first group chat interface, and the donation resource information is displayed on the peripheral side of the first chat message.
7. The method according to any one of claims 1 to 5, wherein after the second client automatically acquires all or part of the first donated resources in the first chat message when the allocation condition corresponding to the resource allocation manner is satisfied, the method further comprises:
the second client receives a pickup success indication sent by the server, wherein the pickup success indication comprises the number of the first donated resources picked up by the second client;
and the second client displays the first chat message obtained after the first donated resource is received in the second group chat interface, and the number of the first donated resource received by the second client is displayed on the peripheral side of the first chat message.
8. The method of any one of claims 1 to 5, wherein before the first client obtains the chat content through the first group chat interface in the additional resource chat mode, the method comprises:
the first client displays a first group chat interface in a common chat mode, wherein the first group chat interface comprises a mode switching control;
the first client receives a first trigger operation on the mode switching control, wherein the first trigger operation is used for setting a chat mode of the first client participating in the first group chat to the additional resource chat mode;
and the first client displays a first group chat interface in the additional resource chat mode according to the first trigger operation.
9. The method of claim 5, wherein the first group chat interface further comprises a complimentary resource setting control;
after receiving the message sending request, the first client, before generating the first chat message according to the chat content and the donation resource, further includes:
the first client receives a second trigger operation on the donated resource setting control;
the first client superimposes and displays a donation resource setting card on the first group chat interface according to the second trigger operation, wherein the donation resource setting card is used for setting the donation resource information;
and the first client receives the setting operation on the donation resource setting card and determines the donation resource information according to the setting operation.
10. The method of claim 9, wherein when the resource allocation manner is to allocate the first donated resource corresponding to the first chat message to the first n second clients viewing the first chat message in an equally-divided or random manner, the donated resource setting card is further configured to set a value of n;
the determining donation resource information of the first donation resource corresponding to the first chat message according to the setting operation further includes:
and determining donation resource information of the first donation resource corresponding to the first chat message and the number n of distributed donation resources of the first donation resource according to the setting operation.
11. The method according to any one of claims 1 to 5, wherein after the second client automatically acquires all or part of the first donated resources in the first chat message when the allocation condition corresponding to the resource allocation manner is satisfied, the method further comprises:
the first client displays an account identifier of an account logged in the second client which draws the first donated resource at a preset position corresponding to the first chat message in the first group chat interface;
the account identification comprises at least one of an avatar, a nickname and an identity identification.
12. The method of any of claims 1 to 5, further comprising:
the second client displays a prompt control at a preset position of the second group chat interface in a superposition manner;
the second client receives a third trigger operation on the prompt control;
and the second client displays a total earning amount according to the third trigger operation, wherein the total earning amount comprises the total amount of the donated resources which are earned by the second client in the first group chat.
13. A method for sending a message, the method comprising:
receiving a first chat message sent by a first client participating in a first group chat, wherein the first chat message is generated according to chat content and a first donation resource acquired by the first client through a first group chat interface in an additional resource chat mode, and the first chat message corresponds to a resource allocation mode;
sending the first chat message to at least two second clients participating in the first group chat, the second clients being clients participating in the first group chat other than the first client;
and when the second client side meets the allocation condition corresponding to the resource allocation mode, transferring all or part of the first donated resources in the first chat message to an account corresponding to the second client side according to the resource allocation mode.
14. The method of claim 13, wherein prior to receiving the first chat message sent by the first client participating in the first group chat, further comprising:
receiving order information sent by the first client, wherein the order information is information sent by the first client when a first chat message is sent in a first group chat in an additional resource chat mode, the order information comprises donation resource information of the first donation resource attached to the first chat message, and the donation resource information comprises the number of the first donation resource;
transferring the first donation resources attached to the first chat message from an account corresponding to the first client to a transfer account according to the order information, wherein the transfer account is used for transferring the donation resources;
when the second client meets the allocation condition corresponding to the resource allocation mode, transferring all or part of the first donated resources in the first chat message to an account corresponding to the second client according to the resource allocation mode, including:
receiving a pickup request sent by a second client, wherein the pickup request is a request sent to the payment server when the second client displays the first chat message;
and when the second client side meets the allocation condition corresponding to the resource allocation mode, transferring all or part of the first donated resources in the first chat message from the transfer account to an account corresponding to the second client side according to the resource allocation mode.
15. The method of claim 14, wherein after the transferring all or part of the first donated resources in the first chat message from the transfer account to the account corresponding to the second client according to the resource allocation manner, the method further comprises:
sending a pickup success indication to the second client, wherein the pickup success indication comprises the number of the first donation resources transferred to the account corresponding to the second client.
16. The method of claim 13, wherein the resource allocation comprises:
distributing the first donation resources corresponding to the first chat message to the first n second clients viewing the first chat message in the first group chat in an equally-divided or random manner, wherein n is a set positive integer;
or the like, or, alternatively,
distributing the first donation resource corresponding to the first chat message to the second client side viewing the first chat message in the first group chat in an equally-divided or random manner;
or the like, or, alternatively,
and distributing the first donation resource corresponding to the first chat message to all second clients in the first group chat in an equally-divided or random mode.
17. A message transmission apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving a first chat message sent by a first client participating in first group chat, the first chat message is generated according to chat content and first donation resources acquired by the first client through a first group chat interface in an additional resource chat mode, and the first chat message corresponds to a resource allocation mode;
a sending module, configured to send the first chat message to at least two second clients participating in the first group chat, where the second clients are clients participating in the first group chat except for the first client;
and the transfer module is used for transferring all or part of the first donated resources in the first chat message to an account corresponding to the second client according to the resource allocation mode when the second client meets the allocation condition corresponding to the resource allocation mode.
18. An electronic device, comprising a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and wherein the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method of messaging according to any of claims 1 to 16.
19. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of messaging according to any one of claims 1 to 16.
CN201810950577.7A 2018-08-20 2018-08-20 Message sending method, device and readable medium Active CN110855544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810950577.7A CN110855544B (en) 2018-08-20 2018-08-20 Message sending method, device and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810950577.7A CN110855544B (en) 2018-08-20 2018-08-20 Message sending method, device and readable medium

Publications (2)

Publication Number Publication Date
CN110855544A true CN110855544A (en) 2020-02-28
CN110855544B CN110855544B (en) 2022-02-18

Family

ID=69595139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810950577.7A Active CN110855544B (en) 2018-08-20 2018-08-20 Message sending method, device and readable medium

Country Status (1)

Country Link
CN (1) CN110855544B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709020A (en) * 2020-05-20 2021-11-26 腾讯科技(深圳)有限公司 Message sending method, message receiving method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106067111A (en) * 2016-06-17 2016-11-02 北京小米移动软件有限公司 Message treatment method and device
CN106096924A (en) * 2016-06-21 2016-11-09 阿里巴巴集团控股有限公司 object distribution method and device
CN106302111A (en) * 2016-08-04 2017-01-04 财付通支付科技有限公司 A kind of information processing method, terminal and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106067111A (en) * 2016-06-17 2016-11-02 北京小米移动软件有限公司 Message treatment method and device
CN106096924A (en) * 2016-06-21 2016-11-09 阿里巴巴集团控股有限公司 object distribution method and device
WO2017219878A1 (en) * 2016-06-21 2017-12-28 阿里巴巴集团控股有限公司 Object allocation method and device
CN106302111A (en) * 2016-08-04 2017-01-04 财付通支付科技有限公司 A kind of information processing method, terminal and server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佚名: "QQ怎样用句有料互动", 《百度经验》 *
佚名: "QQ的"句有料"功能怎么使用?", 《百度经验》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709020A (en) * 2020-05-20 2021-11-26 腾讯科技(深圳)有限公司 Message sending method, message receiving method, device, equipment and medium
CN113709020B (en) * 2020-05-20 2024-02-06 腾讯科技(深圳)有限公司 Message sending method, message receiving method, device, equipment and medium

Also Published As

Publication number Publication date
CN110855544B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN110830811B (en) Live broadcast interaction method, device, system, terminal and storage medium
CN110278464B (en) Method and device for displaying list
CN111083516B (en) Live broadcast processing method and device
CN111614549B (en) Interaction processing method and device, computer equipment and storage medium
CN112751679B (en) Instant messaging message processing method, terminal and server
CN111479120A (en) Method, device, equipment and storage medium for issuing virtual red packet in live broadcast room
CN111327953B (en) Live broadcast voting method and device and storage medium
CN110213612B (en) Live broadcast interaction method and device and storage medium
CN110740340B (en) Video live broadcast method and device and storage medium
CN110102063B (en) Identification binding method, device, terminal, server and storage medium
CN107896337B (en) Information popularization method and device and storage medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN111918086A (en) Video connection method, device, terminal, server and readable storage medium
CN112533015B (en) Live interaction method, device, equipment and storage medium
CN112312226A (en) Wheat connecting method, system, device, electronic equipment and storage medium
CN112163406A (en) Interactive message display method and device, computer equipment and storage medium
CN112583806A (en) Resource sharing method, device, terminal, server and storage medium
CN111628925A (en) Song interaction method and device, terminal and storage medium
CN113204671A (en) Resource display method, device, terminal, server, medium and product
CN110290191B (en) Resource transfer result processing method, device, server, terminal and storage medium
CN112468884A (en) Dynamic resource display method, device, terminal, server and storage medium
CN111158576A (en) Social relationship establishing method and device based on live broadcast scene and storage medium
CN111131867B (en) Song singing method, device, terminal and storage medium
CN110855544B (en) Message sending method, device and readable medium
CN112087366B (en) Account management method and device and instant messaging system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40021624

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant