CN-122001598-A - Information display method, information display device, electronic equipment, storage medium and program product
Abstract
The application discloses an information display method, an information display device, electronic equipment, a storage medium and a program product, wherein a token corresponding to a designated object is extracted from a local place in response to information display requirements of the designated object in instant messaging application, the token is pre-distributed by a server, an information acquisition request carrying the token is generated and sent to the server, target object information corresponding to the information display requirements and returned by the server when authentication of the token is successful is received, or desensitized object information after desensitization processing of sensitive content in the target object information and returned by the server when the authentication of the token fails are received, and the target object information or the desensitized object information returned by the server is displayed through the instant messaging application. The application can reduce the information leakage risk of the object information in the instant messaging application.
Inventors
- WANG BIN
- CHEN XIAOBO
- LI BIN
- LUO CHENG
Assignees
- 腾讯科技(深圳)有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241101
Claims (15)
- 1. An information display method, which is suitable for a terminal device, is characterized by comprising the following steps: Responding to information display requirements for a specified object in an instant messaging application, locally extracting a token corresponding to the specified object, wherein the token is pre-distributed by a server; Generating an information acquisition request carrying the token, and sending the information acquisition request to the server; Receiving target object information corresponding to the information display requirement returned by the server when the authentication of the token is successful, or receiving desensitized object information after desensitizing sensitive content in the target object information returned by the server when the authentication of the token is failed; And displaying the target object information or the desensitized object information returned by the server through the instant messaging application.
- 2. The information presentation method according to claim 1, wherein before the token corresponding to the specified object is extracted locally in response to the information presentation requirement for the specified object in the instant messaging application, further comprising: responding to the service processing requirement aiming at the appointed object, and sending a service request to the server; Receiving service data returned by the server in response to the service request and a token corresponding to the specified object; And carrying out service processing based on the service data through the instant messaging application, and storing the token locally.
- 3. The information presentation method according to claim 1, wherein before the token corresponding to the specified object is extracted locally in response to the information presentation requirement for the specified object in the instant messaging application, further comprising: responding to the message creation requirement aiming at the appointed object, and sending a message creation request to the server, wherein the message creation request is used for indicating the server to create a target message corresponding to the message creation requirement; receiving a target message returned by the server and a token corresponding to the specified object; And displaying the target message through the instant messaging application and storing the token locally.
- 4. The information presentation method as claimed in claim 3, further comprising: Writing the token into the target message as extension content to obtain an extension target message; and in response to a message sending instruction for the expansion target message, sending the expansion target message to other terminal equipment through the server, wherein the token in the expansion target message is used for the other terminal equipment to display object information of the specified object.
- 5. The information presentation method of claim 3, wherein the storing the token locally comprises: caching the token into a memory, and storing the token into a database in a lasting manner.
- 6. The information presentation method according to claim 5, wherein the locally extracting the token corresponding to the specified object includes: extracting the token from the memory; And if the token extraction from the memory fails, extracting the token from the database.
- 7. An information display method, which is suitable for a server, is characterized by comprising the following steps: Receiving an information acquisition request from a terminal device, wherein the information acquisition request is generated by the terminal device in response to an information display requirement for a specified object in an instant messaging application and carries a token which is pre-allocated by the server and corresponds to the specified object; Authenticating the token; if the authentication of the token is successful, returning target object information corresponding to the information display requirement to the terminal equipment for displaying the instant messaging application; or if the authentication of the token fails, returning the desensitized object information after desensitizing the sensitive content in the target object information to the terminal equipment for the instant messaging application display.
- 8. The information presentation method of claim 7, wherein authenticating the token comprises: if the token is acquired from other terminal equipment by the terminal equipment, acquiring an object relation between a current object corresponding to the terminal equipment and the appointed object; and authenticating the token according to the object relation.
- 9. The information presentation method of claim 7, further comprising: If the object name in the target object information is the real name of the appointed object, desensitizing the object name as sensitive content; and/or if the object head portrait in the target object information is the real image of the appointed object, desensitizing the object head portrait as sensitive content.
- 10. The information presentation method according to claim 7, wherein the returning the desensitized object information after desensitizing the sensitive content in the target object information to the terminal device for the instant messaging application presentation if the authentication of the token fails, includes: If the authentication of the token fails and the accumulated token authentication failure times of the terminal equipment do not reach the time threshold, returning desensitized object information after desensitizing the sensitive content in the target object information to the terminal equipment for displaying the instant messaging application.
- 11. An information display device, which is suitable for a terminal device, and is characterized by comprising: The token extraction module is used for responding to the information display requirement of a specified object in the instant messaging application, locally extracting a token corresponding to the specified object, and pre-distributing the token by a server; the request generation module is used for generating an information acquisition request carrying the token and sending the information acquisition request to the server; The information receiving module is used for receiving target object information corresponding to the information display requirement returned by the server when the authentication of the token is successful, or receiving desensitized object information after desensitizing sensitive content in the target object information returned by the server when the authentication of the token is failed; And the information display module is used for displaying the target object information or the desensitized object information returned by the server through the instant messaging application.
- 12. An information display device, suitable for a server, comprising: the request receiving module is used for receiving an information acquisition request from terminal equipment, wherein the information acquisition request is generated by the terminal equipment in response to an information display requirement for a specified object in an instant messaging application and carries a token which is pre-allocated by the server and corresponds to the specified object; the token authentication module is used for authenticating the token; And the information return module is used for returning target object information corresponding to the information display requirement to the terminal equipment for the instant messaging application display if the authentication of the token is successful, or returning desensitized object information subjected to desensitization processing on the sensitive content in the target object information to the terminal equipment for the instant messaging application display if the authentication of the token is failed.
- 13. An electronic device comprising a memory storing a computer program and a processor executing the computer program in the memory to perform the steps of the information presentation method according to any one of claims 1 to 6 when the electronic device is configured as a terminal device, or executing the computer program in the memory to perform the steps of the information presentation method according to any one of claims 7 to 10 when the electronic device is configured as a server.
- 14. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be executed by a processor for implementing the steps in the information presentation method of any one of claims 1 to 10.
- 15. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the information presentation method of any of claims 1 to 10.
Description
Information display method, information display device, electronic equipment, storage medium and program product Technical Field The present application relates to the field of network technologies, and in particular, to an information display method, an information display device, an electronic device, a computer readable storage medium, and a computer program product. Background In the digital age, the variety of instant messaging applications is various, and the communication functions of the terminal equipment are greatly enriched. The application not only changes the communication mode of people, but also improves the efficiency of information communication. The user can easily check the personal information of other users through the instant messaging application, and the instant messaging application can provide a convenient information acquisition mode no matter friends, colleagues or strangers. However, the transparency of such information presents challenges, and instant messaging applications can be frustrating to expose some underlying information, regardless of the relationship between the viewer and the viewer. Such information, while seemingly harmless, may pose a risk of privacy disclosure if not properly managed and restricted. Disclosure of Invention The embodiment of the application provides an information display method, an information display device, electronic equipment, a computer readable storage medium and a computer program product, which can reduce the information leakage risk of object information in instant messaging application. In a first aspect, the information display method suitable for a terminal device provided by the present application includes: responding to information display requirements for a specified object in the instant messaging application, locally extracting a token corresponding to the specified object, and pre-distributing the token by a server; generating an information acquisition request carrying a token, and sending the information acquisition request to a server; receiving target object information corresponding to information display requirements returned by a server when the authentication token is successful, or receiving desensitized object information after desensitizing sensitive contents in the target object information returned by the server when the authentication token fails; and displaying the target object information or the desensitized object information returned by the server through the instant messaging application. In a second aspect, the information display method suitable for a server provided by the present application may include: Receiving an information acquisition request from a terminal device, wherein the information acquisition request is generated by the terminal device in response to an information display requirement for a specified object in an instant messaging application and carries a token which is pre-allocated by a server and corresponds to the specified object; authenticating the token; If the authentication token is successful, returning target object information corresponding to the information display requirement to the terminal equipment for instant messaging application display; Or if the authentication token fails, returning the desensitized object information after desensitizing the sensitive content in the target object information to the terminal equipment for instant messaging application display. In a third aspect, an information display apparatus suitable for a terminal device provided by the present application may include: The token extraction module is used for responding to the information display requirement of the appointed object in the instant messaging application, locally extracting a token corresponding to the appointed object, and pre-distributing the token by the server; The request generation module is used for generating an information acquisition request carrying a token and sending the information acquisition request to the server; The information receiving module is used for receiving target object information corresponding to the information display requirement returned by the server when the authentication token is successful, or receiving desensitized object information after desensitizing sensitive content in the target object information returned by the server when the authentication token is failed; And the information display module is used for displaying the target object information or the desensitized object information returned by the server through the instant messaging application. Optionally, in an embodiment, the information display device further includes a service processing module, configured to send a service request to a server in response to a service processing requirement for a specified object, receive service data returned by the server in response to the service request and a token corresponding to the specified object, and perform service processing based o