CN114448928B - Command display method, device, computer equipment and medium - Google Patents

Command display method, device, computer equipment and medium Download PDF

Info

Publication number
CN114448928B
CN114448928B CN202210094373.4A CN202210094373A CN114448928B CN 114448928 B CN114448928 B CN 114448928B CN 202210094373 A CN202210094373 A CN 202210094373A CN 114448928 B CN114448928 B CN 114448928B
Authority
CN
China
Prior art keywords
target
character
information
character string
command
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
CN202210094373.4A
Other languages
Chinese (zh)
Other versions
CN114448928A (en
Inventor
李卓行
庞超
任亚鹏
李培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210094373.4A priority Critical patent/CN114448928B/en
Publication of CN114448928A publication Critical patent/CN114448928A/en
Application granted granted Critical
Publication of CN114448928B publication Critical patent/CN114448928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • 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/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a command display method, a device, a computer device and a medium, which belong to the technical field of Internet, wherein the method comprises the following steps: and receiving a target information command sent by the first object, displaying first prompt information in the target information command in a display interface of the second object, and triggering and executing a target sharing event based on the first prompt information. In the embodiment of the disclosure, after the second object receives the target information command sent by the first object, only the prompt information in the target information command is displayed, so that the display of meaningless plaintext characters is avoided, the interference of redundant characters on the sight is avoided, the reading difficulty of a user is further reduced, and the human-computer interaction efficiency is improved.

Description

Command display method, device, computer equipment and medium
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a command display method, a device, computer equipment and a medium.
Background
With the rapid development of mobile internet, command sharing (such as password sharing) in social application programs has gradually become a main form of information sharing. However, the information command currently involved generally includes text prompt information and a segment of character string, so that many meaningless plaintext characters exist in the displayed information command, such as english characters, numerical codes, expressions, separators and the like, and thus, the reading difficulty of a user is increased and the man-machine interaction efficiency is reduced.
Disclosure of Invention
The disclosure provides a command display method, a device, computer equipment and a medium, which reduce the reading difficulty of a user and improve the man-machine interaction efficiency. The technical scheme of the present disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a command display method, including:
receiving a target information command sent by a first object, wherein the target information command comprises a target character string and first prompt information, the target character string is used for indicating event information of a target sharing event, and the first prompt information is used for prompting to trigger execution of the target sharing event based on the target information command;
displaying first prompt information in the target information command in a display interface of the second object;
and triggering and executing the target sharing event based on the first prompt information.
In the embodiment of the disclosure, after the second object receives the target information command sent by the first object, only the prompt information in the target information command is displayed, so that the display of meaningless plaintext characters is avoided, the interference of redundant characters on the sight is avoided, the reading difficulty of a user is further reduced, and the human-computer interaction efficiency is improved.
In some embodiments, triggering execution of the target sharing event based on the first hint information includes:
responding to the copying operation of the displayed first prompt information, and acquiring the first prompt information and the target character string;
and responding to the starting operation of the application program corresponding to the target information command, and displaying an information interface corresponding to the target information command, wherein the information interface is used for displaying content information associated with the target sharing event.
In the embodiment of the disclosure, by copying the first prompt information, the first prompt information can be obtained, the target character string can be obtained, the human-computer interaction efficiency is improved, and meanwhile, the subsequent triggering of the execution of the target sharing event based on the copied target character string can be ensured, and further, by starting the application program corresponding to the target information command, the information interface corresponding to the target information command can be triggered and displayed so as to display the content information associated with the target sharing event, so that the process of triggering the execution of the target sharing event based on the target information command is realized, and the smooth progress of the target sharing event is ensured.
In some embodiments, in response to a launch operation of an application corresponding to the target information command, displaying an information interface corresponding to the target information command includes:
And responding to the starting operation of the application program corresponding to the target information command, and jumping from the initial interface of the application program to the information interface corresponding to the target information command.
In the embodiment of the disclosure, after the copy operation is performed on the first prompt information, if the application program corresponding to the target information command is started, the jump from the initial interface of the application program to the information interface corresponding to the target information command can be triggered to display the content information associated with the target sharing event, so that the process of triggering and executing the target sharing event based on the target information command is realized.
In some embodiments, before jumping from the initial interface of the application to the information interface corresponding to the target information command, the method further includes:
and responding to the starting operation of the application program corresponding to the target information command, and displaying second prompt information of the target sharing event in an initial interface of the application program, wherein the second prompt information is used for prompting that the user is about to jump to an information interface corresponding to the target information command.
In the embodiment of the disclosure, when the application program corresponding to the target information command is started, the second prompting information of the target sharing event is displayed so as to prompt the second object to jump to the information interface corresponding to the target information command, thereby increasing the information quantity displayed in the initial interface.
In some embodiments, in response to a start operation of the application program corresponding to the target information command, after displaying the second prompt information of the target sharing event in the initial interface of the application program, the method further includes:
and executing the step of jumping from the initial interface of the application program to the information interface corresponding to the target information command in response to the display time of the second prompt message reaching the target time.
In the embodiment of the disclosure, when the display duration of the second prompt message reaches the target duration, the interface skipping process is executed, so that the flexibility of information display is improved.
In some embodiments, the first alert message is a text alert message with a fixed content.
According to the embodiment of the disclosure, the text prompt information with fixed content is set, so that the first prompt information with the same content can be displayed for different types of sharing events, and the display efficiency of the first prompt information is ensured while the display effect of the first prompt information is ensured.
In some embodiments, the display interface is any one of a session interface for displaying a session record between the first object and the second object, a dynamic interface for displaying dynamic information published by at least one object having a social relationship with the second object, and a recommendation interface for displaying at least one recommended dynamic information.
In the embodiment of the disclosure, various types of display interfaces are provided, so that the diversity of the display interfaces is improved, and further, the diversity of command display is improved.
According to a second aspect of embodiments of the present disclosure, there is provided a command display method including:
receiving a command generation request sent by a first object, wherein the command generation request is used for requesting to generate an information command corresponding to a target sharing event;
generating a target information command based on the event information of the target sharing event, wherein the target information command comprises a target character string and first prompt information, the target character string is used for indicating the event information of the target sharing event, and the first prompt information is used for prompting to trigger the execution of the target sharing event based on the target information command;
and sending the target information command to the first object, wherein when the target information password is displayed, first prompt information in the target information password is displayed.
In the embodiment of the disclosure, when the target information command is displayed, only the prompt information in the target information command is displayed, so that the display of nonsensical plaintext characters is avoided, the interference of redundant characters on the sight is avoided, the reading difficulty of a user is further reduced, and the man-machine interaction efficiency is improved.
In some embodiments, generating the target information command based on the event information of the target sharing event includes:
generating an initial information command corresponding to the target sharing event based on the event information of the target sharing event;
based on the first character string in the initial information command, determining a second character string, and performing zero-width character encoding on the second character string to obtain the target character string;
and generating the target information command based on the target character string and the first prompt information.
In the embodiment of the disclosure, the target character string formed by the zero-width characters can be obtained by performing zero-width character encoding on the second character string determined based on the first character string in the initial information command, and then the target information command is generated based on the target character string and the first prompt information.
In some embodiments, generating the initial information command corresponding to the target sharing event based on the event information of the target sharing event includes:
And encoding event information of the target sharing event based on the command encoding rule to obtain an initial information command corresponding to the target sharing event.
In the embodiment of the disclosure, the event information of the target sharing event is encoded by utilizing the preset command encoding rule, so that the initial information command of the target sharing event can be obtained quickly, and the efficiency of obtaining the initial information command is improved.
In some embodiments, determining the second string based on the first string in the initial information command includes any one of:
performing a binary conversion based on the first character string in the initial information command to obtain a binary-converted character string, and determining the binary-converted character string as the second character string;
and carrying out telegram character coding based on the first character string in the initial information command to obtain a character string after telegram character coding, and determining the character string after telegram character coding as the second character string.
In the embodiment of the disclosure, for the first character string in the initial information command, the binary conversion or telegram character encoding is performed, so that the zero width character encoding is performed based on the character string after the binary conversion or the character string after the telegram character encoding, thereby ensuring the smooth generation of the target character string.
In some embodiments, performing telegram character encoding based on the first character string in the initial information command, the obtaining the telegram character encoded character string includes:
determining telegram characters corresponding to at least one first character based on the at least one first character included in the first character string and first relation data, wherein the first relation data comprises a mapping relation between the first character and the telegram characters;
and converting the first character string into a character string after coding the telegram character based on the telegram character corresponding to the at least one first character.
In the embodiment of the disclosure, the telegram characters corresponding to each first character in the first character string are determined by using the first relation data, and then each first character in the first character string is converted into the telegram characters, and then zero-width character encoding is performed based on the character string after telegram character encoding.
In some embodiments, performing zero-width character encoding on the second character string to obtain the target character string includes any one of the following:
based on a fixed-length coding mode, carrying out zero-width character coding on the second character string to obtain the target character string;
And carrying out zero-width character encoding on the second character string based on a variable length encoding mode to obtain the target character string.
In the embodiment of the disclosure, two types of zero-width character coding modes are provided, and the flexibility of zero-width character coding is improved.
In some embodiments, performing zero-width character encoding on the second character string based on the fixed-length encoding manner, to obtain the target character string includes:
determining a zero-width character corresponding to at least one second character based on the at least one second character included in the second character string and second relation data, wherein the second relation data comprises a mapping relation between the second character and the zero-width character;
and converting the second character string into the target character string based on the zero width character corresponding to the at least one second character.
In the embodiment of the disclosure, when the zero-width character encoding is performed based on the fixed-length encoding mode, the zero-width character corresponding to the second character included in the second character string is acquired to perform the subsequent character conversion process, so that the second character string can be quickly converted into the character string in the form of the zero-width character, and the target character string composed of the zero-width characters is obtained.
In some embodiments, performing zero-width character encoding on the second string based on a variable length encoding manner, to obtain the target string includes:
Determining a zero-width character corresponding to at least one second character based on the at least one second character included in the second character string and second relation data;
determining zero-width characters corresponding to the separators based on the second relation data, wherein the second relation data comprises the second characters, the mapping relation between the separators and the zero-width characters;
and converting the second character string into the target character string based on the zero-width character corresponding to the at least one second character and the zero-width character corresponding to the separator.
In the embodiment of the disclosure, when the zero-width character encoding is performed based on the variable length encoding mode, the zero-width character corresponding to the second character and the zero-width character corresponding to the separator included in the second character string are obtained to perform the subsequent character conversion process, and the second character string can be quickly converted into the character string in the form of the zero-width character, so that the target character string composed of the zero-width characters is obtained.
According to a third aspect of embodiments of the present disclosure, there is provided a command display apparatus including:
the receiving unit is configured to execute and receive a target information command sent by a first object, wherein the target information command comprises a target character string and first prompt information, the target character string is used for indicating event information of a target sharing event, and the first prompt information is used for prompting to trigger execution of the target sharing event based on the target information command;
A display unit configured to display first prompt information in the target information command in a display interface of the second object;
and the triggering unit is configured to trigger the target sharing event to be executed based on the first prompt information.
In some embodiments, the trigger unit comprises:
an acquisition subunit configured to perform a copy operation in response to the displayed first hint information, to acquire the first hint information and the target string;
and the display subunit is configured to execute a starting operation of the application program corresponding to the target information command, and display an information interface corresponding to the target information command, wherein the information interface is used for displaying content information associated with the target sharing event.
In some embodiments, the display subunit is configured to perform:
and responding to the starting operation of the application program corresponding to the target information command, and jumping from the initial interface of the application program to the information interface corresponding to the target information command.
In some embodiments, the display subunit is further configured to perform:
and responding to the starting operation of the application program corresponding to the target information command, and displaying second prompt information of the target sharing event in an initial interface of the application program, wherein the second prompt information is used for prompting that the user is about to jump to an information interface corresponding to the target information command.
In some embodiments, the display subunit is further configured to perform:
and executing the step of jumping from the initial interface of the application program to the information interface corresponding to the target information command in response to the display time of the second prompt message reaching the target time.
In some embodiments, the first alert message is a text alert message with a fixed content.
In some embodiments, the display interface is any one of a session interface for displaying a session record between the first object and the second object, a dynamic interface for displaying dynamic information published by at least one object having a social relationship with the second object, and a recommendation interface for displaying at least one recommended dynamic information.
According to a fourth aspect of embodiments of the present disclosure, there is provided a command display apparatus, the apparatus comprising:
the receiving unit is configured to execute a command generation request sent by the first object, wherein the command generation request is used for requesting to generate an information command corresponding to the target sharing event;
the generating unit is configured to execute event information based on the target sharing event and generate a target information command, wherein the target information command comprises a target character string and first prompt information, the target character string is used for indicating the event information of the target sharing event, and the first prompt information is used for prompting to trigger execution of the target sharing event based on the target information command;
And a transmitting unit configured to perform transmission of the target information command to the first object, wherein when the target information password is displayed, first prompt information in the target information password is displayed.
In some embodiments, the generating unit comprises:
the first generation subunit is configured to execute event information based on the target sharing event and generate an initial information command corresponding to the target sharing event;
the encoding subunit is configured to execute the first character string in the initial information command, determine a second character string, and perform zero-width character encoding on the second character string to obtain the target character string;
and the second generation subunit is configured to execute the target information command based on the target character string and the first prompt information.
In some embodiments, the first generation subunit is configured to perform:
and encoding event information of the target sharing event based on the command encoding rule to obtain an initial information command corresponding to the target sharing event.
In some embodiments, the coding subunit comprises any one of:
a binary conversion subunit configured to perform binary conversion based on the first string in the initial information command to obtain a binary-converted string, and determine the binary-converted string as the second string;
And the telegram character encoding subunit is configured to execute the telegram character encoding based on the first character string in the initial information command to obtain a character string after telegram character encoding, and determine the character string after telegram character encoding as the second character string.
In some embodiments, the telegram character encoding subunit is configured to perform:
determining telegram characters corresponding to at least one first character based on the at least one first character included in the first character string and first relation data, wherein the first relation data comprises a mapping relation between the first character and the telegram characters;
and converting the first character string into a character string after coding the telegram character based on the telegram character corresponding to the at least one first character.
In some embodiments, the coding subunit comprises any one of:
the fixed-length coding subunit is configured to perform zero-width character coding on the second character string based on a fixed-length coding mode to obtain the target character string;
and a variable length coding subunit configured to perform zero-width character coding on the second character string based on the variable length coding mode to obtain the target character string.
In some embodiments, the fixed length coding subunit is configured to perform:
determining a zero-width character corresponding to at least one second character based on the at least one second character included in the second character string and second relation data, wherein the second relation data comprises a mapping relation between the second character and the zero-width character;
and converting the second character string into the target character string based on the zero width character corresponding to the at least one second character.
In some embodiments, the variable length coding subunit is configured to perform:
determining a zero-width character corresponding to at least one second character based on the at least one second character included in the second character string and second relation data;
determining zero-width characters corresponding to the separators based on the second relation data, wherein the second relation data comprises the second characters, the mapping relation between the separators and the zero-width characters;
and converting the second character string into the target character string based on the zero-width character corresponding to the at least one second character and the zero-width character corresponding to the separator.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer device comprising:
One or more processors;
a memory for storing the processor-executable program code;
wherein the processor is configured to execute the program code to implement the command display method described above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium comprising: the program code in the computer readable storage medium, when executed by a processor of a computer device, enables the computer device to perform the command display method described above.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the command display method described above.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an implementation environment of a command display method according to an embodiment of the disclosure;
FIG. 2 is a flow chart illustrating a command display method according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating a command display method according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating a command display method according to an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating a zero-width character encoding according to an example embodiment;
FIG. 6 is a schematic diagram illustrating one type of generating information commands in accordance with an exemplary embodiment;
FIG. 7 is a block diagram of a command display device, according to an example embodiment;
FIG. 8 is a block diagram of a command display device, according to an example embodiment;
FIG. 9 is a block diagram of a terminal shown in accordance with an exemplary embodiment;
fig. 10 is a block diagram of a server, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The data or information to which the present disclosure relates may be data or information that is authorized by a user or sufficiently authorized by parties.
Fig. 1 is a schematic diagram of an implementation environment of a command display method according to an embodiment of the present disclosure, referring to fig. 1, the implementation environment includes: a terminal 101 and a server 102.
The terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop portable computer. The terminal 101 has a communication function and can access a wired network or a wireless network. The terminal 101 may refer broadly to one of a plurality of terminals, and the present embodiment is illustrated only with the terminal 101. Those skilled in the art will recognize that the number of terminals may be greater or lesser.
In some embodiments, the terminal 101 has a first application running thereon, the first application being at least one of a shopping application, a live application, a video playing application, an audio playing application, and a short video application. In some embodiments, a second application is also running on the terminal 101, the second application being a social application.
In the disclosed embodiment, the terminal 101 includes a first terminal 1011 and a second terminal 1012. The first terminal 1011 refers to a terminal corresponding to a first object, where the first object is used to refer to a user who wants to share an information command. The second terminal 1012 refers to a terminal corresponding to a second object, where the second object is used to refer to a user who is instructed to share information.
The server 102 may be an independent physical server, a server cluster or a distributed file system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like. Alternatively, the number of servers 102 may be greater or lesser, which is not limited by the disclosed embodiments. Of course, the server 102 may also include other functional servers to provide more comprehensive and diverse services.
In some embodiments, the terminal 101 is directly or indirectly connected to the server 102 through wired or wireless communication, which is not limited by the embodiments of the present disclosure.
In the disclosed embodiment, the server 102 includes a first server 1021 and a second server 1022. The first server 1021 is a background server of the first application program, and is configured to provide a background service for the first application program. The second server 1022 is a background server of the second application program, and is configured to provide a background service for the second application program.
In some embodiments, the first object is configured to trigger a target sharing event by operating in the first application, and further trigger the first terminal 1011 to send a command generation request to the first server 1021 based on the target sharing event to request the first server 1021 to generate an information command corresponding to the target sharing event, where the first server 1021 receives the command generation request sent by the first object, generates a target information command based on event information of the target sharing event, and returns the generated target information command to the first terminal 1011, and where the first terminal 1011 receives the target information command returned by the first server 1021. The target sharing event represents a first sharing event of the first object, for example, when the first object wants to share the content information in the first application, a sharing operation may be performed on the content information in the first application, and at this time, the target sharing event is triggered.
Further, in some embodiments, the first object is capable of triggering the second terminal 1012 to send the target information command to the second terminal 1012 by operating in the second application, specifically, sending the target information command to the second terminal 1012 through the second server 1022, and accordingly, the second terminal 1012 receives the target information command sent by the first object to the second object, and in the display interface of the second object, first prompt information in the target information command is displayed, and the target sharing event is triggered to be executed based on the first prompt information. Therefore, the effect of only displaying the prompt information in the target information command is achieved, the display of meaningless plaintext characters is avoided, the interference of redundant characters on the sight is avoided, the reading difficulty of a user is further reduced, and the man-machine interaction efficiency is improved.
Fig. 2 is a flowchart illustrating a command display method according to an exemplary embodiment, which is performed by a computer device provided as the terminal shown in fig. 1 described above, as shown in fig. 2. Illustratively, the method includes the steps of:
in step 201, the terminal receives a target information command sent by a first object, where the target information command includes a target string and first prompt information, the target string is used to indicate event information of a target sharing event, and the first prompt information is used to prompt to trigger execution of the target sharing event based on the target information command.
In step 202, the terminal displays first prompt information in the target information command in a display interface of the second object;
in step 203, the terminal triggers the target sharing event to be executed based on the first prompt information.
According to the technical scheme provided by the embodiment of the disclosure, after the second object receives the target information command sent by the first object, only the prompt information in the target information command is displayed, so that the display of meaningless plaintext characters is avoided, the interference of redundant characters on the sight is avoided, the reading difficulty of a user is further reduced, and the man-machine interaction efficiency is improved.
In some embodiments, triggering execution of the target sharing event based on the first hint information includes:
responding to the copying operation of the displayed first prompt information, and acquiring the first prompt information and the target character string;
and responding to the starting operation of the application program corresponding to the target information command, and displaying an information interface corresponding to the target information command, wherein the information interface is used for displaying content information associated with the target sharing event.
In some embodiments, in response to a launch operation of an application corresponding to the target information command, displaying an information interface corresponding to the target information command includes:
And responding to the starting operation of the application program corresponding to the target information command, and jumping from the initial interface of the application program to the information interface corresponding to the target information command.
In some embodiments, before jumping from the initial interface of the application to the information interface corresponding to the target information command, the method further includes:
and responding to the starting operation of the application program corresponding to the target information command, and displaying second prompt information of the target sharing event in an initial interface of the application program, wherein the second prompt information is used for prompting that the user is about to jump to an information interface corresponding to the target information command.
In some embodiments, in response to a start operation of the application program corresponding to the target information command, after displaying the second prompt information of the target sharing event in the initial interface of the application program, the method further includes:
and executing the step of jumping from the initial interface of the application program to the information interface corresponding to the target information command in response to the display time of the second prompt message reaching the target time.
In some embodiments, the first alert message is a text alert message with a fixed content.
In some embodiments, the display interface is any one of a session interface for displaying a session record between the first object and the second object, a dynamic interface for displaying dynamic information published by at least one object having a social relationship with the second object, and a recommendation interface for displaying at least one recommended dynamic information.
Fig. 3 is a flowchart illustrating a command display method according to an exemplary embodiment, which is performed by a computer device provided as the server shown in fig. 1 described above, as shown in fig. 3. Illustratively, the method includes the steps of:
in step 301, the server receives a command generation request sent by the first object, where the command generation request is used to request to generate an information command corresponding to the target sharing event.
In step 302, the server generates a target information command based on the event information of the target sharing event, where the target information command includes a target string and first prompt information, the target string is used to indicate the event information of the target sharing event, and the first prompt information is used to prompt to trigger execution of the target sharing event based on the target information command.
In step 303, the server sends the target information command to the first object, wherein when the target information password is displayed, first prompt information in the target information password is displayed.
According to the technical scheme provided by the embodiment of the disclosure, when the target information command is displayed, only the prompt information in the target information command is displayed, so that the display of meaningless plaintext characters is avoided, the interference of redundant characters on the sight is avoided, the reading difficulty of a user is further reduced, and the man-machine interaction efficiency is improved.
In some embodiments, generating the target information command based on the event information of the target sharing event includes:
generating an initial information command corresponding to the target sharing event based on the event information of the target sharing event;
based on the first character string in the initial information command, determining a second character string, and performing zero-width character encoding on the second character string to obtain the target character string;
and generating the target information command based on the target character string and the first prompt information.
In some embodiments, generating the initial information command corresponding to the target sharing event based on the event information of the target sharing event includes:
And encoding event information of the target sharing event based on the command encoding rule to obtain an initial information command corresponding to the target sharing event.
In some embodiments, determining the second string based on the first string in the initial information command includes any one of:
performing a binary conversion based on the first character string in the initial information command to obtain a binary-converted character string, and determining the binary-converted character string as the second character string;
and carrying out telegram character coding based on the first character string in the initial information command to obtain a character string after telegram character coding, and determining the character string after telegram character coding as the second character string.
In some embodiments, performing telegram character encoding based on the first character string in the initial information command, the obtaining the telegram character encoded character string includes:
determining telegram characters corresponding to at least one first character based on the at least one first character included in the first character string and first relation data, wherein the first relation data comprises a mapping relation between the first character and the telegram characters;
and converting the first character string into a character string after coding the telegram character based on the telegram character corresponding to the at least one first character.
In some embodiments, performing zero-width character encoding on the second character string to obtain the target character string includes any one of the following:
based on a fixed-length coding mode, carrying out zero-width character coding on the second character string to obtain the target character string;
and carrying out zero-width character encoding on the second character string based on a variable length encoding mode to obtain the target character string.
In some embodiments, performing zero-width character encoding on the second character string based on the fixed-length encoding manner, to obtain the target character string includes:
determining a zero-width character corresponding to at least one second character based on the at least one second character included in the second character string and second relation data, wherein the second relation data comprises a mapping relation between the second character and the zero-width character;
and converting the second character string into the target character string based on the zero width character corresponding to the at least one second character.
In some embodiments, performing zero-width character encoding on the second string based on a variable length encoding manner, to obtain the target string includes:
determining a zero-width character corresponding to at least one second character based on the at least one second character included in the second character string and second relation data;
Determining zero-width characters corresponding to the separators based on the second relation data, wherein the second relation data comprises the second characters, the mapping relation between the separators and the zero-width characters;
and converting the second character string into the target character string based on the zero-width character corresponding to the at least one second character and the zero-width character corresponding to the separator.
Fig. 2 to 3 are only basic flows of the present disclosure, and the scheme provided in the present disclosure is further described below based on a specific embodiment, fig. 4 is a flowchart illustrating a command display method according to an exemplary embodiment, and fig. 4 illustrates the scheme by taking the interaction between the first terminal and the second terminal and the first server and the second server, which are referred to in fig. 1, as an example, and referring to fig. 4, the method includes:
in step 401, the first terminal responds to a triggering operation of the target sharing event in the first application program, and sends a command generation request to the first server, where the command generation request is used for requesting to generate an information command corresponding to the target sharing event.
In the embodiment of the disclosure, the first terminal refers to a terminal corresponding to a first object, where the first object is used to refer to a user to be shared with an information command. In some embodiments, the first object is represented by an object identification, which may be, for example, an object name, an object account number, an object ID (Identity, identification number).
The first application is provided with a function of generating an information command. In some embodiments, the first application is at least one of a shopping application, a live application, a video playing application, an audio playing application, a short video application. Wherein the information command may be a password. Typically, the information command includes a string of characters and text prompts. In some embodiments, the character string includes at least one of english characters, numerical codes, emoticons, and separators. The text prompt message is used for prompting the corresponding sharing event to be triggered and executed based on the message command. The first server is a background server of the first application program and is used for providing background service for the first application program.
The target sharing event is used for referring to an event of sharing content information in the first application program. Taking a shopping application program as an example, the target sharing event may be an event of sharing an object in the shopping application program, where the object refers to a commodity, and correspondingly, the content information is the object information of the object, such as commodity information; taking a live broadcast application program as an example, the target sharing event may be an event for sharing a virtual space in the live broadcast application program, where the virtual space refers to a live broadcast room, and correspondingly, the content information is spatial information of the virtual space, such as live broadcast room information; taking a short video application program as an example, the target sharing event may be an event of sharing a video work in the short video application program, and correspondingly, the content information is work information of the video work.
In some embodiments, when the first object wants to share the content information in the first application, a sharing operation is performed on the content information in the first application, and at this time, the first terminal, in response to the sharing operation on the content information in the first application, triggers execution of a process of sending a command generation request to the first server, so as to request the first server to generate an information command corresponding to the target sharing event.
In an optional embodiment, taking a first application program as a shopping application program as an example, a first terminal displays a sharing control of an article object in an article transaction page of the article object, wherein the article transaction page is used for carrying out article transaction on the article object, and further, when a user wants to share the article object, a triggering operation is implemented on the sharing control of the article object, the first terminal triggers and executes a process of sending a command generation request to a first server in response to the triggering operation on the sharing control of the article object; in yet another optional embodiment, taking the first application program as a live broadcast application program as an example, the first terminal displays a sharing control of the virtual space in a playing interface (such as a live broadcast interface) of the virtual space, and further, when a user wants to share the virtual space, performs a triggering operation on the sharing control of the virtual space, the first terminal triggers and executes a process of sending a command generation request to the first server in response to the triggering operation on the sharing control of the virtual space; in another optional embodiment, taking the first application program as an example of the short video application program, the first terminal displays a sharing control of the video work in a playing interface of the video work, and further, when a user wants to share the video work, performs a triggering operation on the sharing control of the video work, the first terminal triggers and executes a process of sending a command generation request to the first server in response to the triggering operation on the sharing control of the video work.
The above embodiments take a shopping application, a live application, and a short video application as examples to describe a process of triggering a command generation request, and in other embodiments, the command generation request can also be triggered based on a sharing event in other applications, or the command generation request can also be triggered based on a sharing operation on other content information in the above applications, which is not limited in the embodiments of the disclosure.
In step 402, the first server receives the command generation request.
In some embodiments, the command generating request carries event information of the target sharing event, and accordingly, the first server receives the command generating request, and obtains the event information of the target sharing event from an event field included in the command generating request, so as to execute a process of generating an information command based on the event information of the target sharing event.
In step 403, the first server generates a target information command based on the event information of the target sharing event, where the target information command includes a target string and first prompt information, where the target string is used to indicate the event information of the target sharing event, and the first prompt information is used to prompt to trigger execution of the target sharing event based on the target information command.
In the embodiment of the disclosure, the event information is used for recording information related to the target sharing event. In some embodiments, the event information includes shared content, shared objects, shared times, and the like. The shared content refers to content information to be shared, such as commodity information, live broadcast room information, and the like. The sharing object represents a user to share content information, that is, a user to share an information command (i.e., a first object), and accordingly, the object information may be an object identifier. In the embodiment of the disclosure, the information command corresponding to the target sharing event is represented by a target information command, the character string included in the target information command is represented by a target character string, and the text prompt information included in the target information command is represented by first prompt information.
The following describes a process of generating a target information command by the first server based on the event information of the target sharing event based on steps (403A) to (403D):
in step (403A), the first server generates an initial information command corresponding to the target sharing event based on the event information of the target sharing event.
In some embodiments, the first server encodes event information of the target sharing event based on a command encoding rule, so as to obtain an initial information command corresponding to the target sharing event. Therefore, the event information of the target sharing event is encoded by utilizing the preset command encoding rule, so that the initial information command of the target sharing event can be obtained quickly, and the efficiency of obtaining the initial information command is improved.
In step (403B), the first server determines a second string based on the first string in the initial information command.
In the embodiment of the disclosure, a first character string is used to represent a character string included in an initial information command, and a second character string is used to represent a character string determined based on the first character string.
In some embodiments, the second string determination process includes any one of (B-1) and (B-2) below:
(B-1) in some embodiments, the first server performs a binary conversion based on the first string in the initial information command, resulting in a binary-converted string, and determines the binary-converted string as the second string.
In some embodiments, the first server is associated with a binary translator, with which the first string can be quickly translated into the second string, the corresponding procedure being: the first server inputs the first character string in the initial information command into the binary translator, performs binary translation through the binary translator, and outputs the character string after the binary translation.
In some embodiments, the binary conversion is any one of a binary conversion to a decimal conversion and a hexadecimal conversion. Illustratively, the first server performs binary conversion based on the first character string in the initial information command to obtain a binary-converted second character string.
(B-2) in some embodiments, the first server performs telegram character encoding based on the first character string in the initial information command, resulting in a telegram character encoded character string, and determining the telegram character encoded character string as the second character string.
In some embodiments, the process of telegram character encoding by the first server includes: and determining telegram characters corresponding to the at least one first character based on at least one first character and first relation data included in the first character string, and converting the first character string into a character string after telegram character coding based on the telegram characters corresponding to the at least one first character.
The first character refers to a character included in the first character string. In some embodiments, the first character is any one of an english character, a numeric code, a separator, and an expression.
The first relationship data includes a mapping relationship between the first character and telegram characters. For example, table 1 is first relation data, which is shown in accordance with an exemplary embodiment, and may be used to obtain telegram characters corresponding to the respective first characters when the telegram characters are encoded on the first character string. Taking the character a as an example, the character a can be converted into a short-wave character based on the first relation data shown in table 1, so that the encoding length of the zero-width character can be shortened when the subsequent zero-width character encoding is performed based on the short-wave character. Based on telegraph character codes shown in the embodiment of the disclosure, the optimization rate for the code length can reach 50%.
TABLE 1
Zero width character a b c d e f g
Telegram character . - -. -- -.. -.- --.
In some embodiments, the first server counts the frequency of use of each first character, and generates the first relationship data based on the frequency of use of each first character. For example, the first relation data is generated by arranging the first characters in an arrangement order from high to low in the frequency of use of the first characters, arranging the first characters in an arrangement order from short to long in the character length of the telegraph characters, and then corresponding the first characters to the telegraph characters one by one in the arrangement order. In this way, when the first relation data is set, the use frequency of each first character is referred to, and telegram characters with shorter character lengths are set for the first characters with higher use frequency, so that the character length of the target information command is further shortened.
In this embodiment, the first relationship data is used to determine telegram characters corresponding to each first character in the first character string, so as to convert each first character in the first character string into a telegram character, and then perform zero-width character encoding based on the character string after telegram character encoding.
In the above embodiment, for the first character string in the initial information command, the binary conversion or telegram character encoding is performed, so that the zero-width character encoding is performed subsequently based on the character string after the binary conversion or the character string after the telegram character encoding, so as to ensure smooth generation of the target character string.
In step (403C), the first server performs zero-width character encoding on the second character string to obtain the target character string.
The zero-width character is a character with zero byte width, and is in an invisible form when being displayed in a text application or a browser application, and is not lost when being copied, pasted and the like. Therefore, the original character string is subjected to zero-width character coding by introducing the zero-width characters, so that the generated character string can not only identify one sharing event, but also avoid reading obstacle caused by display of the character string, and the reading experience of a user is improved.
In some embodiments, the first server performs zero-width character encoding on the second string based on a fixed-length encoding manner or a variable-length encoding manner, so that two types of zero-width character encoding manners are provided, and flexibility of zero-width character encoding is improved. The following describes a fixed length encoding process and a variable length encoding process based on the following (C-1) and (C-2):
And (C-1) the first server performs zero-width character encoding on the second character string based on a fixed-length encoding mode to obtain the target character string.
The fixed length coding is to perform equal length coding on each character, and specifically, a codeword with a fixed length is used to represent the character. In some embodiments, when encoding based on the fixed length encoding mode, special characters are filled for characters with insufficient length, for example, in the case of 2-ary encoding, the effect of filling the fixed length encoding of the character 1 with 0 may be 000001.
In some embodiments, the first server determines, based on at least one second character included in the second character string and the second relationship data, a zero-width character corresponding to the at least one second character, and converts the second character string to the target character string based on the zero-width character corresponding to the at least one second character. Wherein the second relationship data includes a mapping relationship between the second character and the zero-width character.
The second character refers to a character included in the second character string.
In some embodiments, taking the second character string as the character string obtained by the binary conversion as an example, the second character is the character obtained by the binary conversion, that is, the number included in the binary, and correspondingly, the above-mentioned fixed-length coding process may be replaced by: the first server determines a zero-width character corresponding to the at least one number based on the at least one number included in the second string and the second relationship data, and converts the second string into the target string based on the zero-width character corresponding to the at least one number. In this embodiment, the second relationship data includes a mapping relationship between the number and the zero-width character.
Taking binary conversion as an example, the second character is that the number 0 and the number 1 included in the binary system, and accordingly, based on the number 0 and the number 1 included in the binary system, the zero-width characters corresponding to the number 0 and the number 1 are determined in the second relational data, for example, the zero-width character\u200b is used for representing the number 0 of the binary system, and the zero-width character\u200c is used for representing the number 1 of the binary system; taking ternary conversion as an example, the numbers included in the ternary system are number 0, number 1 and number 2, and correspondingly, based on the number 0, number 1 and number 2 included in the ternary system, in the second relation data, zero-width characters corresponding to the number 0, number 1 and number 2 are determined, for example, zero-width characters\u200A are used for representing the binary number 0, zero-width characters\u200B are used for representing the binary number 1, and zero-width characters\u200C are used for representing the binary number 1. Therefore, in the case of fixed-length encoding, N zero-width characters are selected from the second relationship data based on the N-ary, the N-ary including N-ary corresponding zero-width characters, respectively. Thus, the character string which is not required to be displayed is subjected to zero width character encoding by using the zero width characters, so that the character string consisting of the zero width characters can be obtained, and the character string is not displayed in a display interface. Wherein N is a positive integer greater than one.
In other embodiments, taking the second character string as the character string obtained by telegram character encoding as an example, the second character is the character encoded by telegram character, that is, telegram character, and correspondingly, the above-mentioned fixed length encoding process may be replaced by: the first server determines a zero-width character corresponding to the at least one telegram character based on at least one telegram character and second relation data included in the second character string, and converts the second character string into the target character string based on the zero-width character corresponding to the at least one telegram character. In this embodiment, the second relationship data includes a mapping relationship between telegram characters and zero-width characters.
Illustratively, taking telegram character encoding as an example, the second characters are telegram character "." and telegram character "-", and accordingly, based on telegram character "." and telegram character "-", in the second relationship data, the zero-width character corresponding to telegram character "." and the zero-width character corresponding to telegram character "-" are determined, such as using the zero-width character_200b to represent telegram character ".", and using the zero-width character_200c to represent telegram character "-". Therefore, in the case of fixed-length encoding, two zero-width characters, which are the zero-width character corresponding to telegram character "-" and the zero-width character corresponding to telegram character "-" respectively, are selected from the second relationship data based on the telegram character. Thus, the character string which is not required to be displayed is subjected to zero width character encoding by using the zero width characters, so that the character string consisting of the zero width characters can be obtained, and the character string is not displayed in a display interface.
In the above embodiment, when the zero-width character encoding is performed based on the fixed-length encoding manner, the process of performing the subsequent character conversion is performed by acquiring the zero-width character corresponding to the second character included in the second character string, so that the second character string can be quickly converted into the character string in the form of the zero-width character, thereby obtaining the target character string composed of the zero-width characters.
(C-2) the first server performing zero-width character encoding on the second character string based on the variable length encoding scheme, to obtain the target character string.
Wherein, the variable length coding is to use codewords with different lengths to represent characters for different characters. In some embodiments, when encoding based on a variable length coding scheme, separators are filled between individual characters to facilitate distinguishing between the positions of the characters.
In some embodiments, the first server determines a zero-width character corresponding to the at least one second character based on the at least one second character included in the second character string and second relationship data, determines a zero-width character corresponding to a separator based on the second relationship data, and converts the second character string to the target character string based on the zero-width character corresponding to the at least one second character and the zero-width character corresponding to the separator. The second relation data comprises a mapping relation among the second character string, the separator and the zero-width character.
In some embodiments, taking the second character string as the character string obtained by the binary conversion as an example, the second character is the character obtained by the binary conversion, that is, the number included in the binary, and correspondingly, the variable length coding process can be replaced by: the first server determines a zero-width character corresponding to the at least one number based on the at least one number included in the second string and second relationship data, determines a zero-width character corresponding to a separator based on the second relationship data, and converts the second string into the target string based on the zero-width character corresponding to the at least one number and the zero-width character corresponding to the separator. In this embodiment, the second relationship data includes a mapping relationship between the number, the separator, and the zero-width character.
In other embodiments, taking the second character string as the character string obtained by encoding the telegram character as an example, the second character is the character encoded by the telegram character, that is, the telegram character, and correspondingly, the variable length encoding process may be replaced by: the first server determines a zero-width character corresponding to the at least one telegram character based on at least one telegram character and second relation data included in the second character string, determines a zero-width character corresponding to a separator based on the second relation data, and converts the second character string into the target character string based on the zero-width character corresponding to the at least one telegram character and the zero-width character corresponding to the separator. In this embodiment, the second relationship data includes a mapping relationship between telegram characters, separators and zero-width characters.
For example, in the case of encoding based on variable length coding, it is also necessary to select a zero-width character corresponding to the separator from the second relationship data, for example, using the zero-width character_200d to represent the separator. Therefore, taking N-ary conversion as an example, in the case of variable length coding, based on N-ary, selecting (n+1) zero-width characters from the second relationship data, which are zero-width characters corresponding to N second characters included in the N-ary and zero-width characters corresponding to the separator, respectively; taking telegram character encoding as an example, three zero-width characters are selected from the second relation data based on the telegram characters, wherein the three zero-width characters are respectively zero-width characters corresponding to telegram characters '-' and zero-width characters corresponding to separators. Thus, the character string which is not required to be displayed is subjected to zero width character encoding by using the zero width characters, so that the character string consisting of the zero width characters can be obtained, and the character string is not displayed in a display interface.
Illustratively, FIG. 5 is a schematic diagram of a zero width character encoding, according to an exemplary embodiment, see FIG. 5, for a representation of "123-! For example, the characters between 1 and 5 in 45 "are hidden (i.e., zero width character encoding), first, the characters" 2"," 3", are! Binary conversion is carried out on '4' and '110010', '110011', '100001', '110100' after binary conversion is obtained, zero width character\u 200B is adopted to represent binary number 0, zero width character\u 200C is adopted to represent binary number 1, zero width character\u 200D is adopted to represent separator, zero width character encoding is carried out on character strings after binary conversion based on the zero width characters, character strings shown in figure 5 are obtained, and furthermore, when the character strings after zero width character encoding are displayed, the effect of only displaying '15' can be achieved.
In the above embodiment, when the zero-width character encoding is performed based on the variable length encoding method, the process of performing the subsequent character conversion is performed by acquiring the zero-width character corresponding to the second character and the zero-width character corresponding to the separator included in the second character string, and the second character string can be quickly converted into the character string in the form of the zero-width character, so that the target character string composed of the zero-width characters is obtained.
In step (403D), the first server generates the target information command based on the target string and the first hint information.
In some embodiments, the first server fuses the target string with the first prompt message to obtain the target message command. For example, the first server inserts the target character string in the first prompt message to obtain the target information command.
In some embodiments, the first alert message is a text alert message with a fixed content. Therefore, by setting the text prompt information with fixed content, the first prompt information with the same content can be displayed for different types of sharing events, and the display efficiency of the first prompt information is ensured, and meanwhile, the display effect of the first prompt information can be ensured. In other embodiments, the first prompt information is associated with a text template, and the text template is provided with an event information field, so that, for different types of sharing events, by adding event information corresponding to the sharing event in the event information field provided by the text template, the first prompt information matched with the event type of the sharing event can be generated, the display content of the first prompt information is enriched, the displayed information quantity is increased, and the display effect of the first prompt information is improved.
In the above embodiment, the target character string composed of the zero-width characters can be obtained by performing zero-width character encoding on the second character string determined based on the first character string in the initial information command, and then the target information command is generated based on the target character string and the first prompt information, and since the zero-width character is a character with a character width of zero, when the target information command is displayed, the effect of displaying only the prompt information in the target information command can be achieved, the display of meaningless plaintext characters is avoided, the reading difficulty of the user is reduced, and the man-machine interaction efficiency is improved.
In some embodiments, after generating the initial information command of the target sharing event based on the step (403A), the first server further encrypts the initial information command of the target sharing event, and further performs the step (403B) based on the encrypted initial information command. In this way, the reliability and security of the transmission of information commands are ensured.
By way of example, fig. 6 is a schematic diagram illustrating generation of an information command according to an exemplary embodiment, referring to fig. 6, taking the information command as a password as an example, the generation link of the password is: firstly, encrypting an original password (an initial information command), then performing binary conversion on the encrypted password, and then performing zero-width character encoding based on the binary-converted binary password, thereby obtaining an invisible password (namely a target information command).
In step 404, the first server transmits the target information command to the first terminal.
In some embodiments, the command generation request carries the object identification of the first object, and accordingly, step 404 may be replaced with: and the first server sends the target information command to a terminal corresponding to the object identifier of the first object based on the object identifier of the first object carried by the command generation request.
In step 405, the first terminal receives the target information command.
In some embodiments, after receiving the target information command, the first terminal further displays the target information command, and the corresponding process is: and displaying the first prompt information in the target information command without displaying the target character string in the target information command. Further, in some embodiments, the first terminal obtains the first hint information and the target string in response to a copy operation of the displayed first hint information.
The first object is also capable of sending the target information command to other objects after copying the target information command, such that the other objects trigger execution of the target sharing event based on the target information command. Embodiments of the present disclosure subsequently employ a second object to refer to the user being instructed to share the information.
In step 406, the first terminal transmits an information transmission request to the second server in response to the transmission operation of the target information command in the second application.
In some embodiments, a second application is also running on the first terminal, the second application being a social application. The second server is a background server of the second application program and is used for providing background service for the second application program.
In some embodiments, the information sending request is used for requesting to send a target information command to the second object, for example, the first terminal sends an information sending request to the second server in response to a sending operation of the target information command in a session interface provided by the second application program, where the session interface is used for displaying a session record between the first object and the second object, such as a chat interface or a private information interface, to request the second server to send the target information command to the second object.
In some embodiments, the information sending request is used for requesting to push the target information command to at least one object having a social relationship with the first object, or the information sending request is used for requesting to push the target information command to at least one object, for example, the first terminal sends an information sending request to the second server to request the second server to issue the target information command in response to an issue operation on the target information command in an issue interface provided by the second application, where the issue interface is used for issuing dynamic information of the first object. In some embodiments, the at least one object having a social relationship with the first object is at least one of a friend of the first object, an object that has focused on the first object, an object that the first object focuses on, and an object that focuses on with the first object.
In step 407, the second server receives the information transmission request and transmits the target information command to the second terminal.
In the embodiment of the present disclosure, the second terminal refers to a terminal corresponding to the second object. In some embodiments, the information sending request carries the object identification of the second object, and accordingly, step 407 may be replaced with: and the second server sends the target information command to a terminal corresponding to the object identification of the second object based on the object identification of the second object carried by the information sending request.
In step 408, the second terminal receives the target information command.
In step 409, the second terminal displays the first prompt information in the target information command in the display interface of the second object.
In some embodiments, the second terminal does not display the target character string in the target information command and displays the first prompt information in the target information command in the display interface of the second object. By way of example, assuming the target string is "#x3tykg 3 wtikr1xr#", the first prompt message is "the live broadcast of the host is very wonderful, the fast going around-! Copying this message, opening the [ x application ] direct view ]! At this time, in the display interface of the second object, the content displayed is that the live broadcast of "anchor× × × -! Copying this message, opening the [ x application ] direct view ]! ".
In some embodiments, the display interface is any one of a session interface for displaying a session record between the first object and the second object, a dynamic interface for displaying dynamic information published by at least one object having a social relationship with the second object, and a recommendation interface for displaying at least one recommended dynamic information. In the embodiment of the disclosure, various types of display interfaces are provided, so that the diversity of the display interfaces is improved, and further, the diversity of command display is improved. In some embodiments, the at least one object having a social relationship with the second object is at least one of a friend of the second object, an object that has focused on the second object, an object that the second object focuses on, and an object that focuses on with the second object.
The following describes a process of triggering the second terminal to execute the target sharing event based on the first prompt message based on the following steps 410 to 411.
In step 410, the second terminal responds to the copy operation of the displayed first prompt message to obtain the first prompt message and the target character string.
In some embodiments, the copy operation is any one of a long press operation, a click operation, a select operation. In the embodiment, by copying the first prompt information, not only the first prompt information but also the target character string can be obtained, so that the man-machine interaction efficiency is improved, the subsequent triggering of the execution of the target sharing event based on the copied target character string can be ensured, and the smooth progress of the target sharing event is ensured.
In step 411, the second terminal responds to the start operation of the first application program, and displays an information interface corresponding to the target information command, where the information interface is used to display content information associated with the target sharing event.
In some embodiments, the information interface corresponding to the target information command is an interface for triggering the target sharing event. Taking triggering a target sharing event in an article transaction page of an article object provided by a first application program as an example, the corresponding information interface of the target information command is namely the article transaction page of the article object, and correspondingly, the second terminal responds to the starting operation of the first application program to display the article transaction page of the article object; taking triggering a target sharing event in a playing interface of a virtual space provided by a first application program as an example, the information interface corresponding to the target information command is the playing interface of the virtual space, and correspondingly, the second terminal responds to the starting operation of the first application program to display the playing interface of the virtual space; taking triggering a target sharing event in a playing interface of a video work provided by a first application program as an example, the information interface corresponding to the target information command is the playing interface of the video work, and correspondingly, the second terminal responds to the starting operation of the first application program to display the playing interface of the video work.
In this embodiment, after the copy operation is performed on the first prompt information, if the application corresponding to the target information command is started, the information interface corresponding to the target information command may be triggered to be displayed so as to display the content information associated with the target sharing event, so that the process of triggering and executing the target sharing event based on the target information command is implemented.
In some embodiments, the second terminal jumps from an initial interface of the application to an information interface corresponding to the target information command in response to a start operation of the application corresponding to the target information command, where the information interface is configured to display content information associated with the target sharing event. Wherein the initial interface of the application may be a home page of the application. In this embodiment, after the copy operation is performed on the first prompt information, if the application program corresponding to the target information command is started, the jump from the initial interface of the application program to the information interface corresponding to the target information command can be triggered to display the content information associated with the target sharing event, so that the process of triggering and executing the target sharing event based on the target information command is realized.
In some embodiments, before the jump from the initial interface of the application program to the information interface corresponding to the target information command, the second terminal responds to the start operation of the application program corresponding to the target information command, and also displays, in the initial interface of the application program, second prompt information of the target sharing event, where the second prompt information is used to prompt that the jump is about to be made to the information interface corresponding to the target information command. When the application program corresponding to the target information command is started, the second prompt information of the target sharing event is displayed so as to prompt the second object to jump to the information interface corresponding to the target information command, and the information quantity displayed in the initial interface is increased.
In some embodiments, after displaying the second prompt message of the target sharing event, the second terminal executes the step of jumping from the initial interface of the application program to the information interface corresponding to the target information command in response to the display duration of the second prompt message reaching the target duration. The target duration is a preset fixed duration, such as 5s. Therefore, when the display time of the second prompt information reaches the target time, the interface skipping process is executed, and the flexibility of information display is improved.
According to the technical scheme provided by the embodiment of the disclosure, after the second object receives the target information command sent by the first object, only the prompt information in the target information command is displayed, so that the display of meaningless plaintext characters is avoided, the interference of redundant characters to the sight is avoided, the reading difficulty of a user is further reduced, the man-machine interaction efficiency is improved, and the display of plaintext characters is avoided while the man-machine interaction efficiency is improved, the sent information command is more simplified, the forwarding and broadcasting will of the user is stronger, and the conversion rate of the user is improved.
Fig. 7 is a block diagram of a command display device according to an exemplary embodiment. Referring to fig. 7, the apparatus includes a receiving unit 701 and a display unit 702.
A receiving unit 701, configured to execute a target information command sent by a first object, where the target information command includes a target string and first prompt information, where the target string is used to indicate event information of a target sharing event, and the first prompt information is used to prompt that the target sharing event is triggered to be executed based on the target information command;
A display unit 702 configured to display first prompt information in the target information command in a display interface of the second object;
a triggering unit 703 configured to trigger the target sharing event to be executed based on the first prompt information.
According to the technical scheme provided by the embodiment of the disclosure, after the second object receives the target information command sent by the first object, only the prompt information in the target information command is displayed, so that the display of meaningless plaintext characters is avoided, the interference of redundant characters on the sight is avoided, the reading difficulty of a user is further reduced, and the man-machine interaction efficiency is improved.
In some embodiments, the trigger unit 703 includes:
an acquisition subunit configured to perform a copy operation in response to the displayed first hint information, to acquire the first hint information and the target string;
a display subunit configured to perform:
and responding to the starting operation of the application program corresponding to the target information command, and displaying an information interface corresponding to the target information command, wherein the information interface is used for displaying content information associated with the target sharing event.
In some embodiments, the display subunit is configured to perform:
And responding to the starting operation of the application program corresponding to the target information command, and jumping from the initial interface of the application program to the information interface corresponding to the target information command.
In some embodiments, the display subunit is further configured to perform:
and responding to the starting operation of the application program corresponding to the target information command, and displaying second prompt information of the target sharing event in an initial interface of the application program, wherein the second prompt information is used for prompting that the user is about to jump to an information interface corresponding to the target information command.
In some embodiments, the display subunit is further configured to perform:
and executing the step of jumping from the initial interface of the application program to the information interface corresponding to the target information command in response to the display time of the second prompt message reaching the target time.
In some embodiments, the first alert message is a text alert message with a fixed content.
In some embodiments, the display interface is any one of a session interface for displaying a session record between the first object and the second object, a dynamic interface for displaying dynamic information published by at least one object having a social relationship with the second object, and a recommendation interface for displaying at least one recommended dynamic information.
Fig. 8 is a block diagram of a command display device according to an exemplary embodiment. Referring to fig. 8, the apparatus includes a receiving unit 801, a generating unit 802, and a transmitting unit 802.
A receiving unit 801, configured to perform receiving a command generation request sent by the first object, where the command generation request is used to request to generate an information command corresponding to the target sharing event;
a generating unit 802 configured to execute event information based on the target sharing event, and generate a target information command, where the target information command includes a target string and first prompt information, the target string is used to indicate the event information of the target sharing event, and the first prompt information is used to prompt that the target sharing event is triggered to be executed based on the target information command;
and a transmitting unit 803 configured to perform transmission of the target information command to the first object, wherein when the target information password is displayed, first prompt information in the target information password is displayed.
According to the technical scheme provided by the embodiment of the disclosure, when the target information command is displayed, only the prompt information in the target information command is displayed, so that the display of meaningless plaintext characters is avoided, the interference of redundant characters on the sight is avoided, the reading difficulty of a user is further reduced, and the man-machine interaction efficiency is improved.
In some embodiments, the generating unit 802 includes:
the first generation subunit is configured to execute event information based on the target sharing event and generate an initial information command corresponding to the target sharing event;
the encoding subunit is configured to execute the first character string in the initial information command, determine a second character string, and perform zero-width character encoding on the second character string to obtain the target character string;
and the second generation subunit is configured to execute the target information command based on the target character string and the first prompt information.
In some embodiments, the first generation subunit is configured to perform:
and encoding event information of the target sharing event based on the command encoding rule to obtain an initial information command corresponding to the target sharing event.
In some embodiments, the coding subunit comprises any one of:
a binary conversion subunit configured to perform binary conversion based on the first string in the initial information command to obtain a binary-converted string, and determine the binary-converted string as the second string;
and the telegram character encoding subunit is configured to execute the telegram character encoding based on the first character string in the initial information command to obtain a character string after telegram character encoding, and determine the character string after telegram character encoding as the second character string.
In some embodiments, the telegram character encoding subunit is configured to perform:
determining telegram characters corresponding to at least one first character based on the at least one first character included in the first character string and first relation data, wherein the first relation data comprises a mapping relation between the first character and the telegram characters;
and converting the first character string into a character string after coding the telegram character based on the telegram character corresponding to the at least one first character.
In some embodiments, the coding subunit comprises any one of:
the fixed-length coding subunit is configured to perform zero-width character coding on the second character string based on a fixed-length coding mode to obtain the target character string;
and a variable length coding subunit configured to perform zero-width character coding on the second character string based on the variable length coding mode to obtain the target character string.
In some embodiments, the fixed length coding subunit is configured to perform:
determining a zero-width character corresponding to at least one second character based on the at least one second character included in the second character string and second relation data, wherein the second relation data comprises a mapping relation between the second character and the zero-width character;
And converting the second character string into the target character string based on the zero width character corresponding to the at least one second character.
In some embodiments, the variable length coding subunit is configured to perform:
determining a zero-width character corresponding to at least one second character based on the at least one second character included in the second character string and second relation data;
determining zero-width characters corresponding to the separators based on the second relation data, wherein the second relation data comprises the second characters, the mapping relation between the separators and the zero-width characters;
and converting the second character string into the target character string based on the zero-width character corresponding to the at least one second character and the zero-width character corresponding to the separator.
It should be noted that: in the command display device provided in the above embodiment, when displaying commands, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the command display device and the command display method embodiment provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and are not repeated herein.
In an exemplary embodiment, a computer device is provided that includes one or more processors, a memory storing program code executable by the processors, wherein the processors are configured to execute the program code to implement the command display method described above.
In some embodiments, the computer device mentioned in the embodiments of the present disclosure may be provided as a terminal. Fig. 9 shows a block diagram of a terminal 900 provided by an exemplary embodiment of the present disclosure. The terminal 900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 900 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the terminal 900 includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 901 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Progra mmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 901 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 901 may integrate a GPU (Graphics Processing Unit, image processor) for taking care of rendering and drawing of content that the display screen needs to display. In some embodiments, the processor 901 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 902 is used to store at least one program code for execution by processor 901 to implement processes performed by a terminal in a command display method provided by a method embodiment in the present disclosure.
In some embodiments, the terminal 900 may further optionally include: a peripheral interface 903, and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 903 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 904, a display 905, a camera assembly 906, audio circuitry 907, a positioning assembly 908, and a power source 909.
The peripheral interface 903 may be used to connect at least one peripheral device associated with an I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 901, the memory 902, and the peripheral interface 903 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 904 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 904 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 904 may also include NFC (Near Field Communication, short range wireless communication) related circuitry, which is not limited by the present disclosure.
The display 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 905 is a touch display, the display 905 also has the ability to capture touch signals at or above the surface of the display 905. The touch signal may be input as a control signal to the processor 901 for processing. At this time, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one and disposed on the front panel of the terminal 900; in other embodiments, the display 905 may be at least two, respectively disposed on different surfaces of the terminal 900 or in a folded design; in other embodiments, the display 905 may be a flexible display disposed on a curved surface or a folded surface of the terminal 900. Even more, the display 905 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 905 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 906 is used to capture images or video. Optionally, the camera assembly 906 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be plural and disposed at different portions of the terminal 900. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 907 may also include a headphone jack.
The location component 908 is used to locate the current geographic location of the terminal 900 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 908 may be a positioning component based on the United states GPS (Global Positioning Sy stem ), the Beidou system of China, the Granati system of Russia, or the Galileo system of the European Union.
The power supply 909 is used to supply power to the various components in the terminal 900. The power supply 909 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 909 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 900 can further include one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyroscope sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 900. For example, the acceleration sensor 911 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 901 may control the display 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 911. The acceleration sensor 911 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the terminal 900, and the gyro sensor 912 may collect a 3D motion of the user on the terminal 900 in cooperation with the acceleration sensor 911. The processor 901 may implement the following functions according to the data collected by the gyro sensor 912: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 913 may be provided at a side frame of the terminal 900 and/or at a lower layer of the display 905. When the pressure sensor 913 is provided at a side frame of the terminal 900, a grip signal of the user to the terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 913. When the pressure sensor 913 is provided at the lower layer of the display 905, the processor 901 performs control of the operability control on the UI interface according to the pressure operation of the user on the display 905. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 914 is used for collecting the fingerprint of the user, and the processor 901 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 914 may be provided on the front, back, or side of the terminal 900. When a physical key or a vendor Logo is provided on the terminal 900, the fingerprint sensor 914 may be integrated with the physical key or the vendor Logo.
The optical sensor 915 is used to collect the intensity of ambient light. In one embodiment, the processor 901 may control the display brightness of the display panel 905 based on the intensity of ambient light collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display luminance of the display screen 905 is turned up; when the ambient light intensity is low, the display luminance of the display panel 905 is turned down. In another embodiment, the processor 901 may also dynamically adjust the shooting parameters of the camera assembly 906 based on the ambient light intensity collected by the optical sensor 915.
A proximity sensor 916, also referred to as a distance sensor, is typically provided on the front panel of the terminal 900. Proximity sensor 916 is used to collect the distance between the user and the front of terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the terminal 900 gradually decreases, the processor 901 controls the display 905 to switch from the bright screen state to the off screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal 900 gradually increases, the processor 901 controls the display 905 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 9 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
In some embodiments, the computer device mentioned in the embodiments of the present disclosure may be provided as a server. Fig. 10 is a block diagram illustrating a server 1000 according to an exemplary embodiment, which may be relatively different due to configuration or performance, may include one or more processors (Central Processing Units, CPU) 1001 and one or more memories 1002, wherein at least one program code is stored in the one or more memories 1002, and the at least one program code is loaded and executed by the one or more processors 1001 to implement the processes performed by the server in the command display method provided in the above-described respective method embodiments. Of course, the server 1000 may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a computer readable storage medium is also provided, such as a memory 1002 including program code executable by the processor 1001 of the server 1000 to perform the above-described command display method. Alternatively, the computer readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory ), a CD-ROM (Compact-Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program which, when executed by a processor, implements the command display method described above.
In some embodiments, the computer program related to the embodiments of the present disclosure may be deployed to be executed on one computer device or on multiple computer devices located at one site, or alternatively, may be executed on multiple computer devices distributed across multiple sites and interconnected by a communication network, where the multiple computer devices distributed across multiple sites and interconnected by a communication network may constitute a blockchain system.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (24)

1. A command display method, the method comprising:
receiving a target information command sent by a first object, wherein the target information command comprises a target character string and first prompt information, the target character string is used for indicating event information of a target sharing event, and the first prompt information is used for prompting that the target sharing event is triggered to be executed based on the target information command;
displaying first prompt information in the target information command in a display interface of a second object;
triggering and executing the target sharing event based on the first prompt information;
the generation process of the target information command comprises the following steps:
based on a command encoding rule, event information of the target sharing event is encoded to obtain an initial information command corresponding to the target sharing event, and the initial information command of the target sharing event is encrypted; determining telegram characters corresponding to at least one first character based on at least one first character included in a first character string in the encrypted initial information command and first relation data, wherein the first relation data comprises a mapping relation between the first character and the telegram characters, and the first relation data is generated based on the use frequency of each first character; based on telegram characters corresponding to the at least one first character, converting the first character string into a character string after telegram character coding, determining the character string after telegram character coding as a second character string, and performing zero width character coding on the second character string to obtain a target character string; and generating the target information command based on the target character string and the first prompt information.
2. The command display method of claim 1, wherein the triggering execution of the target sharing event based on the first hint information comprises:
responding to the copying operation of the displayed first prompt information, and acquiring the first prompt information and the target character string;
and responding to the starting operation of the application program corresponding to the target information command, displaying an information interface corresponding to the target information command, wherein the information interface is used for displaying content information associated with the target sharing event.
3. The command display method according to claim 2, wherein the displaying the information interface corresponding to the target information command in response to a start operation of the application corresponding to the target information command includes:
and responding to the starting operation of the application program corresponding to the target information command, and jumping from an initial interface of the application program to an information interface corresponding to the target information command.
4. A command display method according to claim 3, wherein before the jump from the initial interface of the application program to the information interface corresponding to the target information command, the method further comprises:
And responding to the starting operation of the application program corresponding to the target information command, and displaying second prompt information of the target sharing event in an initial interface of the application program, wherein the second prompt information is used for prompting that the user is about to jump to an information interface corresponding to the target information command.
5. The method according to claim 4, wherein after the response to the start operation of the application program corresponding to the target information command, in the initial interface of the application program, displaying the second prompt information of the target sharing event, the method further comprises:
and executing the step of jumping from the initial interface of the application program to the information interface corresponding to the target information command in response to the display time of the second prompt message reaching the target time.
6. The command display method of claim 1, wherein the first prompt message is a text prompt message with fixed content.
7. The command display method according to any one of claims 1 to 6, wherein the display interface is any one of a session interface for displaying a session record between the first object and the second object, a dynamic interface for displaying dynamic information published by at least one object having a social relationship with the second object, and a recommendation interface for displaying at least one recommended dynamic information.
8. A command display method, the method comprising:
receiving a command generation request sent by a first object, wherein the command generation request is used for requesting to generate an information command corresponding to a target sharing event;
based on a command encoding rule, event information of the target sharing event is encoded to obtain an initial information command corresponding to the target sharing event, and the initial information command of the target sharing event is encrypted;
determining telegram characters corresponding to at least one first character based on at least one first character included in a first character string in the encrypted initial information command and first relation data, wherein the first relation data comprises a mapping relation between the first character and the telegram characters, and the first relation data is generated based on the use frequency of each first character;
based on telegram characters corresponding to the at least one first character, converting the first character string into a character string after telegram character coding, determining the character string after telegram character coding as a second character string, and performing zero width character coding on the second character string to obtain a target character string;
Generating a target information command based on the target character string and first prompt information, wherein the target information command comprises a target character string and first prompt information, the target character string is used for indicating event information of the target sharing event, and the first prompt information is used for prompting that the target sharing event is triggered to be executed based on the target information command;
and sending the target information command to the first object, wherein when the target information command is displayed, first prompt information in the target information command is displayed.
9. The command display method according to claim 8, wherein the performing zero-width character encoding on the second character string to obtain the target character string includes any one of:
performing zero width character encoding on the second character string based on a fixed length encoding mode to obtain the target character string;
and performing zero-width character encoding on the second character string based on a variable length encoding mode to obtain the target character string.
10. The command display method according to claim 9, wherein the performing zero-width character encoding on the second character string based on the fixed-length encoding manner to obtain the target character string includes:
Determining a zero-width character corresponding to at least one second character based on at least one second character included in the second character string and second relation data, wherein the second relation data comprises a mapping relation between the second character and the zero-width character;
and converting the second character string into the target character string based on the zero width character corresponding to the at least one second character.
11. The command display method according to claim 9, wherein the performing zero-width character encoding on the second character string based on the variable length encoding method to obtain the target character string includes:
determining zero-width characters corresponding to at least one second character based on the at least one second character included in the second character string and second relation data;
determining zero-width characters corresponding to the separators based on the second relation data, wherein the second relation data comprises the second characters, the mappings between the separators and the zero-width characters;
and converting the second character string into the target character string based on the zero-width character corresponding to the at least one second character and the zero-width character corresponding to the separator.
12. A command display device, the device comprising:
The receiving unit is configured to execute and receive a target information command sent by a first object, wherein the target information command comprises a target character string and first prompt information, the target character string is used for indicating event information of a target sharing event, and the first prompt information is used for prompting that the target sharing event is triggered to be executed based on the target information command;
a display unit configured to display first prompt information in the target information command in a display interface of a second object;
the triggering unit is configured to trigger the target sharing event to be executed based on the first prompt information;
the target information command is generated by a first server, and the first server is used for encoding event information of the target sharing event based on a command encoding rule, obtaining an initial information command corresponding to the target sharing event, and encrypting the initial information command of the target sharing event; determining telegram characters corresponding to at least one first character based on at least one first character included in a first character string in the encrypted initial information command and first relation data, wherein the first relation data comprises a mapping relation between the first character and the telegram characters, and the first relation data is generated based on the use frequency of each first character; based on telegram characters corresponding to the at least one first character, converting the first character string into a character string after telegram character coding, determining the character string after telegram character coding as a second character string, and performing zero width character coding on the second character string to obtain a target character string; and generating the target information command based on the target character string and the first prompt information.
13. The command display device of claim 12, wherein the trigger unit comprises:
an acquisition subunit configured to perform a copy operation in response to the displayed first hint information, to acquire the first hint information and the target string;
and the display subunit is configured to execute a starting operation of an application program corresponding to the target information command, display an information interface corresponding to the target information command, and display content information associated with the target sharing event.
14. The command display device of claim 13, wherein the display subunit is configured to perform:
and responding to the starting operation of the application program corresponding to the target information command, and jumping from an initial interface of the application program to an information interface corresponding to the target information command.
15. The command display device of claim 14, wherein the display subunit is further configured to perform:
and responding to the starting operation of the application program corresponding to the target information command, and displaying second prompt information of the target sharing event in an initial interface of the application program, wherein the second prompt information is used for prompting that the user is about to jump to an information interface corresponding to the target information command.
16. The command display device of claim 15, wherein the display subunit is further configured to perform:
and executing the step of jumping from the initial interface of the application program to the information interface corresponding to the target information command in response to the display time of the second prompt message reaching the target time.
17. The command display device of claim 12, wherein the first prompt is a text prompt with a fixed content.
18. The command display device according to any one of claims 12 to 17, wherein the display interface is any one of a session interface for displaying a session record between the first object and the second object, a dynamic interface for displaying dynamic information published by at least one object having a social relationship with the second object, and a recommendation interface for displaying at least one recommended dynamic information.
19. A command display device, the device comprising:
the receiving unit is configured to execute a command generation request sent by the first object, wherein the command generation request is used for requesting to generate an information command corresponding to the target sharing event;
The generating unit is configured to execute command encoding rules to encode event information of the target sharing event to obtain an initial information command corresponding to the target sharing event; determining telegram characters corresponding to at least one first character based on at least one first character included in a first character string in the initial information command and first relation data, wherein the first relation data comprises a mapping relation between the first character and the telegram characters, and the first relation data is generated based on the use frequency of each first character; based on telegram characters corresponding to the at least one first character, converting the first character string into a character string after telegram character coding, determining the character string after telegram character coding as a second character string, and performing zero width character coding on the second character string to obtain a target character string; generating a target information command based on the target character string and first prompt information, wherein the target information command comprises a target character string and first prompt information, the target character string is used for indicating event information of the target sharing event, and the first prompt information is used for prompting that the target sharing event is triggered to be executed based on the target information command;
And a transmitting unit configured to perform transmitting the target information command to the first object, wherein when the target information command is displayed, first prompt information in the target information command is displayed.
20. The command display device of claim 19, wherein the generation unit comprises a coding subunit comprising any one of:
a fixed-length coding subunit configured to perform zero-width character coding on the second character string based on a fixed-length coding mode to obtain the target character string;
and the variable length coding subunit is configured to perform zero-width character coding on the second character string based on a variable length coding mode to obtain the target character string.
21. The command display device of claim 20, wherein the fixed length coding subunit is configured to perform:
determining a zero-width character corresponding to at least one second character based on at least one second character included in the second character string and second relation data, wherein the second relation data comprises a mapping relation between the second character and the zero-width character;
And converting the second character string into the target character string based on the zero width character corresponding to the at least one second character.
22. The command display device of claim 20, wherein the variable length coding subunit is configured to perform:
determining zero-width characters corresponding to at least one second character based on the at least one second character included in the second character string and second relation data;
determining zero-width characters corresponding to the separators based on the second relation data, wherein the second relation data comprises the second characters, the mappings between the separators and the zero-width characters;
and converting the second character string into the target character string based on the zero-width character corresponding to the at least one second character and the zero-width character corresponding to the separator.
23. A computer device, the computer device comprising:
one or more processors;
a memory for storing the processor-executable program code;
wherein the processor is configured to execute the program code to implement the command display method of any one of claims 1 to 11.
24. A computer readable storage medium, characterized in that program code in the computer readable storage medium, when executed by a processor of a computer device, enables the computer device to perform the command display method according to any one of claims 1 to 11.
CN202210094373.4A 2022-01-26 2022-01-26 Command display method, device, computer equipment and medium Active CN114448928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210094373.4A CN114448928B (en) 2022-01-26 2022-01-26 Command display method, device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210094373.4A CN114448928B (en) 2022-01-26 2022-01-26 Command display method, device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN114448928A CN114448928A (en) 2022-05-06
CN114448928B true CN114448928B (en) 2023-12-19

Family

ID=81370706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210094373.4A Active CN114448928B (en) 2022-01-26 2022-01-26 Command display method, device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN114448928B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995804A (en) * 2017-12-29 2019-07-09 腾讯科技(深圳)有限公司 Display methods, information providing method and the device of target resource information
CN110290146A (en) * 2019-07-03 2019-09-27 北京达佳互联信息技术有限公司 Share generation method, device, server and the storage medium of password
CN111368232A (en) * 2020-02-28 2020-07-03 北京达佳互联信息技术有限公司 Password sharing reflux method and device, electronic equipment and storage medium
CN111494965A (en) * 2020-04-15 2020-08-07 腾讯科技(深圳)有限公司 Information processing method, device, equipment and storage medium
CN111538923A (en) * 2020-03-16 2020-08-14 北京三快在线科技有限公司 Information source determining method and device and electronic equipment
CN111638978A (en) * 2020-05-20 2020-09-08 北京达佳互联信息技术有限公司 Content sharing method and device
CN113727335A (en) * 2021-08-27 2021-11-30 支付宝(杭州)信息技术有限公司 Sharing processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995804A (en) * 2017-12-29 2019-07-09 腾讯科技(深圳)有限公司 Display methods, information providing method and the device of target resource information
CN110290146A (en) * 2019-07-03 2019-09-27 北京达佳互联信息技术有限公司 Share generation method, device, server and the storage medium of password
CN111368232A (en) * 2020-02-28 2020-07-03 北京达佳互联信息技术有限公司 Password sharing reflux method and device, electronic equipment and storage medium
CN111538923A (en) * 2020-03-16 2020-08-14 北京三快在线科技有限公司 Information source determining method and device and electronic equipment
CN111494965A (en) * 2020-04-15 2020-08-07 腾讯科技(深圳)有限公司 Information processing method, device, equipment and storage medium
CN111638978A (en) * 2020-05-20 2020-09-08 北京达佳互联信息技术有限公司 Content sharing method and device
CN113727335A (en) * 2021-08-27 2021-11-30 支付宝(杭州)信息技术有限公司 Sharing processing method and device

Also Published As

Publication number Publication date
CN114448928A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN110290146B (en) Method and device for generating shared password, server and storage medium
CN110061900B (en) Message display method, device, terminal and computer readable storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN110493626B (en) Video data processing method and device
CN112788359B (en) Live broadcast processing method and device, electronic equipment and storage medium
US20140282204A1 (en) Key input method and apparatus using random number in virtual keyboard
CN112764608B (en) Message processing method, device, equipment and storage medium
CN112583806B (en) Resource sharing method, device, terminal, server and storage medium
CN110740340A (en) Video live broadcast method and device and storage medium
CN110750734A (en) Weather display method and device, computer equipment and computer-readable storage medium
CN111628925B (en) Song interaction method, device, terminal and storage medium
CN111669640B (en) Virtual article transfer special effect display method, device, terminal and storage medium
CN113609358B (en) Content sharing method, device, electronic equipment and storage medium
CN117215990A (en) Inter-core communication method and device of multi-core chip and multi-core chip
CN114816600B (en) Session message display method, device, terminal and storage medium
CN113485596B (en) Virtual model processing method and device, electronic equipment and storage medium
CN114448928B (en) Command display method, device, computer equipment and medium
CN113204724B (en) Method, device, electronic equipment and storage medium for creating interaction information
CN113727124B (en) Live broadcast processing method and device, electronic equipment and storage medium
CN114826799B (en) Information acquisition method, device, terminal and storage medium
CN111399797B (en) Voice message playing method and device, electronic equipment and storage medium
CN114100121A (en) Operation control method, device, equipment, storage medium and computer program product
CN110968549B (en) File storage method, device, electronic equipment and medium
CN112311652A (en) Message sending method, device, terminal 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