CN112631812A - Identification setting method and device, electronic equipment and storage medium - Google Patents

Identification setting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112631812A
CN112631812A CN202011636154.1A CN202011636154A CN112631812A CN 112631812 A CN112631812 A CN 112631812A CN 202011636154 A CN202011636154 A CN 202011636154A CN 112631812 A CN112631812 A CN 112631812A
Authority
CN
China
Prior art keywords
unread
micro application
terminal
micro
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011636154.1A
Other languages
Chinese (zh)
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.)
Tianjin Zhongxin Zhiguan Information Technology Co ltd
Tianjin Meiteng Technology Co Ltd
Original Assignee
Tianjin Zhongxin Zhiguan Information Technology Co ltd
Tianjin Meiteng 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 Tianjin Zhongxin Zhiguan Information Technology Co ltd, Tianjin Meiteng Technology Co Ltd filed Critical Tianjin Zhongxin Zhiguan Information Technology Co ltd
Priority to CN202011636154.1A priority Critical patent/CN112631812A/en
Publication of CN112631812A publication Critical patent/CN112631812A/en
Pending legal-status Critical Current

Links

Images

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an identification setting method, an identification setting device, electronic equipment and a storage medium, wherein the method is applied to a primary end, at least one micro application end is embedded in the primary end, and the method comprises the following steps: a primary terminal acquires a message event of a micro application terminal and determines the quantity of unread messages of the micro application terminal based on the message event; setting the information unread identification of the micro application end for the native end based on the quantity of the unread messages so as to realize that the information unread identification of the micro application end can be set at the native end, so that a user can timely and visually check the unread information of the micro application end embedded in the native end at the native end, the problem that the user misses the unread message of the micro application end embedded in the native end is avoided, and the user experience is improved.

Description

Identification setting method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of mobile communication, in particular to an identification setting method and device, electronic equipment and a storage medium.
Background
With the continuous development of computer technology, a plurality of application programs in the mobile terminal can receive a lot of messages, in order to remind a user to check the messages and visually know the number of the messages, a corner mark is displayed on a shortcut icon of the application program on a desktop of a mobile phone operating system, and the unread message number of the application program is displayed by the corner mark.
But for the micro-application nested in the native end, the unread information in the micro-application can be obtained only by entering the micro-application, and the prompt effect is poor.
Disclosure of Invention
The invention provides an identification setting method, an identification setting device, electronic equipment and a storage medium, which are used for setting an unread information identification of a micro application end at an original end, so that a user can visually check the unread information of the micro application end embedded in the original end in time, the problem that the user misses the unread information of the micro application end embedded in the original end is avoided, and the user experience is improved.
In a first aspect, an embodiment of the present invention provides an identifier setting method, where the method is applied to a native end, where at least one micro application end is embedded in the native end, and the method includes:
a primary terminal acquires a message event of a micro application terminal and determines the quantity of unread messages of the micro application terminal based on the message event;
and setting the information unread identification of the micro application terminal for the native terminal based on the number of the unread messages.
In a second aspect, an embodiment of the present invention further provides an identifier setting apparatus, where the apparatus is disposed at a native end, and at least one micro application end is embedded in the native end, and the apparatus includes:
the unread message quantity determining module is used for acquiring the message event of the micro application terminal by the primary terminal and determining the unread message quantity of the micro application terminal based on the message event;
and the information unread identifier setting module is used for setting the information unread identifier of the micro application terminal for the native terminal based on the number of the unread messages.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement an identity setting method as provided by any of the embodiments of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the identifier setting method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the message event of the micro application end is obtained through the primary end, the unread message quantity of the micro application end is determined according to the message event, the unread information identifier of the micro application end can be set for the primary end according to the unread message quantity, so that the unread information identifier of the micro application end can be set for the primary end, a user can check the unread information of the micro application end embedded in the primary end in time and intuitively, the problem that the user misses the unread message of the micro application end embedded in the primary end is avoided, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a flowchart of an identifier setting method according to an embodiment of the present invention;
fig. 2 is a flowchart of an identifier setting method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an identifier setting method according to a third embodiment of the present invention;
fig. 4 is an execution flowchart of an identifier setting method provided in the third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an identifier setting apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an identifier setting method according to an embodiment of the present invention, where the embodiment of the present invention is applicable to a native terminal, and at least one micro application terminal may be embedded in the native terminal. The embodiment of the invention can be suitable for the condition that the information unread identification of the micro application end is arranged at the native end embedded into the micro application end. The method may be performed by an identity arrangement means, which may be implemented by means of software and/or hardware. As shown in fig. 1, the method specifically includes the following steps:
s110, the native terminal acquires the message events of the micro application terminal and determines the quantity of the unread messages of the micro application terminal based on the message events.
Illustratively, the native peer may be an native application peer, e.g., may be a master application peer. The micro application end may be an application end embedded in the native end.
Describing the corresponding relation between the native terminal and the micro application terminal by a specific scene:
taking the native end as the wechat, the micro application end may be an applet in the wechat, but it should be noted that the applet does not have a corresponding application end. For example, in practical application, small programs such as the Jingdong, Taobao and Shuduo can be opened in WeChat, but the Jingdong, Taobao and Shuduo have application programs of their own. However, the micro application end in the embodiment of the invention has no application program of the micro application end, and can only be used as a micro application end embedded in the native end.
The message event can be an event triggered when the message state in the micro application terminal changes. The number of unread messages may be the number of messages that have not been read by the user among all messages on the micro application side.
In this embodiment of the present invention, the message event may be a message receiving event, that is, when it is detected that a message is sent from the micro application, the state of the message in the micro application is changed (that is, the message is changed from not having the message originally to having the message), so as to form the message receiving event.
In this embodiment, no long link is provided between the micro application end and the micro application server, and the main application server and the native end are provided with a long link. When the micro application server determines that the message event exists, the main application server pushes the message event to the native terminal of the mobile terminal through the long link, and the native terminal receives the message event pushed by the main application server.
And when the message event is a message receiving event, monitoring the message receiving event in the micro application terminal, and determining the current unread message quantity of the micro application terminal based on the detected message receiving event.
Specifically, taking the micro application end as the mailbox as an example, the native end receives the message event, which may be that the native end triggers the micro application end to acquire the unread messages and the number of the unread messages, or that the native end determines the number of the unread messages of the micro application end based on the message event.
When the message event is a message receiving event, the message receiving event in the micro application terminal is monitored, and the number of unread messages in the current micro application terminal can be determined based on the detected message reading event. Specifically, for example, when an unread mail in a current mailbox is read, the mail generates an event monitor, which can monitor that the unread mail is read, and according to the monitored message read event, the state of the unread mail that is newly read can be determined, and according to the state of the unread mail that is newly read, the number of unread messages in the current mailbox can be determined.
And S120, setting the information unread identification of the micro application terminal for the native terminal based on the number of the unread messages.
For example, the information unread flag may be an unread flag of an unread message in the micro application, which is set at the native end.
The unread message identifier may be any identifier that can indicate that the micro-application has an unread message, and may be, for example, a dot identifier.
The information unread identification of the micro application end can be set for the native end according to the quantity of the unread messages, and the setting has the advantages that the information unread identification of the micro application end can be set for the native end, so that a user can visually check the unread information of the micro application end embedded in the native end in time, the problem that the user misses the unread message of the micro application end embedded in the native end is avoided, and the user experience is improved.
It should be noted that, in the embodiment of the present invention, at least one micro application end may be embedded in the native end, and when at least two micro application ends are embedded in the native end, different information unread identifiers may be set in the native end for different micro application ends because different micro application ends may have unread messages respectively. Optionally, the information unread identifiers of different micro applications can be distinguished based on at least one of color, size, and image.
Specifically, for example, if 3 different micro application terminals, namely the micro application terminal a and the micro application terminal C of the micro application terminal B, are embedded in the native terminal, when the 3 micro application terminals respectively have unread messages, different information unread identifiers may be respectively set at the native terminal for the 3 micro application terminals, for example, the information unread message identifier of the micro application terminal a may be set to be a circle at the native terminal, the information unread message identifier of the micro application terminal B may be set to be a square, and the information unread message identifier of the micro application terminal C may be set to be a pentagon.
Specifically, the information unread marks of the micro application terminals can be distinguished by using different colors of the same shape, and the information unread marks of the micro application terminals can be distinguished by using the same shape of different sizes. The unread information identifier of each micro application terminal can be distinguished by using any combination of colors, sizes and images, and the unread information identifier can be set by a user according to the needs of the user and is not limited here.
Therefore, different information unread marks are set at the original end aiming at different micro application ends, so that the individual requirements of users can be met, and the user experience is improved.
According to the technical scheme of the embodiment of the invention, the message event of the micro application end is obtained through the primary end, the unread message quantity of the micro application end is determined according to the message event, the unread information identifier of the micro application end can be set for the primary end according to the unread message quantity, so that the unread information identifier of the micro application end can be set for the primary end, a user can check the unread information of the micro application end embedded in the primary end in time and intuitively, the problem that the user misses the unread message of the micro application end embedded in the primary end is avoided, and the user experience is improved.
Example two
Fig. 2 is a flowchart of an identifier setting method according to a second embodiment of the present invention, and the technical solutions according to the second embodiment of the present invention may be combined with the technical solutions according to the above embodiments of the present invention. On the basis of the above embodiments of the present invention, optionally, the setting of the information unread identifier of the micro application terminal for the native terminal based on the number of unread messages includes: setting a first information unread identifier of a micro application terminal at a preset site of a display page of a native terminal; and/or setting a second information unread identifier of the micro application terminal on the desktop icon of the native terminal.
Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted. Referring to fig. 2, the identifier setting method provided in this embodiment includes:
s210, the native terminal acquires the message events of the micro application terminal and determines the quantity of the unread messages of the micro application terminal based on the message events.
S220, setting a first information unread identifier of the micro application terminal at a preset position of a display page of the native terminal; and/or setting a second information unread identifier of the micro application terminal on the desktop icon of the native terminal.
For example, the preset site may be any site previously set on the display page of the native terminal. For example, taking the native end as the WeChat as an example, the preset location may be any position to the left of the control representing the search of the WeChat after entering the WeChat page.
It should be noted that the specific position of the specific preset point may be set according to the user's requirement, and is not limited herein as long as it is on the display page of the native end.
The first information unread flag may be an information unread flag of a micro application terminal set at a preset position of a display page of the native terminal. The second information unread identifier may be an information unread identifier of the micro application terminal set on the desktop icon of the native terminal. For example, taking the native terminal as the wechat, the second information unread identifier may be an information unread identifier of the wechat terminal displayed on an icon of the wechat, that is, a shortcut icon of the wechat on the desktop.
It should be noted that, when at least two micro application terminals are embedded in the native terminal, different first information unread identifiers may be set at the preset location of the display page of the native terminal for different micro application terminals because different micro application terminals may have unread messages respectively; and/or different second information unread marks are set on the desktop icon of the native terminal aiming at different micro application terminals.
It should be noted that, in the embodiment of the present invention, the unread flag may be distinguished for different first information based on at least one of color, size, and image. Likewise, the identification for the different second information may also be distinguished based on at least one of color, size and image.
It should be noted that, for example, to avoid memory confusion of a user caused by too many unread information identifiers, it may be preferable that, for an unread information identifier of the same app, the unread first information identifier set at a preset position on a display page of the native peer is consistent with the unread second information identifier of the app set on a desktop icon of the native peer.
It should be noted that the first information unread flag and the second information unread flag include the number of unread messages. That is, the number of unread messages of the corresponding micro application terminal may also be displayed in the first information unread flag and the second information unread flag. The number of unread messages herein may be specifically expressed by arabic numerals.
Setting a first information unread identifier of a micro application terminal at a preset site of a display page of a native terminal; and/or the second information unread identification of the micro application end is arranged on the desktop icon of the original end, so that the setting has the advantages that the unread information of the micro application end can be known visually through the desktop icon of the original end and/or the display page of the original end, the problem that a user misses the unread information of the micro application end embedded into the original end is avoided, and the user experience is improved.
By including the number of the unread messages in the first information unread identifier and the second information unread identifier, the setting has the advantages that the number of the unread messages of the micro application terminal can be intuitively known by a user, and the user experience is improved.
According to the technical scheme of the embodiment of the invention, a first information unread identifier of a micro application terminal is set at a preset position of a display page of a native terminal; and/or the second information unread identification of the micro application end is arranged on the desktop icon of the native end, so that the desktop icon of the native end can be visually passed through, and/or the unread message of the micro application end can be known through the display page of the native end, the problem that a user misses the unread message of the micro application end embedded in the native end is avoided, and the user experience is improved.
EXAMPLE III
Fig. 3 is a flowchart of an identifier setting method provided in the third embodiment of the present invention, and the technical solution of the third embodiment of the present invention may be combined with the technical solutions of the above embodiments of the present invention. On the basis of the foregoing embodiments of the present invention, optionally, the determining the number of unread messages of the micro application based on the message event includes: when the micro application terminal is in a running state, triggering the micro application terminal to call a preset protocol interface to acquire an unread message corresponding to a message event; and receiving the quantity of the unread messages fed back by the micro application terminal. The determining the number of unread messages of the micro application terminal based on the message event comprises the following steps: and when the micro application terminal is in a non-running state, polling the interface of the target micro application to acquire the quantity of the unread messages fed back by the interface of the target micro application.
Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted. Referring to fig. 3, the information interaction method provided in this embodiment includes:
s310, the native terminal acquires the message event of the micro application terminal.
S320, when the micro application terminal is in the running state, triggering the micro application terminal to call a preset protocol interface to acquire an unread message corresponding to the message event; and receiving the quantity of the unread messages fed back by the micro application terminal.
For example, the micro-application being in a running state may be the micro-application being in a state of being opened, i.e., the user clicks into the micro-application, having a display page of the micro-application. The micro application end is in a running state, namely the micro application end is in a background running state, namely the micro application end is clicked by a user before and then is exited again later, but the micro application end is not completely exited, but the micro application end is placed in a background running state.
The preset protocol interface may be a preset protocol interface between the Native end And the backend server, And optionally, the preset protocol interface may be a WNSDK (Web independent Software Development Kit, an interaction interface set between a H5 page And the Native page) interaction protocol interface, where it needs to be noted that the micro application end is a micro application end developed based on an H5 page.
It should be noted that the background server may be a server for sending a message event to the micro application, for example, a server in the background.
When the micro application end is in the running state, the micro application end can be triggered to call a preset protocol interface to acquire the unread message corresponding to the message event, specifically, the specific content of the unread message corresponding to the message event can be acquired, and then the number of the unread messages fed back by the micro application end can be received according to the acquired unread message.
It should be noted that, in the embodiment of the present invention, referring to the execution flowchart of the identifier setting method described in fig. 4, before the message event is obtained, the native terminal and the background server are in a long link relationship, but the micro application terminal does not establish a long link relationship with the background server.
According to the long-chain connection relation, the primary end can receive a message event sent by the background server to the micro application end, the running state of the micro application end corresponding to the message event is judged according to the received message event, if the micro application end corresponding to the message event is in the running state, the micro application end can be triggered to call a preset protocol interface (specifically, a WNSDK interaction protocol interface) to obtain an unread message corresponding to the message event, specifically, the specific content of the unread message corresponding to the message event can be obtained, and then the quantity of the unread messages fed back by the micro application end can be received according to the obtained unread message. When the unread message number fed back by the micro application terminal is received, the information unread identifier and the unread message number can be correspondingly set at the native terminal (specifically, the information unread identifier and the unread message number can be set at a preset position of a display page of the native terminal and/or on a desktop icon of the native terminal).
It should be noted that, in fig. 4, when it is determined that the micro application is in the running state, the content of the unread message may be directly acquired according to the preset protocol interface. Meanwhile, the quantity of unread messages can be acquired.
S330, when the micro application terminal is in a non-running state, polling the interface of the target micro application to acquire the quantity of the unread messages fed back by the interface of the target micro application.
For example, the target micro application may be a micro application end corresponding to the message event sent by the background server, that is, the message event sent by the background server is specifically sent to which micro application end.
The state of the micro application end in the non-running state may be a state of the micro application end not being run, that is, the micro application end is not opened, and is not in a background running state.
When the micro application terminal is in a non-running state, the interface of the target micro application can be polled to obtain the quantity of unread messages fed back by the interface of the target micro application.
It should be noted that the interface of the target micro application herein may be the interface of the target micro application and the background server.
Continuing to refer to fig. 4, according to the long chain connection relationship, the native terminal may receive a message event sent by the background server to the micro application terminal, determine the operating state of the micro application terminal corresponding to the message event according to the received message event, and if the micro application terminal corresponding to the message event is in the non-operating state, may poll the interface of the target micro application to obtain the number of unread messages fed back by the interface of the target micro application. When the unread message number fed back by the micro application terminal is received, the information unread identifier and the unread message number can be correspondingly set at the native terminal (specifically, the information unread identifier and the unread message number can be set at a preset position of a display page of the native terminal and/or on a desktop icon of the native terminal).
It should be noted that, in fig. 4, when it is determined that the micro application end is in the non-operating state, the number of unread messages may be obtained according to the interface of the target micro application, but the specific content of the unread messages cannot be obtained.
Therefore, the number of the unread messages fed back by the micro application end is correspondingly obtained by judging whether the micro application end is in the running state or not, and the method has the advantages that the number of the unread messages of the micro application end can be obtained no matter whether the micro application end is in the running state or not, the purpose that a user obtains the number of the unread messages of the micro application end is guaranteed, and user experience is improved.
Optionally, the method further includes: when the micro application terminal is switched from the non-running state to the running state, the micro application terminal is triggered to call a preset protocol interface to obtain the unread messages corresponding to the message events, the number of the unread messages sent by the micro application terminal is obtained, and the number of the original unread messages is updated based on the number of the unread messages.
Illustratively, when the micro application terminal is switched from the non-operating state to the operating state, the micro application terminal can call a preset protocol interface to obtain the specific content of the unread message corresponding to the message event according to the trigger, obtain the number of the unread messages sent by the micro application terminal, and update the number of the unread messages according to the number of the unread messages.
Specifically, for example, the number of the original unread messages is 3, and when a message event is received, specifically, the message event may be a message receiving event, that is, the micro application receives a new message, specifically, 2 new messages are received. If the current micro application end is in the running state, the specific content of the unread message corresponding to the message receiving event can be obtained by calling the preset protocol interface according to the trigger micro application end, the number (2 pieces) of the unread message fed back by the micro application end can be obtained, and the number of the original unread message is updated according to the number of the unread message, namely, the number of the original unread message is updated to be 5 pieces.
It should be noted that, as shown in fig. 4, after the original unread message number is updated, the information unread flag and the unread message number of the unread message may also be updated at the native end correspondingly.
In the embodiment of the present invention, the micro application end may also be configured to monitor a message reading event, that is, when it is monitored that a message is read in the micro application end, the state of the unread message in the micro application end changes (i.e., the original unread state changes into a read state), so as to form a message reading event. And sending a message reading signal to the native terminal based on the message reading event, and updating the prompt identifier of the micro application terminal by the native terminal according to the message reading signal sent by the micro application terminal.
In the embodiment of the present invention, after the number of unread messages of the target micro application is obtained through the interface of the target micro application when the micro application is determined to be in the non-running state, and when the micro application is switched from the non-running state to the running state, the micro application may call the preset protocol interface according to the trigger to obtain the specific content of the unread messages corresponding to the message events, and obtain the number of the unread messages sent by the micro application again. The number of the unread messages acquired again can be compared with the number of the unread messages acquired before to see whether the unread messages are consistent or not, so that the situation that the number of the unread messages acquired twice is not equal to that of the unread messages of the micro application end is avoided, and the accuracy of the number of the unread messages of the micro application end is improved.
When the micro application terminal is switched from the non-running state to the running state, the micro application terminal is triggered to call the preset protocol interface to obtain the unread messages corresponding to the message events, the number of the unread messages sent by the micro application terminal is obtained, and the number of the original unread messages is updated based on the number of the unread messages.
S340, setting a first information unread identifier of the micro application terminal at a preset position of a display page of the native terminal; and/or setting a second information unread identifier of the micro application terminal on the desktop icon of the native terminal.
According to the technical scheme of the embodiment of the invention, the number of the unread messages fed back by the micro application end is obtained by judging whether the micro application end is in the running state or not, so that the number of the unread messages of the micro application end can be obtained no matter whether the micro application end is in the running state or not, the purpose of obtaining the number of the unread messages of the micro application end by a user is ensured, and the user experience is improved.
The following is an embodiment of the identifier setting apparatus provided in the embodiment of the present invention, and the apparatus and the identifier setting method in the embodiments belong to the same inventive concept, and details that are not described in detail in the embodiment of the identifier setting apparatus may refer to the embodiment of the identifier setting method.
Example four
Fig. 5 is a schematic structural diagram of an identifier setting apparatus according to a fourth embodiment of the present invention, which is applicable to a performance test in a software test. The specific structure of the mark setting device comprises: an unread message number determination module 31 and an information unread flag setting module 32.
The unread message number determining module 31 is configured to obtain a message event of a micro application terminal by a native terminal, and determine the number of unread messages of the micro application terminal based on the message event;
and an information unread identifier setting module 32, configured to set an information unread identifier of the micro application terminal for the native terminal based on the number of the unread messages.
On the basis of the technical solution of the embodiment of the present invention, the unread message number determination module 31 includes:
the first unread message data determining unit is used for triggering the micro application end to call a preset protocol interface to acquire the unread message corresponding to the message event when the micro application end is in the running state; and receiving the quantity of the unread messages fed back by the micro application terminal.
Optionally, the preset protocol interface is a WNSDK interaction protocol interface.
On the basis of the technical solution of the embodiment of the present invention, the unread message number determination module 31 further includes:
and the second unread message data determining unit is used for polling the interface of the target micro application to acquire the quantity of the unread messages fed back by the interface of the target micro application when the micro application terminal is in a non-running state.
On the basis of the technical scheme of the embodiment of the invention, the device also comprises:
and the state conversion module is used for acquiring the unread messages corresponding to the message events by calling a preset protocol interface based on triggering the micro application terminal when the micro application terminal is switched from the non-running state to the running state, acquiring the quantity of the unread messages sent by the micro application terminal, and updating the quantity of the original unread messages based on the quantity of the unread messages.
On the basis of the technical solution of the embodiment of the present invention, the information unread flag setting module 32 is specifically configured to:
setting a first information unread identifier of the micro application terminal at a preset site of a display page of the native terminal; and/or the presence of a gas in the gas,
and setting a second information unread identifier of the micro application terminal on the desktop icon of the native terminal.
Optionally, the first information unread identifier and the second information unread identifier include the number of unread messages.
Optionally, the information unread identifiers of the different micro application terminals are distinguished based on at least one of color, size, and graph.
The identifier setting device provided by the embodiment of the invention can execute the identifier setting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the embodiment of the identifier setting apparatus, each included unit and each included module are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
EXAMPLE five
Fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 6, electronic device 12 is embodied in the form of a general purpose computing electronic device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 4, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and sample data acquisition by running the program stored in the system memory 28, for example, implementing an information interaction method provided by the embodiment of the present invention, where the information interaction method includes:
acquiring a performance test script of a software performance test tool and performance index data of each test transaction generated by the software performance test tool testing the test performance test script;
determining the test affairs corresponding to the performance index data which do not reach the standard based on the performance index data of each test affair and the corresponding performance test target;
and acquiring all requests of the performance test script substandard test transaction, and analyzing the requests to obtain request parameters of each request.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the sample data obtaining method provided in any embodiment of the present invention.
EXAMPLE six
A sixth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements, for example, the steps of implementing an identifier setting method provided in this embodiment, where the identifier setting method is applied to a native terminal, where the native terminal is embedded with at least one micro application terminal, and the method includes:
a primary terminal acquires a message event of a micro application terminal and determines the quantity of unread messages of the micro application terminal based on the message event;
and setting the information unread identification of the micro application terminal for the native terminal based on the number of the unread messages.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A mark setting method is applied to a primary end, at least one micro application end is embedded in the primary end, and the method comprises the following steps:
a primary terminal acquires a message event of a micro application terminal and determines the quantity of unread messages of the micro application terminal based on the message event;
and setting the information unread identification of the micro application terminal for the native terminal based on the number of the unread messages.
2. The method of claim 1, wherein the determining the number of unread messages for the micro-application based on the message event comprises:
when the micro application terminal is in a running state, triggering the micro application terminal to call a preset protocol interface to acquire an unread message corresponding to the message event;
and receiving the quantity of the unread messages fed back by the micro application terminal.
3. The method of claim 2, wherein the predetermined protocol interface is a WNSDK interaction protocol interface.
4. The method of claim 1, wherein the determining the number of unread messages for the micro-application based on the message event comprises:
and when the micro application terminal is in a non-running state, polling the interface of the target micro application to acquire the quantity of the unread messages fed back by the interface of the target micro application.
5. The method of claim 4, further comprising:
when the micro application end is switched from the non-running state to the running state, based on triggering the micro application end to call a preset protocol interface, the unread message corresponding to the message event is obtained, the number of the unread messages sent by the micro application end is obtained, and the number of the original unread messages is updated based on the number of the unread messages.
6. The method according to claim 1, wherein the setting of the information unread flag of the micro application to the native peer based on the number of unread messages comprises:
setting a first information unread identifier of the micro application terminal at a preset site of a display page of the native terminal; and/or the presence of a gas in the gas,
and setting a second information unread identifier of the micro application terminal on the desktop icon of the native terminal, wherein the first information unread identifier and the second information unread identifier comprise the number of unread messages.
7. The method of claim 1, wherein the information unread identifications of different micro-applications are differentiated based on at least one of color, size, and graphics.
8. The utility model provides an sign sets up the device, its characterized in that, the device sets up in native end, native end embedding has at least one little application, includes:
the unread message quantity determining module is used for acquiring the message event of the micro application terminal by the primary terminal and determining the unread message quantity of the micro application terminal based on the message event;
and the information unread identifier setting module is used for setting the information unread identifier of the micro application terminal for the native terminal based on the number of the unread messages.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the identity setting method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the identity setting method according to any one of claims 1 to 7.
CN202011636154.1A 2020-12-31 2020-12-31 Identification setting method and device, electronic equipment and storage medium Pending CN112631812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011636154.1A CN112631812A (en) 2020-12-31 2020-12-31 Identification setting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011636154.1A CN112631812A (en) 2020-12-31 2020-12-31 Identification setting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112631812A true CN112631812A (en) 2021-04-09

Family

ID=75290382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011636154.1A Pending CN112631812A (en) 2020-12-31 2020-12-31 Identification setting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112631812A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650278A (en) * 2022-03-21 2022-06-21 平安普惠企业管理有限公司 Data processing method and device for hybrid application, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768823A (en) * 2018-05-03 2018-11-06 上海掌门科技有限公司 Method and apparatus for handling message, showing message
CN111277705A (en) * 2018-12-05 2020-06-12 深圳兆日科技股份有限公司 Message reminding management method, device, equipment and storage medium
CN111432067A (en) * 2020-03-03 2020-07-17 上海掌门科技有限公司 Unread message number processing method, unread message number processing device, unread message number processing equipment and unread message number processing medium
US10848451B1 (en) * 2020-01-31 2020-11-24 Capital One Services, Llc Systems and methods for context development
CN112015570A (en) * 2020-08-11 2020-12-01 支付宝(杭州)信息技术有限公司 Message reminding processing method and device
CN112015569A (en) * 2020-08-11 2020-12-01 支付宝(杭州)信息技术有限公司 Message reminding processing method and device
CN112099617A (en) * 2019-06-18 2020-12-18 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768823A (en) * 2018-05-03 2018-11-06 上海掌门科技有限公司 Method and apparatus for handling message, showing message
CN111277705A (en) * 2018-12-05 2020-06-12 深圳兆日科技股份有限公司 Message reminding management method, device, equipment and storage medium
CN112099617A (en) * 2019-06-18 2020-12-18 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium
US10848451B1 (en) * 2020-01-31 2020-11-24 Capital One Services, Llc Systems and methods for context development
CN111432067A (en) * 2020-03-03 2020-07-17 上海掌门科技有限公司 Unread message number processing method, unread message number processing device, unread message number processing equipment and unread message number processing medium
CN112015570A (en) * 2020-08-11 2020-12-01 支付宝(杭州)信息技术有限公司 Message reminding processing method and device
CN112015569A (en) * 2020-08-11 2020-12-01 支付宝(杭州)信息技术有限公司 Message reminding processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650278A (en) * 2022-03-21 2022-06-21 平安普惠企业管理有限公司 Data processing method and device for hybrid application, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108984388B (en) Method and terminal equipment for generating automatic test case
CN109710370B (en) Session list display method and device and electronic equipment
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
CN108415741B (en) Object serialization and deserialization method and related device
CN110098998B (en) Method and apparatus for processing information
CN110069413B (en) Test data communication, test method, device, equipment and storage medium
CN112953791B (en) Network detection method and device, electronic equipment and computer readable storage medium
CN111130987A (en) Automatic acquisition method and device for AWR report, electronic equipment and storage medium
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
US11929965B2 (en) Information presentation method, apparatus, electronic device, and storage medium
CN113282444B (en) Visualization method and device for debugging business process
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN112631812A (en) Identification setting method and device, electronic equipment and storage medium
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN110489326B (en) IDS-based HTTPAPI debugging method device, medium and equipment
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN110297575B (en) Page display method and device, terminal equipment and storage medium
CN111274104B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110083283B (en) Method, device and system for managing information
CN112379967B (en) Simulator detection method, device, equipment and medium
CN112671814B (en) Cross-platform equipment development method, device and system
CN111241368B (en) Data processing method, device, medium and equipment
CN108833568B (en) Message synchronization method, client, server and electronic equipment
CN112596824A (en) Information interaction method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210409

RJ01 Rejection of invention patent application after publication