Message card display method and device, medium and product

By generating and associated with the copy message card collection when the chat page is loaded, the problem of personalized message card replacement affecting the display of other chat pages is solved, ensuring the independence and user experience of multiple chat pages.

CN119276825APending Publication Date: 2025-01-07BEIJING 58 INFORMATION TTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411296012.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

When the public message card of a chat page is replaced by a personalized message card, the public message card displayed on other chat pages coexisting with the chat page will also be replaced with a personalized message card, affecting the display of message card on other chat pages. In turn, it affects the user experience.

Method used

When the first chat page is loaded, a copy message card collection of the global message card collection is generated, and the chat page is associated with the copy message card collection. When a message card replacement request is received, it is only replaced in the copy message card collection. To ensure that the global message card collection is not affected.

Benefits of technology

It realizes the display of personalized message cards in the first chat page without affecting the display of message cards in other chat pages coexisting with the chat page, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276825A_ABST
    Figure CN119276825A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a message card display method and device, a medium and a product, and belongs to the technical field of computers. The method comprises the following steps: when a first chat page is loaded, associating the first chat page with a copy message card set; the replica message card set is a replica of the global message card set, and replacement of the message cards in the replica message card set does not affect the message cards in the global message card set. And replacing the first message card in the copy message card set with a second message card according to the message card replacement request, and displaying the second message card in the first chat page. As the replacement operation of the message card is performed for the message card in the copy message card set, the display of the message cards in other chat pages coexisting with the first chat page is not affected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a message card display method, device, medium and product. Background Art

[0002] With the rapid development of Internet technology, various applications with instant messaging (IM) functions have emerged one after another, which are used to realize real-time message exchange and message display. Among them, message cards, as a common form of message display, can effectively convey information content and improve user experience.

[0003] Generally, message cards are divided into public message cards and personalized message cards. Among them, public message cards are suitable for general information display needs, including standard text, pictures, videos and other types. Personalized message cards are suitable for message cards that meet specific user needs. These message cards are maintained by the message card manager.

[0004] The message card manager maintains global message cards, that is, the message cards maintained in the message card manager can be shared and used in all chat pages. Sometimes users with specific needs need to use personalized message cards to replace public message cards. However, when the public message card of a chat page is replaced by a personalized message card, the public message cards displayed on other chat pages coexisting with the chat page will also be replaced with personalized message cards, which will affect the display of each message card on other chat pages, and thus affect the user experience. Summary of the invention

[0005] The embodiments of the present invention provide a message card display method, device, medium and product to solve the problem that after a public message card on a chat page is replaced by a personalized message card, the public message cards displayed on other chat pages coexisting with the first chat page are also replaced by personalized message cards, thereby affecting the display of message cards in other chat pages, thereby improving the user experience.

[0006] In a first aspect, an embodiment of the present invention provides a message card display method, the method comprising:

[0007] When entering the first chat page, a copy message card set is generated; the copy message card set is a copy of the global message card set, and the replacement of the message card in the copy message card set does not affect the message card in the global message card set;

[0008] Associating the first chat page with the copy message card set;

[0009] receiving a message card replacement request through a first interface; the message card replacement request includes message data of a first message card to be replaced and message data of a second message card to be replaced; the first message card to be replaced is a message card in a copy message card set;

[0010] According to the message card replacement request, the message data of the first message card is replaced with the message data of the second message card;

[0011] According to the message data of the second message card, the second message card is displayed in the first chat page.

[0012] In a second aspect, an embodiment of the present invention provides a message card display device, the device comprising:

[0013] A generation module, used for generating a copy message card set when entering the first chat page; the copy message card set is a copy of the global message card set, and the replacement of the message card in the copy message card set does not affect the message card in the global message card set;

[0014] An association module, used to associate the first chat page with the copy message card set;

[0015] A receiving module, configured to receive a message card replacement request through a first interface; the message card replacement request includes message data of a first message card to be replaced and message data of a second message card to be replaced; the first message card to be replaced is a message card in a copy message card set;

[0016] A replacement module, used to replace the message data of the first message card with the message data of the second message card according to the message card replacement request;

[0017] The display module is used to display the second message card in the first chat page according to the message data of the second message card.

[0018] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a communication interface; wherein executable code is stored on the memory, and when the executable code is executed by the processor, the processor can at least implement the message card display method as described above.

[0019] In a fourth aspect, an embodiment of the present invention provides a non-temporary machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor can at least implement the message card display methods as described above.

[0020] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program. When the computer program product is executed by a processor of an electronic device, the processor can at least implement the message card display method as described above.

[0021] In the solution provided by the embodiment of the present invention, when loading the first chat page, the first chat page is associated with a copy message card set; the copy message card set is a copy of the global message card set, and the replacement of the message card in the copy message card set does not affect the message card in the global message card set. In this way, when a message card replacement request is received through the first interface, the first message card in the copy message card set can be replaced with a second message card according to the message card replacement request, and the second message card is displayed in the first chat page according to the message data of the second message card. Since the message card replacement operation is performed on the message cards in the copy message card set, that is, only the message cards in the copy message card set are replaced, and the message cards in the global message card set are not replaced. Therefore, only the second message card is displayed in the first chat page, and the original first message card is still displayed in other chat pages coexisting with the first chat page, thereby achieving the purpose of not affecting the display of message cards in other chat pages coexisting with the first chat page, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 It is a schematic diagram of the message card display process;

[0024] Figure 2 A schematic diagram of the function of a message card manager;

[0025] Figure 3 A schematic diagram of a message card display method provided by an embodiment of the present invention;

[0026] Figure 4 A flowchart of a message card display method provided by an embodiment of the present invention;

[0027] Figure 5 A schematic diagram of message card replacement in a message card display method provided by an embodiment of the present invention;

[0028] Figure 6A flowchart of a message card registration method provided by an embodiment of the present invention;

[0029] Figure 7 A structural schematic diagram of a message card display device provided by an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and the features in the embodiments can be combined with each other. In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.

[0034] Before introducing the message card display method provided by the embodiment of the present invention, some terms or concepts involved in the embodiment of the present invention are first explained.

[0035] Instant Messaging (IM) application: is a software application that allows users to send and receive text messages, voice messages, pictures, videos and other types of media content in real time over the Internet. Generally, IM applications adopt a client-server architecture, which includes an IM application client and an IM application server. Among them, the IM application client refers to the part of the IM application where users interact directly. The IM application client is installed on the user's terminal device, such as a smartphone, tablet computer, personal computer, etc., allowing users to send and receive instant messages. The IM application server refers to the part of the IM application that is responsible for handling communication, data management and business logic between IM application clients. The IM application server usually runs on a remote server to provide necessary services and support for the IM application client.

[0036] Chat page: An interface that supports real-time communication between users. In this interface, users can send text messages, voice messages, pictures, videos and other types of messages, and can also receive text messages, voice messages, pictures, videos and other types of messages sent by others.

[0037] Message Card: A way to display information in a chat page, including text, pictures, links, buttons and other elements, and displaying these contents in a neat and easy-to-understand way. Generally, message cards include public message cards and personalized message cards. Among them, public message cards are suitable for general information display needs, including standard text, pictures, videos and other types. Personalized message cards are suitable for message cards that meet specific user needs.

[0038] Multiple chat pages coexisting: refers to the situation in which a user opens multiple chat pages at the same time in an instant messaging application, and these chat pages can exist on the screen or run in the background at the same time. Users can quickly switch between multiple chat pages to handle different conversations or tasks without closing or hiding the current chat page.

[0039] Message Card Manager: It is a system component used to manage and maintain message cards. It maintains a global message card collection, and can complete registration for different types of message cards, as well as implement operations such as message card replacement.

[0040] With the rapid development of Internet technology, various applications with instant messaging (IM) functions have emerged, providing users with a convenient and fast real-time message exchange platform. These applications are not limited to text communication, but also support the transmission of multimedia content, such as images, audio, video, etc. In this context, message cards, as an important form of message display, are widely used in various IM applications to improve the efficiency of information transmission and enhance user experience.

[0041] Message cards are a display method that integrates rich information and functions. They can not only display simple text information, but also embed links, pictures, videos and other media formats to make information transmission more vivid and intuitive. In order to better serve the needs of different user groups, message cards are usually divided into two categories: public message cards and personalized message cards.

[0042] Public message cards are designed for general application scenarios. They are suitable for a wide range of user groups and provide standard information display functions. For example, a public message card may only contain basic text and pictures, aiming to meet the most basic communication needs. Such message cards are usually preset by the system and are common to all chat pages. The advantage of this is that consistency and stability are guaranteed.

[0043] Personalized message cards are customized for specific users or scenarios. They may include more complex layout designs, more interactive elements, and even support real-time updates of dynamic content. For example, an e-commerce application may design a special personalized card for the shopping cart confirmation message, showing detailed information such as product images and price changes. Such cards can provide more accurate services, thereby improving user satisfaction.

[0044] Figure 1 This is a schematic diagram of the message card display process. Figure 1 As shown, before displaying the message card, the business server needs to register the message card with the communication server that provides services for the IM application. Specifically, in step 101, the business server sends a message card registration request to the communication server to register card type A. After successful registration, in step 102, the business server sends the message data of message card A to the communication server, and the message data of message card A is sent to the message card manager via the communication software development kit (Software Development Kit, referred to as SDK). In step 103, the message card manager parses the message data of message card A, renders message card A according to the message data, and displays the message card A on the chat page.

[0045] Among them, the message card manager is the core component that stores and maintains all message cards. Figure 2 As shown, a message card set is maintained in the message card manager, including public message cards and personalized message cards. This message card set is globally available and is not destroyed when the chat page is closed. Each message card has a corresponding message card type and user interface (UI) data.

[0046] Different customers can register personalized message cards that meet their needs when the IM application is started. For example, customers who do real estate can register real estate message cards, and customers with recruitment needs can register recruitment message cards, etc. Sometimes the service provider of the IM application wants to customize the display style of public message cards, so the public message cards can be replaced when the chat page is loaded. For example, usually only text content is displayed in a text message. If the recruiter wants to add a "recruitment assistant" logo below the text, when entering the chat page, the message card A originally corresponding to the recruitment is replaced with message card A', where the text content in message card A' is the text content with the "recruitment assistant" logo added. After closing the chat page, it is restored to message card A.

[0047] However, when multiple chat pages coexist, when the public message card of one chat page is replaced by a personalized message card, the public message cards displayed on other chat pages coexisting with the chat page will also be replaced by personalized message cards, which will affect the display of each message card on other chat pages and further affect the user experience.

[0048] Based on this, the embodiment of the present invention provides a new message card display method, such as Figure 3As shown, the inventive concept of the message card display method provided by the embodiment of the present invention is to logically split the interface for providing the message card registration function and the interface for providing the message card replacement function into two different interfaces, that is, to receive the message card registration request and the message card replacement request respectively through different interfaces. At the same time, a copy message card set of the global message card set is established, and the message cards in the copy message card set are exactly the same as the message cards in the global message card set. The copy message card set is associated with the chat page, so that when the message card replacement request is received, the first message card in the copy message card set is replaced with the second message card. After entering the chat page, the second message card is rendered and displayed in the chat page according to the message data of the second message card. In this way, only the message cards in the copy message card set are replaced, and the message cards in the global message card set are not replaced. Therefore, only the second message card is displayed in the first chat page, and the original first message card is still displayed in other chat pages coexisting with the first chat page, thereby achieving the purpose of not affecting the display of message cards in other chat pages coexisting with the first chat page.

[0049] In addition, in the embodiment of the present invention, registration conditions are set for the process of registering message cards. The message card can only be registered when the card type of the message card to be registered included in the message card registration request meets the registration conditions. Otherwise, a message card registration response message containing a registration failure indication will be returned to prevent repeated registration and waste of system resources.

[0050] The following is an introduction to the message card display method and device provided by the embodiments of the present invention.

[0051] Figure 4 A flowchart of a message card display method provided by an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:

[0052] 401. When entering the first chat page, a copy message card set is generated; the copy message card set is a copy of the global message card set, and the replacement of the message card in the copy message card set does not affect the message card in the global message card set.

[0053] 402. Associate the first chat page with the copy message card set.

[0054] 403. Receive a message card replacement request through the first interface; the message card replacement request includes message data of the first message card to be replaced and message data of the second message card to be replaced; the first message card to be replaced is a message card in the copy message card set.

[0055] 404. According to the message card replacement request, replace the message data of the first message card with the message data of the second message card.

[0056] 405. Display the second message card in the first chat page according to the message data of the second message card.

[0057] In the embodiment of the present invention, when multiple chat pages coexist, when entering each chat page, a corresponding copy message card set is generated for each chat page. Specifically, when entering the first chat page, a copy message card set corresponding to the first chat page is generated, the copy message card set is a copy of the global message card set, and the message cards in the copy message card set are the same as the message cards in the global message card set.

[0058] After that, the first chat page is associated with the copy message card set. In this way, when the message card in the first chat page needs to be replaced, the message card in the copy message card set can be replaced instead of the message card in the global message card set, so that the message cards in the global message card set will not be affected.

[0059] The first interface is an interface for providing a message card replacement function. When a message card replacement request is received through the first interface, the message data of the replaced first message card in the copy message card set can be replaced with the message data of the second message card to be replaced according to the message card replacement request.

[0060] It should be noted that when replacing message cards, only message cards of the same card type can be replaced. Specifically, when replacing the message data of the first message card with the message data of the second message card according to the message card replacement request, it is necessary to first determine the situation in which the first message card can be replaced with the second message card based on the message data of the first message card and the message data of the second message card, and then replace the message data of the first message card with the message data of the second message card according to the message card replacement request. The message data of the first message card in the copy message card set corresponding to other chat pages coexisting with the first chat page will not be replaced, and will remain the same as the message data of the first message card in the global message card set.

[0061] Among them, the message data includes the message type. In the embodiment of the present invention, when the message type in the message data of the first message card is consistent with the message type in the message data of the second message card, it is determined that the first message card can be replaced with the second message card. When the message type in the message data of the first message card is inconsistent with the message type in the message data of the second message card, it is determined that the first message card cannot be replaced with the second message card, and an error prompt can be returned at this time; or the original first message card is still displayed on the first chat page.

[0062] The message data also includes user interface (UI) data. When performing the message card replacement operation, the UI data in the message data of the first message card is replaced with the UI data in the message data of the second message card. Afterwards, the second message card is rendered and generated according to the UI data in the message data of the second message card, and the rendered second message card is displayed on the first chat page.

[0063] For example, Figure 5 As shown, it is assumed that there are two chat pages currently coexisting, the first chat page and the second chat page. The first chat page and the second chat page both have associated copy message card sets. It is assumed that a message card replacement request corresponding to the first chat page is received through the first interface, and it is assumed that in the copy message card set corresponding to the first chat page, in the message data of the first message card, the card type is A, and the color of the text content in the corresponding UI data is red, and in the message card replacement request, in the message data of the second message card to be replaced, the card type is A, and the color of the text content in the corresponding UI data is black.

[0064] When entering the first chat page, after receiving the message card replacement request through the first interface, it is determined that the card type in the message data of the first message card and the card type in the message data of the second message card are both A, then it is determined that the first message card can be replaced with the second message card. At this time, the color of the text content in the UI data of the message data of the first message card in the copy message card set associated with the first chat page is replaced from red to black. Then, according to the replaced UI data, a second message card is rendered and generated, and the color of the text content in the rendered second message card is black. The second message card with black text content is displayed on the first chat page.

[0065] like Figure 5In the example shown, no message card replacement request corresponding to the second chat page is received through the first interface. Therefore, when entering the second chat page, the first message card is rendered and generated based on the UI data in the message data of the first message card in the copy message card set associated with the second chat page. In the rendered first message card, the color of the text content is red.

[0066] It can be seen that by associating a copy message card set for each of the different coexisting chat pages, when entering the chat page, if a message card replacement request is received through the first interface, the message data of the message card in the copy message card set corresponding to the chat page can be replaced. This replacement operation will not affect the message cards in the copy message card set associated with other chat pages, that is, it will not affect the display of message cards in other chat pages.

[0067] Based on the scheme provided by the above embodiment of the present invention, when loading the first chat page, the first chat page is associated with a copy message card set; the copy message card set is a copy of the global message card set, and the replacement of the message card in the copy message card set does not affect the message card in the global message card set. In this way, when a message card replacement request is received through the first interface, the first message card in the copy message card set can be replaced with a second message card according to the message card replacement request, and the second message card is displayed in the first chat page according to the message data of the second message card. Since the message card replacement operation is performed on the message card in the copy message card set, that is, only the message card in the copy message card set is replaced, and the message card in the global message card set is not replaced. Therefore, only the second message card is displayed in the first chat page, and the original first message card is still displayed in other chat pages coexisting with the first chat page, thereby achieving the purpose of not affecting the display of message cards in other chat pages coexisting with the first chat page, and improving the user experience.

[0068] Figure 6 A flowchart of a message card registration method provided by an embodiment of the present invention. Figure 6 As shown, the method may include the following steps:

[0069] 601. Receive a message card registration request through a second interface; the second interface and the first interface are interfaces that provide different API functions; the message card registration request includes registration information of the message card to be registered.

[0070] 602. Determine whether the message card to be registered meets the registration condition according to the registration information of the message card to be registered.

[0071] 603. If it is in compliance, based on the registration information of the message card to be registered, the card type and user interface data corresponding to the message card to be registered are stored in the global message card set to complete the registration of the message card to be registered.

[0072] 604. If not, return a message card registration response message including a registration failure indication.

[0073] The second interface is an interface for providing a message card registration function. After receiving a message card registration request through the second interface, it is determined whether the message card to be registered meets the registration conditions according to the registration information of the message card to be registered in the message card registration request.

[0074] In an embodiment of the present invention, whether the message card to be registered meets the registration conditions can be determined based on whether the card types of the message cards are the same. Specifically, it is determined whether there is a message card of the same card type as that in the registration information of the message card to be registered in the global message card set. If there is a message card of the same card type as that in the registration information of the message card to be registered in the global message card set, it is determined that the message card to be registered does not meet the registration conditions. If there is no message card of the same card type as that in the registration information of the message card to be registered in the global message card set, it is determined that the message card to be registered meets the registration conditions.

[0075] For example, it is assumed that the global message card set includes message cards of card type B, card type C, card type D, card type E, card type G, and card type F. If the card type of the message card to be registered in the message card registration request received through the second interface is A, then according to the card type A of the message card to be registered in the message card registration request, it is determined that the message card to be registered meets the registration conditions. At this time, according to the registration information of the message card to be registered, the card type and user interface data corresponding to the message card to be registered are stored in the global message card set, thereby completing the registration of the message card to be registered.

[0076] If the card type of the message card to be registered in the message card registration request received through the second interface is E, then according to the card type E of the message card to be registered in the message card registration request, it is determined that the message card to be registered does not meet the registration conditions, and at this time, a message card registration response message containing a registration failure indication is returned. In other words, the message card to be registered cannot be registered.

[0077] Based on the scheme provided by the above embodiment of the present invention, a message card registration request is received through the second interface, and when it is determined that there is no message card of the same card type as the card type in the registration information of the message card to be registered in the message card registration request in the global message card set, according to the registration information of the message card to be registered, the card type and user interface data corresponding to the message card to be registered are stored in the global message card set to complete the registration of the message card to be registered. When it is determined that there is a message card of the same card type as the card type in the registration information of the message card to be registered in the message card registration request in the global message card set, a message card registration response message containing a registration failure indication is returned. Thus, by adding a registration condition check process to the process of message card registration, the message card can be registered only when the card type of the message card to be registered included in the message card registration request meets the registration condition, otherwise a message card registration response message containing a registration failure indication will be returned, thereby achieving the purpose of preventing repeated registration and wasting system resources.

[0078] The message card display device of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these devices can be configured using commercially available hardware components through the steps taught in this solution.

[0079] Figure 7 The structure diagram of a message card display device provided by an embodiment of the present invention is shown in FIG. Figure 7 As shown, the message card display device 70 may include:

[0080] The generation module 71 is used to generate a copy message card set when entering the first chat page; the copy message card set is a copy of the global message card set, and the replacement of the message card in the copy message card set does not affect the message card in the global message card set.

[0081] The association module 72 is used to associate the first chat page with the copy message card set.

[0082] The receiving module 73 is used to receive a message card replacement request through the first interface; the message card replacement request includes the message data of the first message card to be replaced and the message data of the second message card to be replaced; the first message card to be replaced is a message card in the copy message card set.

[0083] The replacement module 74 is used to replace the message data of the first message card with the message data of the second message card according to the message card replacement request.

[0084] The display module 75 is used to display the second message card in the first chat page according to the message data of the second message card.

[0085] In one embodiment, the replacement module 74 is specifically used to: when it is determined that the first message card can be replaced with the second message card based on the message data of the first message card and the message data of the second message card, replace the message data of the first message card with the message data of the second message card according to the message card replacement request.

[0086] Among them, when the replacement module 74 determines that the first message card can be replaced with the second message card based on the message data of the first message card, it can specifically determine that the first message card can be replaced with the second message card when the message type in the message data of the first message card is consistent with the message type in the message data of the second message card.

[0087] In one embodiment, the replacement module 74 is specifically used to replace the user interface data in the message data of the first message card with the user interface data in the message data of the second message card.

[0088] In one embodiment, the display module 75 is specifically used to: render and generate the second message card according to the user interface data in the message data of the second message card, and display the second message card in the first chat page.

[0089] In one embodiment, the receiving module 73 can also be used to receive a message card registration request through a second interface; the second interface and the first interface are interfaces that provide different application programming interface API functions; the message card registration request includes the registration information of the message card to be registered. The message card display device 70 also includes a determination module, which is used to determine whether the message card to be registered meets the registration conditions based on the registration information of the message card to be registered. The registration module is used to store the card type and user interface data corresponding to the message card to be registered in the global message card set according to the registration information of the message card to be registered when the determination module determines that the message card to be registered meets the registration conditions, so as to complete the registration of the message card to be registered. The sending module is used to return a message card registration response message containing a registration failure indication when the determination module determines that the message card to be registered does not meet the registration conditions.

[0090] In one embodiment, the determination module is specifically used to determine whether there is a message card of the same card type as the card in the registration information of the message card to be registered in the global message card set. If so, it is determined that the message card to be registered does not meet the registration conditions. If not, it is determined that the message card to be registered meets the registration conditions.

[0091] Figure 7 The message card display device shown can execute the steps in the aforementioned embodiments. The detailed execution process and technical effects can be found in the description of the aforementioned embodiments, which will not be repeated here.

[0092] The embodiment of the present invention also provides an electronic device, such as Figure 8 As shown, the electronic device may include: a processor 81, a memory 82, and a communication interface 83. The memory 82 stores executable codes, and when the executable codes are executed by the processor 81, the processor 81 can at least implement the message card display method provided in the above embodiments.

[0093] In addition, an embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the message card display method provided in the aforementioned embodiment.

[0094] In addition, an embodiment of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor of an electronic device, the processor can at least implement the message card display method provided in the aforementioned embodiment.

[0095] The device embodiments described above are merely illustrative, and the network elements described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement the solution without creative effort.

[0096] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A message card display method, characterized in that: The method comprises: When entering the first chat page, a copy message card set is generated; the copy message card set is a copy of the global message card set, and the replacement of the message card in the copy message card set does not affect the message card in the global message card set; Associating the first chat page with the copy message card set; receiving a message card replacement request through a first interface; the message card replacement request includes message data of a first message card to be replaced and message data of a second message card to be replaced; the first message card to be replaced is a message card in the copy message card set; According to the message card replacement request, replacing the message data of the first message card with the message data of the second message card; Display the second message card in the first chat page according to the message data of the second message card.

2. The method according to claim 1, characterized in that The replacing the message data of the first message card with the message data of the second message card according to the message card replacement request includes: When it is determined based on the message data of the first message card and the message data of the second message card that the first message card can be replaced with the second message card, the message data of the first message card is replaced with the message data of the second message card according to the message card replacement request.

3. The method according to claim 2, characterized in that The determining, based on the message data of the first message card, that the first message card can be replaced with the second message card includes: When the message type in the message data of the first message card is consistent with the message type in the message data of the second message card, it is determined that the first message card can be replaced with the second message card.

4. The method according to claim 1, characterized in that: The replacing the message data of the first message card with the message data of the second message card according to the message card replacement request includes: The user interface data in the message data of the first message card is replaced with the user interface data in the message data of the second message card.

5. The method according to claim 4, characterized in that The displaying the second message card on the first chat page according to the message data of the second message card includes: Rendering and generating the second message card according to the user interface data in the message data of the second message card; The second message card is displayed in the first chat page.

6. The method according to claim 1, characterized in that The method further comprises: receiving a message card registration request through a second interface; the second interface and the first interface are interfaces that provide different application programming interface (API) functions; the message card registration request includes registration information of the message card to be registered; Determining whether the message card to be registered meets the registration conditions according to the registration information of the message card to be registered; If it is in compliance, according to the registration information of the message card to be registered, the card type and user interface data corresponding to the message card to be registered are stored in the global message card set to complete the registration of the message card to be registered; If not, a message card registration response message including a registration failure indication is returned.

7. The method according to claim 6, characterized in that The determining, according to the registration information of the message card to be registered, whether the message card to be registered meets the registration condition includes: Determine whether there is a message card in the global message card set that has the same card type as that in the registration information of the message card to be registered; If so, determining that the message card to be registered does not meet the registration condition; If not, it is determined that the message card to be registered meets the registration condition.

8. An electronic device, characterized in that: include: A memory, a processor, and a communication interface; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the method as claimed in any one of claims 1 to 7.

9. A non-transitory machine-readable storage medium, characterized in that: The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of an electronic device, the processor is caused to perform the method as claimed in any one of claims 1 to 7.

10. A computer program product, characterized in that include: A computer program, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.