CN115134324B - Updating method of interactive card, server, terminal and storage medium - Google Patents

Updating method of interactive card, server, terminal and storage medium Download PDF

Info

Publication number
CN115134324B
CN115134324B CN202210510907.7A CN202210510907A CN115134324B CN 115134324 B CN115134324 B CN 115134324B CN 202210510907 A CN202210510907 A CN 202210510907A CN 115134324 B CN115134324 B CN 115134324B
Authority
CN
China
Prior art keywords
interactive card
user
card
data
interactive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210510907.7A
Other languages
Chinese (zh)
Other versions
CN115134324A (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.)
Dingtalk China Information Technology Co Ltd
Original Assignee
Dingtalk China Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dingtalk China Information Technology Co Ltd filed Critical Dingtalk China Information Technology Co Ltd
Priority to CN202210510907.7A priority Critical patent/CN115134324B/en
Publication of CN115134324A publication Critical patent/CN115134324A/en
Application granted granted Critical
Publication of CN115134324B publication Critical patent/CN115134324B/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/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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]

Abstract

The embodiment of the application provides an updating method, a server, a terminal and a storage medium of an interactive card, wherein the method comprises the following steps: displaying an interactive card on an IM interface of a user, wherein the interactive card is suitable for bearing content data, and the content data is borne in a data input area associated with the interactive card; triggering the updating of the content data of the interactive card according to a set event or user interaction operation, and acquiring target content data corresponding to the user after the updating of the interactive card, wherein the target content data at least comprises: updated private data of the user; and re-rendering the interactive card in a data input area associated with the interactive card by utilizing the target content data. According to the method and the device for updating the interactive card, the interactive card can be updated differently for different users, so that the interactive card can be updated for the users accurately.

Description

Updating method of interactive card, server, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of Instant Messaging (IM), in particular to an updating method, a server, a terminal and a storage medium of an interactive card.
Background
With the development of IM (instant messaging) technology, IM software can also carry application services (such as third party applications) through an interactive card based on a traditional instant messaging function, so as to meet the use requirements of users in different scenarios such as collaborative office, life services, and the like. By setting interactive cards for different application services, IM software can provide a user with a scenic, immersive experience at the different application services.
When the data of the interactive card is updated, the interactive card displayed by the user terminal needs to be updated correspondingly, so that how to update the interactive card for the user accurately becomes a technical problem to be solved by the person skilled in the art.
Disclosure of Invention
In view of this, the embodiments of the present application provide an updating method, a server, a terminal, and a storage medium for an interactive card, so as to implement differential updating of the interactive card for different users when there is data updating of the interactive card, thereby accurately updating the interactive card for the users.
In order to achieve the above purpose, the embodiments of the present application provide the following technical solutions.
In a first aspect, an embodiment of the present application provides a method for updating an interactive card, including:
Displaying an interactive card on an IM interface of a user, wherein the interactive card is suitable for bearing content data, and the content data is borne in a data input area associated with the interactive card;
triggering the updating of the content data of the interactive card according to a set event or user interaction operation, and acquiring target content data corresponding to the user after the updating of the interactive card, wherein the target content data at least comprises: updated private data of the user;
and re-rendering the interactive card in a data input area associated with the interactive card by utilizing the target content data.
In a second aspect, an embodiment of the present application provides a method for updating an interactive card, including:
acquiring updated content data of an interactive card, wherein the updated content data of the interactive card is triggered to be updated based on a set event or user interaction operation, and the content data is loaded in a data input area associated with the interactive card;
sending an update notification of an interactive card to a user, and determining target content data corresponding to the user after updating the interactive card based on a request of the user; the target content data includes at least: updated private data of the user;
And sending the target content data to the user so that the user can re-render the interactive card in a data input area associated with the interactive card by utilizing the target content data.
In a third aspect, an embodiment of the present application provides a method for updating an interactive card, including:
generating an interactive card of an application service, the interactive card being adapted to carry content data, wherein the content data is carried in a data entry area associated with the interactive card;
updating the content data of the interactive card; the content data of the interactive card is triggered to be updated based on a setting event or user interaction operation, and the updated content data of the interactive card at least comprises private data of a user;
and sending the updated content data of the interactive card so that the user re-renders the interactive card in a data input area associated with the interactive card by utilizing the updated target content data corresponding to the user of the interactive card.
In a fourth aspect, an embodiment of the present application provides a terminal, including at least one memory and at least one processor, where the memory stores one or more computer executable instructions, and the processor invokes the one or more computer executable instructions to implement the method for updating an interactive card as described in the first aspect above.
In a fifth aspect, embodiments of the present application provide a server, including at least one memory and at least one processor, where the memory stores one or more computer-executable instructions, and the processor invokes the one or more computer-executable instructions to implement the method for updating an interactive card according to the second aspect, or the method for updating an interactive card according to the third aspect.
In a sixth aspect, embodiments of the present application provide a storage medium storing one or more computer-executable instructions that, when executed, implement a method for updating an interactive card as described in the first aspect, or a method for updating an interactive card as described in the second aspect, or a method for updating an interactive card as described in the third aspect.
In a seventh aspect, an embodiment of the present application provides a computer program, where the computer program is executed to implement the method for updating an interactive card according to the first aspect, or the method for updating an interactive card according to the second aspect, or the method for updating an interactive card according to the third aspect.
In the method for updating the interactive card, the terminal can display the interactive card on the IM interface of the user, and the interactive card is suitable for bearing content data, wherein the content data is borne in a data input area associated with the interactive card; the terminal can trigger the updating of the content data of the interactive card according to a set event or user interaction operation, and acquire the updated target content data corresponding to the user of the interactive card, wherein the target content data at least comprises: updated private data of the user; and re-rendering the interactive card in the data input area associated with the interactive card by utilizing the target content data so as to update the content data of the interactive card.
As can be seen, in the embodiment of the present application, private data of a user is set in content data of an interactive card, and when the interactive card of the user triggers updating, the embodiment of the present application may acquire target content data corresponding to the user after updating the interactive card, so when the interactive card is re-rendered by using the target content data, the embodiment of the present application may use the updated private data of the user in the target content data to re-render the interactive card, so that the interactive card may refresh the private data of the user. Because private data of different users may be different, when private data of the users are updated, the terminal can update content data of the interactive card by using the updated private data of the users, so that the different users can view the differentially updated private data from the interactive card, and the effect that the interactive card realizes data differential update for the different users is achieved; therefore, according to the scheme provided by the embodiment of the application, when the data of the interactive card is updated, the differential updating of the interactive card can be realized for different users, so that the interactive card can be accurately updated for the users.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is an example diagram of user interactions with an interaction card in a chat group.
Fig. 2 is a flowchart of an updating method of an interactive card according to an embodiment of the present application.
Fig. 3A is an exemplary diagram of a data storage structure of an interactive card according to an embodiment of the present application.
Fig. 3B is a diagram illustrating a storage relationship of data storage on an interactive card according to an embodiment of the present application.
Fig. 4 is another flowchart of an updating method of an interactive card according to an embodiment of the present application.
Fig. 5 is a flowchart of a method for re-rendering interactive cards according to an embodiment of the present application.
Fig. 6 is a flowchart of another method for re-rendering interactive cards according to an embodiment of the present application.
Fig. 7 is an exemplary diagram of an implementation of an update method of an interactive card according to an embodiment of the present application.
Fig. 8A is a block diagram of an updating device for an interactive card according to an embodiment of the present application.
Fig. 8B is another block diagram of an updating device for an interactive card according to an embodiment of the present application.
Fig. 8C is a further block diagram of an updating apparatus for an interactive card according to an embodiment of the present application.
Fig. 9 is a block diagram of a terminal provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Interactive cards are containers in the form of cards that carry the message content of an application service. In one embodiment, the interactive card may carry message content provided by a content provider other than the IM provider and be sent into the IM communication interactive page. In possible implementations, the interactive card may carry the message content of the application service based on HTML (Hyper Text Markup Language ) technology, weex (Weex is a build mobile end cross-platform UI framework) technology, or other similar technology. In a possible implementation, the interactive card may be initiated through an entry of the IM communication interactive page (e.g., initiating the interactive card at a chat group interface or a personal session interface of the IM), or may be initiated through an entry of other functions of the IM software, e.g., initiating the interactive card through an entry of an online document of the IM software, an entry of a content viewing page, etc.
In IM software, the interactive card may express the message content of the application service in the form of pictures, text, video, etc., and the interactive card may allow the user to perform interactive operations on the interactive card through the interactive modules of button icons, links, interactive options, documents, etc. In one use example of an interactive card, when an initiating user initiates an application service, the interactive card of the application service may be sent to a chat group or individual user; and the chat group user or the personal user receiving the interactive card can view the interactive card through the chat group interface or the personal session interface and perform interactive operation on the interactive card.
For ease of understanding, fig. 1 illustrates an exemplary diagram of user interaction with an interaction card in a chat group, and in conjunction with fig. 1, taking an order application service as an example, user a may select an order application service (an order application service, e.g., a group application developed for a chat group scenario) from a third party application of IM software, and send a request for generating the interaction card to a developer server of the order application service through an IM server; the developer server may generate interactive cards for ordering based on the request of user a, and push the interactive cards to the chat group in which user a is located (e.g., the chat group in which the interactive cards are initiated) or the chat group specified by user a through the IM server.
In another embodiment, a user A opens an entry of a third party application from a chat group of an IM software client to launch the third party application, and at this time, the user A initiates a request for launching the third party application; the IM server responds to the start-up request. In some embodiments, the initiation request may include one or more of user information of user a, group information of the chat group in which the user is located, and application information of a third party application, IM, etc.; the user information of the user a may include a user name, organization structure information, and the like corresponding to the user a in the IM software, and the group information of the chat group may include a group ID or a group name, and the like. The IM server responding to the initiation request may include the IM server generating an interactive card in response to the initiation request, or may further include the IM server sending the initiation request to a server of the third party application (e.g., a developer server of the above example), and generating a corresponding interactive card through the server of the third party application. In particular embodiments, the interactive card may have a binding relationship with user information of an initiating user (e.g., user A) and/or group information of a group in which the initiating user is located.
For convenience of explanation, taking the user B as an example of a user in the chat group, the user B may receive an interactive card for ordering a meal through the chat group, and the user B may directly view a plurality of titles of the interactive card on the interactive card, or may click the interactive card, so that an application service page for ordering a meal is displayed on a chat group interface through a floating layer, and further, a plurality of titles of the interactive card are displayed on the application service page for ordering a meal; FIG. 1 is an example of a user clicking on an interactive card to reveal a float layer on a chat group interface; as shown in connection with fig. 1, an interactive card may have a plurality of titles: a meal ordering theme, a meal ordering deadline, a main dish, a meal delivery place, a package meal and the like.
In one embodiment, the interactive card contains at least a cover page and a detail page (a detail page such as the application services page of the above example). Users in the chat group can directly view the cover page of the card, and when the users click on the interactive card, the interactive card responds to the user operation to open the detailed page. And the data content and the display size of the cover page and the detailed page are set by an application service provider carried by the interactive card. In one example, private data provided by a user can be directly displayed through the cover page of the interactive card, so that the user can directly see the update of the content data on the premise of not opening the detailed page, and the communication efficiency is improved.
In the above example of the meal ordering application service, the title displayed by the interactive card may be set by a developer of the meal ordering application service when developing the interactive card, the data corresponding to the title of the meal ordering subject, the meal ordering deadline and the package may be edited by the initiating user when initiating the meal ordering application service, and the data corresponding to the title of the main dish and the meal delivery place may be input by the user who receives the interactive card through interactive operation; that is, the user needs to perform interactive operations on the main dishes of the interactive card and the titles of the meal delivery sites.
Assuming that the user B has a meal ordering requirement, the user B can input the main dish data and the meal delivery site data in the titles of the main dish and the meal delivery site (at the moment, the user B is considered to execute interaction operations of main dish selection and meal delivery site selection through an interaction card for ordering); furthermore, the main dish data and the meal delivery place data which are input by the user B in the interactive card can be synchronized to a developer server of the meal ordering application service through the IM server, so that the catering staff can provide meal service for the user B.
In one embodiment, users such as C, D, E in the chat group can order a meal through the interactive card, and after each time a user completes filling of the order data, the interactive card responds to the user operation to update the content data in real time, and display the updated data through the cover page, so that the user in the chat group can quickly view the update of the data through the cover page of the card, and the communication efficiency is improved.
It should be noted that, fig. 1 only illustrates an application service of ordering, and illustrates a use manner of an interactive card, and the interactive card is not limited to an application service scenario of ordering, and may be applied to a collaborative office scenario such as document processing and item tracking, and a life service scenario such as body building and reading.
It can be seen that the interactive card can provide convenient application services (such as third party applications) for users in the IM software, and avoid the need of jumping between applications when the users use the third party applications, thereby providing scenerization and immersive experience of the third party applications for the users in the IM scene.
When the interactive card of the application service updates data, the requirement of carrying out differentiated updating for different users exists. In one example, if the user performs the interactive operation on the interactive card, the interactive operation result of the user needs to be updated on the interactive card, and the interactive operation results of different users may be different, so that the interactive card needs to perform differential update of data for different users; for example, in an application service scenario of ordering, the interactive card needs to perform differentiated data update for the user who has ordered the meal, the user who has not ordered the meal, and the user who has reserved the main dish. In other examples, when the application service needs to push data based on user preferences, the interactive card needs to perform differential updating of data based on user preferences of different users because the user preferences of different users are different; for example, in the application service scenario of article recommendation, article preferences of different users are different, so the interactive card needs to update articles differently for users with different article preferences.
Whether the interactive card can perform data differentiated update for different users is one of key points for accurately updating the data by the interactive card; based on the above, the embodiment of the application provides a novel interactive card updating scheme, so that when the interactive card has data updating, differential updating of the interactive card is realized for different users, and the effect of accurately updating the interactive card is achieved.
In the embodiment of the application, in order to enable the interactive card to realize differentiated updating of data for different users, private data of the users can be set in content data of the interactive card. Private data may be understood as data personal to a user in an interactive card, where the private data may not be the same for each user looking from the interactive card when the interactive card is pushed to multiple users. Furthermore, the embodiment of the application can also set public data in the content data of the interactive card; public data may be understood as public data of an interactive card that when pushed to multiple users (e.g., the interactive card is pushed to a chat group), multiple users may view the same public data from the interactive card.
According to the method and the device for updating the data of the interactive card, the private data of the user are set in the content data of the interactive card, so that when the data of the interactive card is updated, the different users can check the differentially updated private data through the interactive card, and the effect that the interactive card is differentially updated for different users is achieved.
Based on the above-mentioned idea, as an optional implementation, fig. 2 schematically illustrates an optional flowchart of an update method of an interactive card provided in an embodiment of the present application. The method flow can be implemented by the execution of a terminal, a developer server and an IM server; the terminal may be, for example, a user terminal device such as a smart phone, a tablet PC (personal computer) or a PC (personal computer) used by an IM user, where the terminal in the embodiment of the present application may be a user terminal that receives an interaction card; the developer server can be a server of a developer, and the developer can develop application services and interactive cards of the application services for the IM software; the IM server may be a server device that provides IM services, and may be implemented by a server cluster formed by a plurality of servers; in some embodiments, a terminal may install an IM client and communicate with an IM server providing IM services through the IM client.
Referring to fig. 2, the method flow may include the following steps.
In step S210, the terminal presents the interactive card on the IM interface of the user.
In embodiments of the present application, the interactive card is adapted to carry content data (e.g., the interactive card may carry content data for an application service), and the content data may be carried in a data entry area associated with the interactive card. The interactive card-associated data entry area may be, for example, a data entry area in an interactive card and/or a data entry area in an interactive card-associated application service page; alternatively, the application service page may be presented on top of the user's current IM interface in a floating layer manner. In some embodiments, the data entry area may be an area available for entry of data, such as a title, field, or the like, for entry of data. As an alternative implementation, the data entry area may be in the form of a data entry box. In a further alternative implementation, the interactive card may also carry setup presentation data (setup presentation data such as text, pictures, etc. of the setup presentation).
In the embodiment of the present application, the user referred to in step S210 may be any user who receives the interactive card. In some embodiments, an initiating user may initiate an application service and send an interactive card of the application service to the user so that the user's terminal may present the interactive card at the IM interface. As an alternative implementation, when an initiating user initiates an application service, the initiating user can request an interactive card of the application service from a developer server through the IM server; the developer server can generate the interactive card of the application service and push the interactive card to the chat group or the personal user appointed by the initiating user through the IM server, so that the terminal of the user can display the interactive card on the chat group interface or the personal session interface of the user. It should be noted that the initiating user may be regarded as an initiator of the application service, for example, an initiator of the order application service, or the like.
In step S211, the developer server updates the content data of the interactive card, and obtains updated content data of the interactive card.
In some embodiments, the content data of the interactive card may trigger an update based on a setup event or user interaction. As an alternative implementation, if the user performs interactive operation on the interactive card, the terminal can respond to the interactive operation of the user on the interactive card, so that an update request of the interactive card is sent to the developer server through the IM server to trigger the update of the content data of the interactive card; at this time, the developer server may update the content data for the interactive card.
In other optional implementations, the embodiment of the present application may set a setting event for updating the interactive card, so that when the setting event occurs, the developer server may automatically update the content data of the interactive card; after the content data of the interactive card is updated, the developer server can push the content data updated by the interactive card to the IM server, so that the IM server can send an update notification of the interactive card to the terminal of the user, and the terminal side can trigger update of the interactive card displayed by the terminal side based on the setting event.
That is, in the embodiment of the present application, the terminal may trigger the update of the content data of the interactive card according to a setting event or a user interaction operation. When the content data of the interactive card is updated according to the user interaction operation triggering, the terminal can respond to the user interaction operation and send out an update request of the interactive card, so that the developer server updates the content data of the interactive card. When the content data of the interactive card is triggered to update according to the setting event, if the setting event occurs, the terminal can acquire an update notification sent by the IM server so as to trigger the interactive card displayed by the terminal side to update. In some embodiments, the setting event may be a setting parameter, for example, a setting time parameter, a setting place parameter, etc., for example, in embodiments of the present application, the developer server may be allowed to automatically update the content data of the interactive card according to the setting parameter of time and/or place, etc.; of course, the parameter type of the setting parameter may be set according to practical situations, and the embodiment of the present application is not limited.
In the embodiment of the application, the private data of the user is set in the content data carried by the interactive card, so that the interactive card can be associated with a private data input area for carrying (inputting) the private data; in some embodiments, some or all of the data entry area associated with the interactive card may be a private data entry area; the embodiment of the application can treat the content data carried by the private data input area as private data of a user.
As an alternative implementation, taking the example that the content data carried by the interactive card is divided into public data and private data corresponding to each user respectively, the interactive card can be associated with a plurality of data input areas for carrying the content data. Taking the example that the data entry area includes a title, in one implementation example, when developing an interactive card for an application service, a developer may set some or all of a plurality of titles associated with the interactive card as private titles (the private titles may be considered as one implementation example of the private data entry area), and the private titles are used to enter private data of a user, so that data corresponding to the private titles in the interactive card may be considered as private data. In the embodiment of the application, private data needs to be stored in a user dimension (for example, private data of each user is stored separately); the content data corresponding to the non-private title in the interactive card can be regarded as public data, and meanwhile, when the private title is not input with the private data of the user, the private title can be filled by the public data corresponding to the private title.
That is, in alternative implementations, each data entry area associated with an interactive card (e.g., each title associated with an interactive card) may be provided with public data, and wherein a private data entry area (e.g., a private title) may be used to enter private data of a user; and when the private data of the user does not exist in the private data input area of the interactive card, filling the private data input area by using the corresponding public data.
As an alternative implementation, taking a data entry area as a title as an example, fig. 3A illustrates an exemplary diagram of a data storage structure of an interactive card provided in an embodiment of the present application, as shown in fig. 3A, content data of the interactive card may be set to public data and private data of users 1 to n, where n is the number of users receiving the interactive card, and specifically, according to practical situations, the embodiment of the present application is not limited; the public data of the interactive card can be stored for one copy and is used for recording the public data corresponding to each title in the interactive card; the private data of the interactive card can be stored in n copies, and one copy of private data can record the private data corresponding to the private title of the interactive card of a user.
In a further alternative implementation, different interactive cards may be distinguished by different card identifications, and in one interactive card, private data of different users may be distinguished according to user identifications (e.g., user IDs) of the different users; therefore, when storing private data of a plurality of users of the interactive card, the embodiment of the application can respectively store the private data of different users according to the user IDs of the different users. In one example, fig. 3B is an exemplary diagram illustrating a storage relationship for storing data on an interactive card according to an embodiment of the present application, which may be referred to. As shown in fig. 3B, it can be seen that when the content data of the interactive card is stored, the embodiment of the present application can distinguish public data and private data, and the public data records public data corresponding to each title; private data corresponding to private titles are recorded from the dimensions of different user IDs (e.g., user ID1 through user IDn) respectively.
As an optional implementation, the private data entry area associated with the interaction card may be a data entry area capable of representing data differentiation of different users, and the private data entry area may be specifically set according to different application service scenarios, which is not limited in this application example. In one example, taking a private title as an example of a private data entry area, the private title may be a title requiring user interaction in an interactive card, for example, in a plurality of titles of the interactive card shown in fig. 1, titles of a main dish and a delivery place may be set as private titles; it will be appreciated that the data entered by the titles of the different users at the main and delivery sites may be different, so that the titles of the main and delivery sites can represent the data differentiation of the different users and can be set as private titles. It should be noted that if the titles of the main dish and the meal delivery site do not have the input data, the private titles of the main dish and the meal delivery site do not have the corresponding private data, and the private titles of the main dish and the meal delivery site can be filled with preset public data, for example, the data corresponding to the private titles of the main dish and the meal delivery site are set to be empty or the content of the pre-edited text.
When the developer server updates the content data of the interactive card, the updated content data of the interactive card may be public data or private data of one or more users. In some embodiments, the developer server may update the data of the interactive card based on the user request, or may automatically update the data of the interactive card. As an alternative implementation, when the user performs the interactive operation on the interactive card, the developer server may be triggered to update the data of the interactive card, and at this time, the developer server may update the private data corresponding to the user performing the interactive operation, and possibly update the public data affected after the user performs the interactive operation. In an example, taking an order application service as an example, after the user terminal displays an interactive card of the order application service, if a user performs interactive operation on the interactive card, the user terminal may send an update request of the interactive card to a developer server of the order application service, so that the developer server may update private data corresponding to private titles such as a main dish and a delivery place for the user performing the interactive operation; further, in the case where the interactive card is provided with a title of the number of ordered persons, the developer server may update the public data of the number of ordered persons of the interactive card based on the user who has performed the interactive operation.
In other alternative implementations, the data update of the interactive card may also be automatically triggered by the developer server, independent of whether the user performs the interactive operation; for example, the developer server may automatically update the content data of the interactive card based on the setup event. In one example, the developer server may update the content data of the interactive card when the developer server needs to update the data content in the interactive card; in another example, in an application service scenario of article recommendation, a developer server may update recommended articles based on user preferences in real time or periodically, so as to update content data of an interactive card, in this example, article preferences of different users may be different, and thus different articles recommended for different users may be regarded as private data corresponding to different users.
In step S212, the developer server pushes the content data updated by the interactive card to the IM server.
After the developer server updates the content data of the interactive card, the content data updated by the interactive card can be pushed to the IM server, so that the IM server confirms that the update condition of the interactive card exists at the moment. In some embodiments, the developer server may push the updated public data of the interactive card and private data corresponding to each user to the IM server. As an alternative implementation, after obtaining the updated content data of the interactive card, the IM server may store the content data of the interactive card in the database according to the data storage structure illustrated in fig. 3A.
In step S213, the IM server transmits an update notification of the interactive card to the user' S terminal.
In some embodiments, when the IM server obtains updated content data of the interactive card, because not every user who receives the interactive card needs to update the interactive card, the IM server needs to determine the user who needs to update the interactive card, so as to send an update notification of the interactive card to the user who needs to update the interactive card. Based on this, if the IM server determines that the interactive card of the user (any user who received the interactive card) needs to be updated, an update notification of the interactive card may be sent to the user's terminal.
In some embodiments, if the IM server confirms that the public data of the interactive card is updated, and the public data is public data of the users based on the public data, the IM server may determine that each user who receives the interactive card needs to update the interactive card, so as to send an update notification of the interactive card to each user who receives the interactive card. In some embodiments, if the IM server confirms that the private data of one or more users in the updated interactive card is updated, based on the user private characteristics of the private data, the IM server may determine that the interactive card of the one or more users needs to be updated, and thus send an update notification of the interactive card to the one or more users. That is, the IM server may determine that the user needs to update the interactive card if it determines that there is an update in the public data of the interactive card and/or an update in the private data of the user.
In step S214, the terminal requests the IM server for the target content data corresponding to the user after the interactive card update.
In some embodiments, when the terminal displays the interactive card on the IM interface of the user, by a mechanism of monitoring the notification message in real time, whether the IM server sends the update notification of the interactive card to the user or not can be monitored in real time, so that when the terminal monitors that the IM server sends the update notification of the interactive card to the user, the terminal can timely request the IM server for the target content data corresponding to the user after the update of the interactive card. It should be noted that, for a certain user, after the developer server updates the content data of the interactive card, the content data updated by the interactive card is not necessarily all the data of the user, so the terminal of the user needs to request the content data corresponding to the user from the IM server; for convenience of explanation, for a user requesting data, in the content data updated by the interactive card according to the embodiment of the present application, the content data (possibly private data, or private data and public data) corresponding to the user may be referred to as target content data.
In other embodiments, the IM server may also send update notification of the interactive card to the user's terminal automatically at regular time when the interactive card has content data update, so that the terminal requests the target content data from the IM server at regular time.
In step S215, the IM server determines target content data corresponding to the user from the content data updated by the interactive card.
In step S216, the IM server returns the target content data to the terminal.
In some embodiments, the IM server may determine target content data corresponding to the user from the updated content data of the interactive card. For example, the IM server may query public data as well as private data of the user from the updated content data of the interactive card. The IM server may return the targeted content data to the user's terminal.
In some embodiments, the card identifier of the interactive card and the user identifier of the user may be carried in the request sent by the terminal, so that the IM server may determine the interactive card requested by the user based on the card identifier carried in the request; and determining private data requested by the user based on the user identification carried in the request. As an optional implementation, the IM server may determine, from the updated content data of the interactive card, public data corresponding to each data entry area in the interactive card, based on the card identifier carried in the request; and determining private data corresponding to the private data input area of the user from the content data updated by the interactive card based on the card identifier and the user identifier carried in the request.
In step S217, the terminal re-renders the interactive card in the data entry area associated with the interactive card using the target content data.
In some embodiments, the terminal may obtain target content data corresponding to the user after the interactive card is updated; for example, the terminal may obtain public data corresponding to each data entry area of the interactive card, and private data corresponding to the private data entry area by the user.
And the terminal can re-render the interactive card after obtaining the target content data returned by the IM server, so that the updated target content data corresponding to the user of the interactive card is refreshed into the interactive card. In some embodiments, the target content data may include updated private data of the user; the terminal can re-render the interactive card in the data input area associated with the interactive card by using the updated private data of the user preferentially, so that the target content data is refreshed in the interactive card. In further embodiments, the target content data may also include public data; as an alternative implementation, the terminal may refresh the target content data into the interactive card using public data and private data of the user.
As an optional implementation, the terminal may sequentially render the data entry areas (e.g., titles) in the interactive card, and after determining the current data entry area currently rendered, the terminal may determine whether the current data entry area is a private data entry area; if the current data input area is not the private data input area, the terminal can determine public data corresponding to the current data input area from the target content data, and render the public data corresponding to the current data input area; if the current title is the private data entry region, the terminal may determine whether private data corresponding to the current data entry region exists in the target content data. If private data corresponding to the current data input area exists in the target content data, rendering by the terminal through the private data corresponding to the current data input area; if the private data corresponding to the current data input area does not exist in the target content data, the terminal can confirm that the private data of the current data input area is not input, and therefore the terminal can render by using the public data corresponding to the current data input area. By the method, the terminal can sequentially render the data input areas in the interactive card, so that the re-rendering of the interactive card is completed, and the interactive card refreshes data.
From the perspective of the user's terminal, in the method for updating the interactive card provided by the embodiment of the invention, the terminal can display the interactive card on the user's IM interface, and the interactive card is suitable for bearing content data, wherein the content data is borne in a data input area associated with the interactive card; the terminal can trigger the updating of the content data of the interactive card according to a set event or user interaction operation, and acquire the updated target content data corresponding to the user of the interactive card, wherein the target content data at least comprises: updated private data of the user; and re-rendering the interactive card in the data input area associated with the interactive card by utilizing the target content data so as to update the content data of the interactive card.
As can be seen, in the embodiment of the present application, private data of a user is set in content data of an interactive card, and when the interactive card of the user triggers updating, the embodiment of the present application may acquire target content data corresponding to the user after updating the interactive card, so when the interactive card is re-rendered by using the target content data, the embodiment of the present application may use the updated private data of the user in the target content data to re-render the interactive card, so that the interactive card may refresh the private data of the user. Because private data of different users may be different, when private data of the users are updated, the terminal can update content data of the interactive card by using the updated private data of the users, so that the different users can view the differentially updated private data from the interactive card, and the effect that the interactive card realizes data differential update for the different users is achieved; therefore, according to the scheme provided by the embodiment of the application, when the data of the interactive card is updated, the differential updating of the interactive card can be realized for different users, so that the interactive card can be accurately updated for the users.
Taking a data input area as a title as an example, the following describes an alternative updating scheme of the interactive card provided by the embodiment of the present application from initiating a process from a user to updating the interactive card. Optionally, fig. 4 is an exemplary flowchart showing another alternative method for updating an interactive card provided in an embodiment of the present application, and referring to fig. 4, the method may include the following steps.
In step S410, the developer server receives a request from an initiating user to generate an interactive card for an application service.
In step S411, the developer server generates an interactive card of the application service.
The interactive card generated by the developer server may be provided with a plurality of titles, some or all of which are private titles. In some embodiments, if the data of the private title is set to be updated based on the interactive operation of the user, when the interactive card is generated, the data corresponding to the private title may be empty or preset document content. In other embodiments, if the data of the private title is set to be updated by a set event trigger (e.g., the developer server automatically updates the private data of the user at a regular time), the data corresponding to the private title generated by the developer server may be automatically entered by the developer server and automatically updated at a subsequent regular time by the developer server. In further embodiments, each title in the interactive card may be configured with public data (e.g., public data for each title based on the editing content of the initiating user at each title), and for private titles, the private titles may be configured to be populated with public data corresponding to the private title before the private data of the user is not entered.
In step S412, the developer server transmits the interactive card to the user' S terminal through the IM server.
The initiating user may designate chat groups and/or individual users that receive the interactive cards so that the developer server may send the interactive cards to the chat groups and/or individual users designated by the initiating user via the IM server. The user referred to in the embodiments of the present application may be any user that initiates the user-specified receipt of an interactive card, including any user or any human user in a chat group.
In step S413, the terminal presents the interactive card on the IM interface.
In step S414, the terminal establishes a real-time notification listening event with the IM server.
After the interactive card is displayed by the terminal of the user, the update notification of the interactive card about the user can be monitored from the IM server in real time, so that the terminal of the user can timely pull the data of the interactive card corresponding to the user from the IM server after the update notification of the interactive card about the user is monitored from the IM server.
In some embodiments, the user performs an interactive operation on the private title of the interactive card, which may trigger a data update of the interactive card. As an alternative implementation, when the user performs an interactive operation on the private title of the interactive card, the terminal of the user may send an update request of the interactive card to the developer server through the IM server in response to the interactive operation of the user.
In one example, taking an order application service as an example, after displaying an interactive card of the order application service, if a user performs an interactive operation on a private title such as a main dish, a delivery place, etc. of the interactive card, the terminal may send an update request of the interactive card to a developer server of the order application service.
It should be noted that, the user performs the interactive operation on the private title to trigger the data update of the interactive card is only one example implementation, and the embodiment of the application can automatically update the interactive card through the developer server; for example, when the developer server needs to update the data content in the interactive card (such as the title in the interactive card, etc.), the developer server may update the interactive card and push the update data of the interactive card to the IM server, so that the IM server sends an update notification of the interactive card to the terminal. In one example, in an application service scenario of article recommendation, a developer server may update a recommended article based on user preferences in real time or periodically, so as to update data of an interactive card, and the developer server may push update data of the interactive card after updating the recommended article to an IM server, so that the IM server sends update notification of the interactive card to a terminal.
In some other possible embodiments, when the interactive card is sent to a plurality of users, other users perform interactive operations on the interactive card, and the developer server can be triggered to update the data of the interactive card, so that the IM server pushes update notification of the interactive card to the user terminal. In one example, taking an order application service as an example, the interactive card can display the number of ordered people in real time, so that after the interactive operation of ordering the food is performed by other users receiving the interactive card, the developer server can update the interactive card; at this time, if the user does not perform the interactive operation, the development server may update private data for other users performing the interactive operation, and update public data affected by the private data of other users (e.g., update the number of ordered persons in the interactive card) for the users.
It can be seen that there are various update mechanisms for the interactive card, and for convenience of description, this process is described by taking the interactive operation of the user, triggering the developer server to update the interactive card as an example.
In step S415, the terminal transmits an update request of the interactive card to the developer server through the IM server in response to the user' S interactive operation on the interactive card.
In some embodiments, the user's terminal may send an update request for the interactive card to the developer server via the IM server. For example, the IM server may set a callback address of the developer server, so that after receiving an update request sent by the user's terminal, the update request is recalled to the developer server through the callback address.
As an alternative implementation, the interactive card can directly display a plurality of titles for inputting data, so that a user can perform interactive operation on private titles on the interactive card; in other possible implementations, the user may click on the interactive card, so that the user's IM interface may display a user operation page through the floating layer, which may display a plurality of titles for entering data in the interactive card, so that the user may interactively operate the private title on the user operation page displayed on the floating layer. According to the method and the device for displaying the user operation page in the floating layer mode, the user can conduct interactive operation on the current IM interface through the user operation page displayed in the floating layer mode, and therefore the user can conduct interactive operation without separating from the current IM interface.
In step S416, the developer server updates the content data of the interactive card.
In step S417, the developer server pushes the content data updated by the interactive card to the IM server.
In step S418, the IM server stores the updated content data of the interactive card in the database.
In some embodiments, the IM server may store the updated content data of the interactive card in a database according to the card identifier of the interactive card and the user identifier of each user; wherein, the content data of one interactive card stored in the database comprises public data corresponding to each data entry area (such as public data corresponding to each title), and private data corresponding to each user identifier (such as private title and private data corresponding to each user identifier).
In step S419, the IM server updates the version number of the interactive card.
In step S420, when the IM server determines that the user needs to update the interactive card, the IM server sends the updated version number of the interactive card to the user' S terminal.
As an alternative implementation, the interactive card may represent an update of the interactive card by an update of the version number; thus, the IM server may update the version number of the interactive card when the interactive card updates data (e.g., when the IM server obtains the update data of the interactive card pushed by the developer server). Further, the IM server may send the updated version number of the interactive card to the user's terminal when it determines that the user needs to update the interactive card (e.g., when there is an update of public data of the interactive card and/or when there is an update of private data of the user).
Correspondingly, based on the real-time notification monitoring event established by the user terminal and the IM server, the user terminal can monitor the updated version number of the interactive card sent by the IM server in real time.
In step S421, the user' S terminal sends a request carrying the card identifier of the interactive card and the user identifier of the user to the IM server, so as to request the updated target content data corresponding to the user of the interactive card.
In step S422, the IM server queries, in the database, public data corresponding to each title of the interactive card and private data corresponding to the private title of the interactive card according to the card identifier of the interactive card and the user identifier of the user.
In some embodiments, the IM server may determine the card identification of the interactive card, and the user identification of the user, from a request sent by the user's terminal; the IM server can inquire the data of the interactive card from the database according to the card identification of the interactive card; and then determining public data corresponding to each data input area (such as public data corresponding to each title) from the queried data of the interactive card. Because the private data of different users are respectively stored according to the user identifications of different users, the IM server can judge whether the private data of the users exist in the queried data of the interactive card according to the user identifications of the users; if yes, private data corresponding to the private data input area of the interactive card of the user can be determined; if not, the private data of the user on the interactive card can be determined to be empty.
In step S423, the IM server returns public data corresponding to each title of the interactive card and private data corresponding to the private title of the interactive card to the terminal.
In step S424, the terminal re-renders the interactive card at the plurality of titles of the interactive card by using the public data corresponding to each title and the private data corresponding to the private title of the interactive card.
After the terminal of the user acquires the data returned by the IM server, the interactive card can be re-rendered, so that the data updating of the interactive card is realized. In some embodiments, the user's terminal may preferentially use the private data of the user to update and render the private title of the interactive card; and when the private title of the interactive card does not have private data, carrying out data updating rendering by using public data corresponding to the private title, thereby realizing data updating of the interactive card.
According to the method and the device, the data of the interactive card are set to be public data and private data of the user, and the private data of the user can be input into the private title of the interactive card, so that when the private data of the user is updated due to the influence of interactive operation of the user, or a developer server automatically updates the private data of the user, a terminal of the user can pull the public data of the interactive card and the private data of the user from an IM server according to card identification of the interactive card and identification of the user; furthermore, the user's terminal can use the private data of the user preferentially to update and render the private title of the interactive card, and when the private title of the interactive card does not have the pulled private data, the pulled public data is used to update and render the private title of the interactive card, so as to realize the data update of the interactive card. According to the method and the device for updating the interactive card, the private data of different users in the interactive card are distinguished, so that when the private data of the different users are changed, the different users can check the different private data through updating of the interactive card, the effect that the interactive card is updated differently for the data of the different users is achieved, and the updating accuracy of the interactive card is improved.
In some embodiments, the user's terminal may enable data updating of the interactive card by sequentially rendering the respective data entry areas of the interactive card to populate data at the respective data entry areas of the interactive card. As an optional implementation, fig. 5 illustrates an optional method flowchart for re-rendering an interactive card provided in an embodiment of the present application, where the method flowchart may be implemented by a terminal of a user, and referring to fig. 5, the method flowchart may include the following steps.
In step S510, a current data entry area that is currently being rendered is determined.
In step S511, it is determined whether the current data entry area is a private data entry area, if not, step S512 is executed, and if yes, step S513 is executed.
In step S512, public data corresponding to the current data entry area is determined from the target content data, and rendering is performed using the public data corresponding to the current data entry area.
The current data input area which is rendered at present is not a private data input area, the fact that the current data input area uses public data to render can be determined, and therefore a user terminal can determine public data corresponding to the current data input area from target content data returned by an IM server, and the public data corresponding to the current data input area is used for rendering.
In step S513, it is determined whether or not private data corresponding to the current data entry area exists from the target content data, if yes, step S514 is executed, and if no, step S515 is executed.
The current data input area is a private data input area, and the terminal of the user can judge whether private data which can be used for rendering the current data input area exists in target content data returned by the IM server; if yes, the terminal of the user can render by using private data corresponding to the current data input area; if not, the terminal of the user can further determine the public data corresponding to the current data input area from the target content data returned by the IM server, so that the public data corresponding to the current data input area is used for rendering.
In step S514, rendering is performed using private data corresponding to the current data entry area.
In step S515, public data corresponding to the current data entry area is determined from the target content data, and rendering is performed using the public data corresponding to the current data entry area.
As an alternative implementation, when the terminal re-renders the interactive card, the card template of the interactive card can be utilized to re-render and update the data on the basis of the card template. The card template may set variable placeholders for occupying variables, which may be positions in the card template for occupying variables, and which may be associated with data entry areas for entering data; therefore, the variable placeholders of the card template can be traversed, the data input area associated with the variable corresponding to the variable placeholders is further determined, the content data corresponding to the data input area is used for rendering on each variable placeholder of the card template, and therefore re-rendering of the interactive card is achieved on the basis of the card template. Optionally, fig. 6 illustrates another optional method flowchart for re-rendering the interactive card provided in the embodiment of the present application, where the method flowchart may be implemented by the terminal and referring to fig. 6, the method flowchart may include the following steps.
In step S610, a card template of the interactive card is determined and traversed to find variable placeholders in the card template.
In step S611, for the found current variable placeholder, the current variable corresponding to the current variable placeholder and the current data entry area associated with the current variable are determined.
The variable placeholders are positions used for occupying variables in the card template, and the variables can be regarded as variable data with data content change and update in the card template. Based on the fact that a data entry area (e.g., title) is provided in the interactive card for entering data, variables in the card template can be associated with the data entry area for entering data.
In the process of traversing the card template to find the variable placeholders in the card template, the embodiment of the application can refer to the currently found variable placeholders as current variable placeholders, the variables corresponding to the current variable placeholders can be referred to as current variables, and the data entry area associated with the current variables can be referred to as current data entry area.
In step S612, it is determined whether the current data entry area associated with the current variable is a private data entry area, if not, step S613 is performed, and if yes, step S614 is performed.
In step S613, at the position of the current variable of the card template, rendering is performed using the public data corresponding to the current data entry area associated with the current variable.
In step S614, it is determined whether or not private data corresponding to the current data entry area exists in the target content data, if yes, step S615 is executed, and if no, step S616 is executed.
In step S615, at the position of the current variable of the card template, rendering is performed using private data corresponding to the current data entry area associated with the current variable.
In step S616, at the position of the current variable of the card template, rendering is performed using the public data corresponding to the current data entry area associated with the current variable.
Taking an order application service as an implementation example, on the basis of the example of fig. 1, fig. 7 is an implementation example diagram illustrating an update method of an interactive card provided by an embodiment of the present application, and in conjunction with the process shown in fig. 7, the implementation example may be as follows:
the user B is used as a user receiving the interactive card, and can click the interactive card, so that an application service page of ordering in a floating layer form can be displayed on the current IM interface of the user B, and the user B can perform interactive operation on the main dish and the private title of the meal delivery site on the application service page, so that the private data of the main dish of the user B is input in the private title of the main dish, and the private data of the meal delivery site of the user B is input in the private title of the meal delivery site; after the user B completes the interactive operation on the main dish and the private title of the meal delivery place, the user B can click a confirmation button; so that the terminal of the user B can send an update request to the IM server; the IM server can call back the developer server and send an update request to the developer server so that the developer server can update the data of the interactive card;
When the developer server updates the content data of the interactive card, according to the data structure illustrated in fig. 3A, the private title of the main dish corresponding to the user B may be updated according to the user identifier of the user B, and the private title of the meal delivery location private data of the meal delivery location corresponding to the user B may be updated; further, if the interactive card is provided with the title of the ordered number, the developer server can update the data of the title of the ordered number based on the interactive operation of completing the ordering of the user B; the title of the number of ordered persons can be set as a non-private title;
after the developer server completes the updating of the content data of the interactive card, the content data updated by the interactive card can be sent to the IM server; thus, the IM server can store the updated content data of the interactive card in the database according to the data structure illustrated in FIG. 3A, and the IM server can update the version number of the interactive card and notify the updated version number of the interactive card to the terminal of the user B; as an optional implementation, the terminal of the user B may monitor the updated version number sent by the IM server by notifying a monitoring event in real time established with the IM server;
When the terminal of the user B acquires the updated version number of the interactive card, the terminal of the user B can determine that the interactive card of the user B needs to be subjected to data updating, so that the terminal of the user B can request the IM server for target content data corresponding to the user B after the interactive card is updated, and the request carries the card identifier of the interactive card and the user identifier of the user B;
after obtaining a request sent by a terminal of a user B, the IM server can inquire public data of each title of the interactive card from a database according to the card identification of the interactive card; inquiring private data corresponding to private titles of the user B in the entrees and meal delivery places from a database according to the user identification of the user B; in this example, the target content data may be, for example, public data of individual titles, and private data corresponding to private titles of user B at the entrees and delivery sites;
the IM server can return the public data of each title of the inquired interactive card and the private data corresponding to the private title of the user B in the entree and the meal delivery place to the terminal of the user B;
after the terminal of the user B acquires the target content data fed back by the IM server, the terminal can render the interactive card again; in the process of re-rendering the interactive card, the terminal of the user B can update the private data of the main dish of the user B at the private title of the main dish, and update the private data of the meal delivery site of the user B at the private title of the meal delivery site; other non-private titles are updated by using corresponding public data fed back by the IM server; optionally, the terminal of the user B may use a card template of the interactive card to re-render the interactive card, and the corresponding implementation process may be shown with reference to an example flow of fig. 6.
According to the updating method of the interactive card, under the condition that public data of the interactive card and private data of different users are distinguished, differentiated updating of the interactive card can be achieved for the different users, private data which are seen by the different users from the interactive card can be different, and further accurate updating of the interactive card for the users is achieved.
The following describes an updating device for an interactive card provided in the embodiment of the present application, where the content of the device described below may be considered as a functional module required to be set by a terminal to implement the updating method for an interactive card provided in the embodiment of the present application. The apparatus contents described below may be referred to in correspondence with the method contents described above.
As an optional implementation, fig. 8A illustrates an optional block diagram of an updating apparatus for an interactive card provided in an embodiment of the present application, where the apparatus may be applied to a terminal, and referring to fig. 8A, the apparatus may include:
a card presentation module 810 for presenting an interactive card at a user's IM interface, the interactive card adapted to carry content data, wherein the content data is carried in a data entry area associated with the interactive card;
a trigger update module 811, configured to trigger update of content data of the interactive card according to a setting event or a user interaction operation;
A target content data obtaining module 812, configured to obtain target content data corresponding to the user after the interactive card is updated, where the target content data at least includes: updated private data of the user;
the rendering module 813 is configured to re-render the interactive card in the data entry area associated with the interactive card by using the target content data.
In some embodiments, some or all of the data entry area associated with the interactive card is a private data entry area for entry of private data of the user; a rendering module 813, configured to re-render the interactive card in the data entry area associated with the interactive card using the target content data, where the re-rendering module includes:
and preferentially utilizing the updated private data of the user, and re-rendering the interactive card in a data input area associated with the interactive card.
In some embodiments, the rendering module 813 is configured to re-render the interactive card in the data entry area associated with the interactive card by preferentially using the updated private data of the user, where the re-rendering module includes:
determining a current rendered current data entry area;
If the current data input area is a private data input area, judging whether private data corresponding to the current data input area exists in the target content data or not;
if yes, rendering is carried out by using private data corresponding to the current data input area;
if not, determining public data corresponding to the current data input area from the target content data, and rendering by using the public data corresponding to the current data input area.
In some embodiments, the rendering module 813 for determining a current rendered current data entry region comprises: traversing a card template of the interactive card to find variable placeholders in the card template, wherein the variable placeholders are positions used for occupying variables in the card template; and aiming at the searched current variable placeholder, determining a current variable corresponding to the current variable placeholder and a current data entry area associated with the current variable.
In some embodiments, the rendering module 813 is configured to render using private data corresponding to the current data entry region, including: and rendering by using private data corresponding to the current data input area at the position of the current variable of the card template.
In some embodiments, the rendering module 813 is configured to render using the public data corresponding to the current data entry region, where the rendering module includes: and rendering by using public data corresponding to the current data input area at the position of the current variable of the card template.
In some embodiments, the triggering update module 811 is configured to trigger, according to a setting event or a user interaction, updating content data of the interactive card, including:
responding to the interactive operation of the user on the interactive card, and sending an update request of the interactive card to request to update the content data of the interactive card;
or based on the setting event for updating the interactive card, acquiring the update notification of the interactive card after the content data of the interactive card is updated.
In further embodiments, the apparatus may be further operable to:
determining a user identification of the user and a card identification of the interactive card based on the update notification of the interactive card;
and requesting the updated target content data corresponding to the user of the interactive card according to the user identification and the card identification.
In further embodiments, the apparatus may be further operable to:
when an interactive card is displayed on an IM interface of a user, a real-time notification monitoring event is established according to a user identification of the user and a card identification of the interactive card;
and monitoring the update notification of the interactive card about the user in real time through the real-time notification monitoring event.
The embodiment of the application also provides a terminal, and the terminal can realize the updating method of the interactive card executed by the terminal by setting the updating device of the interactive card applied to the terminal.
In the following, from the perspective of the IM server, the update apparatus for an interactive card provided in the embodiment of the present application is described, where the content of the apparatus described below may be considered as a functional module required for the IM server to implement the update method for an interactive card provided in the embodiment of the present application. The apparatus contents described below may be referred to in correspondence with the method contents described above.
As an optional implementation, fig. 8B illustrates another optional block diagram of an updating apparatus for an interactive card provided in an embodiment of the present application, where the apparatus may be applied to an IM server, and referring to fig. 8B, the apparatus may include:
An update data acquisition module 820, configured to acquire updated content data of an interactive card, where the updated content data of the interactive card is triggered to be updated based on a setting event or a user interaction operation, and the content data is carried in a data entry area associated with the interactive card;
a notification module 821 for sending an update notification of the interactive card to the user;
a target content data determining module 822, configured to determine target content data corresponding to the user after the interactive card is updated, based on the request of the user; the target content data includes at least: updated private data of the user;
and the data return module 823 is used for sending the target content data to the user so that the user can re-render the interactive card in the data input area associated with the interactive card by utilizing the target content data.
In some embodiments, some or all of the data entry area associated with the interactive card is a private data entry area for entry of private data of the user; the target content data determining module 822, configured to determine that the updated target content data corresponding to the user of the interactive card includes:
And inquiring public data corresponding to each data input area associated with the interactive card and private data corresponding to the private data input area of the user from the updated content data of the interactive card.
In further embodiments, the apparatus may be further operable to:
storing updated content data of the interactive card in a database according to the card identification of the interactive card and the user identification of each user; the content data of one interactive card stored in the database comprises public data corresponding to each data input area, and private data input areas and private data corresponding to each user identifier.
In some embodiments, the target content data determining module 822 is configured to query public data corresponding to each data entry area associated with the interactive card from the content data updated by the interactive card, and private data corresponding to the private data entry area by the user includes:
according to a request sent by a user, determining a card identifier of the interactive card carried in the request and a user identifier of the user;
inquiring content data of the interactive card from a database according to the card identification of the interactive card;
Determining public data corresponding to each data input area from the queried content data of the interactive card;
judging whether the private data of the user exists in the queried content data of the interactive card according to the user identification of the user;
if yes, determining private data corresponding to the private data input area of the interactive card of the user;
if not, determining that the private data of the user on the interactive card is empty.
The embodiment of the application also provides an IM server, which can realize the updating method of the interactive card executed by the IM server by setting the updating device of the interactive card applied to the IM server.
The following describes the updating device of the interactive card provided in the embodiment of the present application from the perspective of a developer server, where the content of the device described below may be considered as a functional module required by the developer to implement the updating method of the interactive card provided in the embodiment of the present application. The apparatus contents described below may be referred to in correspondence with the method contents described above.
As an optional implementation, fig. 8C illustrates yet another optional block diagram of an updating apparatus for an interactive card provided in an embodiment of the present application, where the apparatus may be applied to an IM server, and referring to fig. 8C, the apparatus may include:
A card generation module 830, configured to generate an interactive card of an application service, where the interactive card is adapted to carry content data, and the content data is carried in a data entry area associated with the interactive card;
a data updating module 831, configured to update content data of the interactive card; the content data of the interactive card is triggered to be updated based on a setting event or user interaction operation, and the updated content data of the interactive card at least comprises private data of a user;
the update data sending module 832 is configured to send the updated content data of the interactive card, so that the user re-renders the interactive card in the data entry area associated with the interactive card by using the updated target content data of the interactive card, which corresponds to the user.
The embodiment of the application also provides a developer server, and the developer server can realize the updating method of the interactive card executed by the developer server by setting the updating device of the interactive card applied to the developer server.
As an optional implementation, fig. 9 exemplarily shows an optional block diagram of a terminal provided in an embodiment of the present application, and referring to fig. 9, the terminal may include: at least one processor 91, at least one communication interface 92, at least one memory 93 and at least one communication bus 94.
In the embodiment of the present application, the number of the processor 91, the communication interface 92, the memory 93, and the communication bus 94 is at least one, and the processor 91, the communication interface 92, and the memory 93 complete communication with each other through the communication bus 94.
Alternatively, the communication interface 92 may be an interface of a communication module for performing network communication.
Alternatively, the processor 91 may be a CPU, GPU (Graphics Processing Unit, graphics processor), NPU (embedded neural network processor), FPGA (Field Programmable Gate Array ), TPU (tensor processing unit), AI chip, specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present application, or the like.
The memory 93 may comprise a high-speed RAM memory or may further comprise a non-volatile memory (non-volatile memory), such as at least one disk memory.
The memory 93 stores one or more computer executable instructions that the processor 91 invokes to perform the method for updating an interactive card executed by the terminal according to the embodiment of the present application.
Further, the server provided in the embodiments of the present application may include an IM server or a developer server, where the structure of the server may also be shown in fig. 9, and the server includes at least one memory and at least one processor, where the memory stores one or more computer executable instructions, and the processor invokes the one or more computer executable instructions to execute the method for updating the interactive card executed by the IM server in the embodiments of the present application, or the method for updating the interactive card executed by the developer server.
The embodiment of the application also provides a storage medium, which can store one or more computer executable instructions, and when the one or more computer executable instructions are executed, the method for updating the interactive card executed by the terminal as in the embodiment of the application, or the method for updating the interactive card executed by the IM server as in the embodiment of the application, or the method for updating the interactive card executed by the developer server as in the embodiment of the application is realized.
The embodiment of the application also provides a computer program, which when being executed, realizes the updating method of the interactive card executed by the terminal as the embodiment of the application, or the updating method of the interactive card executed by the IM server as the embodiment of the application, or the updating method of the interactive card executed by the developer server as the embodiment of the application.
The foregoing describes a number of embodiments provided by embodiments of the present application, and the various alternatives presented by the various embodiments may be combined, cross-referenced, with each other without conflict, extending beyond what is possible, all of which may be considered embodiments disclosed and disclosed by embodiments of the present application.
Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention shall be defined by the appended claims.

Claims (14)

1. An interactive card updating method, comprising:
displaying an interactive card on an IM interface of a user, wherein the interactive card is suitable for bearing content data, and the content data is borne in a data input area associated with the interactive card;
triggering the updating of the content data of the interactive card according to a set event or user interaction operation, and acquiring target content data corresponding to the user after the updating of the interactive card, wherein the target content data at least comprises: the updated private data of the user is private data of the user in the interactive card;
And re-rendering the interactive card in a data input area associated with the interactive card by utilizing the target content data.
2. A method according to claim 1, wherein part or all of the data entry area associated with the interactive card is a private data entry area for entry of private data of the user; the re-rendering the interactive card using the target content data at a data entry area associated with the interactive card comprises:
and preferentially utilizing the updated private data of the user, and re-rendering the interactive card in a data input area associated with the interactive card.
3. The method of claim 2, wherein the re-rendering the interaction card in the interaction card-associated data entry area with the updated private data of the user preferentially comprises:
determining a current rendered current data entry area;
if the current data input area is a private data input area, judging whether private data corresponding to the current data input area exists in the target content data or not;
if yes, rendering is carried out by using private data corresponding to the current data input area;
If not, determining public data corresponding to the current data input area from the target content data, and rendering by using the public data corresponding to the current data input area.
4. The method of claim 3, wherein the determining a current rendered current data entry region comprises:
traversing a card template of the interactive card to find variable placeholders in the card template, wherein the variable placeholders are positions used for occupying variables in the card template;
aiming at the searched current variable placeholder, determining a current variable corresponding to the current variable placeholder and a current data entry area associated with the current variable;
the rendering using private data corresponding to the current data entry region includes: rendering is carried out at the position of the current variable of the card template by using private data corresponding to the current data input area;
the rendering using the public data corresponding to the current data entry region includes: and rendering by using public data corresponding to the current data input area at the position of the current variable of the card template.
5. The method of claim 1, wherein the triggering of the update of the content data of the interactive card according to a set event or a user interaction comprises:
responding to the interactive operation of the user on the interactive card, and sending an update request of the interactive card to request to update the content data of the interactive card;
or based on the setting event for updating the interactive card, acquiring the update notification of the interactive card after the content data of the interactive card is updated.
6. The method of claim 1, wherein the method further comprises:
determining a user identification of the user and a card identification of the interactive card based on the update notification of the interactive card;
and requesting the updated target content data corresponding to the user of the interactive card according to the user identification and the card identification.
7. The method of claim 6, wherein the method further comprises:
when an interactive card is displayed on an IM interface of a user, a real-time notification monitoring event is established according to a user identification of the user and a card identification of the interactive card;
and monitoring the update notification of the interactive card about the user in real time through the real-time notification monitoring event.
8. An interactive card updating method, comprising:
acquiring updated content data of an interactive card, wherein the updated content data of the interactive card is triggered to be updated based on a set event or user interaction operation, and the content data is loaded in a data input area associated with the interactive card;
sending an update notification of an interactive card to a user, and determining target content data corresponding to the user after updating the interactive card based on a request of the user; the target content data includes at least: the updated private data of the user is private data of the user in the interactive card;
and sending the target content data to the user so that the user can re-render the interactive card in a data input area associated with the interactive card by utilizing the target content data.
9. A method according to claim 8, wherein part or all of the data entry area associated with the interactive card is a private data entry area for entry of private data of the user; the determining the updated target content data corresponding to the user of the interactive card comprises the following steps:
And inquiring public data corresponding to each data input area associated with the interactive card and private data corresponding to the private data input area of the user from the updated content data of the interactive card.
10. The method of claim 9, further comprising:
storing updated content data of the interactive card in a database according to the card identification of the interactive card and the user identification of each user; the content data of one interactive card stored in the database comprises public data corresponding to each data input area, and private data input areas and private data corresponding to each user identifier;
and querying public data corresponding to each data input area associated with the interactive card in the updated content data of the interactive card, wherein private data corresponding to the private data input area of the user comprises the following steps:
according to a request sent by a user, determining a card identifier of the interactive card carried in the request and a user identifier of the user;
inquiring content data of the interactive card from a database according to the card identification of the interactive card;
Determining public data corresponding to each data input area from the queried content data of the interactive card;
judging whether the private data of the user exists in the queried content data of the interactive card according to the user identification of the user;
if yes, determining private data corresponding to the private data input area of the interactive card of the user;
if not, determining that the private data of the user on the interactive card is empty.
11. An interactive card updating method, comprising:
generating an interactive card of an application service, the interactive card being adapted to carry content data, wherein the content data is carried in a data entry area associated with the interactive card;
updating the content data of the interactive card; the content data of the interactive card is triggered to be updated based on a setting event or user interaction operation, and the updated content data of the interactive card at least comprises private data of a user, wherein the private data is personal private data of the user in the interactive card;
and sending the updated content data of the interactive card so that the user re-renders the interactive card in a data input area associated with the interactive card by utilizing the updated target content data corresponding to the user of the interactive card.
12. A terminal comprising at least one memory storing one or more computer-executable instructions and at least one processor invoking the one or more computer-executable instructions to implement the method of updating an interactive card of any of claims 1-7.
13. A server comprising at least one memory storing one or more computer-executable instructions and at least one processor invoking the one or more computer-executable instructions to implement the method of updating an interactive card as claimed in any of claims 8-10 or the method of updating an interactive card as claimed in claim 11.
14. A storage medium storing one or more computer-executable instructions which, when executed, implement the method of updating an interactive card of any one of claims 1-7, or the method of updating an interactive card of any one of claims 8-10, or the method of updating an interactive card of claim 11.
CN202210510907.7A 2022-05-11 2022-05-11 Updating method of interactive card, server, terminal and storage medium Active CN115134324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210510907.7A CN115134324B (en) 2022-05-11 2022-05-11 Updating method of interactive card, server, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210510907.7A CN115134324B (en) 2022-05-11 2022-05-11 Updating method of interactive card, server, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN115134324A CN115134324A (en) 2022-09-30
CN115134324B true CN115134324B (en) 2023-04-25

Family

ID=83377032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210510907.7A Active CN115134324B (en) 2022-05-11 2022-05-11 Updating method of interactive card, server, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115134324B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035030A (en) * 2020-08-28 2020-12-04 北京字节跳动网络技术有限公司 Information display method and device and electronic equipment
CN112650604A (en) * 2020-12-29 2021-04-13 中国平安人寿保险股份有限公司 Card data processing method and related device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107741809B (en) * 2016-12-21 2020-05-12 腾讯科技(深圳)有限公司 Interaction method, terminal, server and system between virtual images
CN107995285B (en) * 2017-11-29 2019-12-10 Oppo广东移动通信有限公司 Information display method, device, server and readable storage medium
US11682390B2 (en) * 2019-02-06 2023-06-20 Microstrategy Incorporated Interactive interface for analytics
CN112559222A (en) * 2020-12-23 2021-03-26 百果园技术(新加坡)有限公司 Message display method and device, computer equipment and storage medium
CN113810263A (en) * 2020-12-30 2021-12-17 京东科技控股股份有限公司 Display method of session list, instant message server and electronic equipment
CN113076163A (en) * 2021-04-16 2021-07-06 北京京东拓先科技有限公司 Card rendering method and device
CN113703898A (en) * 2021-08-31 2021-11-26 康键信息技术(深圳)有限公司 Card type interaction method, device, equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035030A (en) * 2020-08-28 2020-12-04 北京字节跳动网络技术有限公司 Information display method and device and electronic equipment
CN112650604A (en) * 2020-12-29 2021-04-13 中国平安人寿保险股份有限公司 Card data processing method and related device

Also Published As

Publication number Publication date
CN115134324A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
US11611565B2 (en) Systems and methods for providing an interactive media presentation
US8745502B2 (en) System and method for interfacing interactive systems with social networks and media playback devices
CN103282937B (en) Content shared interface for sharing content in social networks
US11102206B2 (en) Methods and apparatus for establishing shared memory spaces for data access and distribution
US20170248486A1 (en) System and method for adaptive electronic distribution of information
CN109474844B (en) Video information processing method and device and computer equipment
US20120324002A1 (en) Media Sharing
KR20190042002A (en) A recording medium on which a program is recorded, an information processing method and an information processing terminal
CN111654429A (en) To-do-list creating method, display method, terminal device and storage medium
CN103930920A (en) Sharing content to discovered content streams in social networking services
US20150012394A1 (en) Virtual Shopping System
WO2015128758A1 (en) Request based real-time or near real-time broadcasting & sharing of captured & selected media
CN106648688B (en) Information display method and device
CN113225572A (en) Method, device and system for displaying page elements in live broadcast room
JP2010277175A (en) Network system, communication terminal, communication method, and communication program
KR101565734B1 (en) system and method for providing a content service of family culture
CN114528473A (en) Websocket-based information integration release method and system
KR101693738B1 (en) System and Method for Civil Complaint Sharing Service based on Location using Mobile
TWI280514B (en) System and method for providing 3D image production service
CN115134324B (en) Updating method of interactive card, server, terminal and storage medium
US9354796B2 (en) Referral slider
KR20190075596A (en) Method for creating augmented reality contents, method for using the contents and apparatus using the same
JP2013242813A (en) Information providing system, information providing method, and service providing server
KR101906545B1 (en) Private based social web book publishing system and method thereof
CN114047979A (en) Display item configuration and display method, device, equipment and storage medium

Legal Events

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