Business identification display method and apparatus

CN117408228BActive Publication Date: 2026-10-30TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210805758.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-08
Publication Date
2026-10-30
Estimated Expiration
2042-07-08

AI Technical Summary

Technical Problem

[0003]相关技术中,不同的位置设置的业务标识一般都由不同的业务部门独立开发和维护,业务标识开发和维护的成本较高,资源消耗较大,且不同的位置设置的业务标识无法兼容

Benefits of technology

[0023]另一方面,本申请提出了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述所述的业务标识展示方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117408228B_ABST
    Figure CN117408228B_ABST
Patent Text Reader

Abstract

The application provides a service identification display method and device, which can be applied to various scenes such as cloud technology, artificial intelligence, intelligent transportation and auxiliary driving. The method comprises the following steps: receiving a service identification acquisition request sent by a terminal, acquiring a target service identification corresponding to the service identification acquisition request, target position information of the target service identification and first identification information of a first service corresponding to the target service identification; sending the target service identification, the target position information and the first identification information to the terminal, so that the terminal determines a target display position of the target service identification in a component based on the target position information and the first identification information; and displaying the target service identification at the target display position. The application can uniquely determine the position of the service identification, thereby uniformly managing the service identification, reducing the development workload of the service identification, reducing resource consumption and making different service identifications compatible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of computer technology, and specifically relates to a method and apparatus for displaying business identifiers. Background Technology

[0002] To guide users to a specific module or page within an application, business identifiers (such as red dot icons) are typically introduced into the application. An application usually has multiple locations where business identifiers need to be set.

[0003] In related technologies, business identifiers set in different locations are generally developed and maintained independently by different business departments. The development and maintenance of business identifiers are costly and resource-intensive, and business identifiers set in different locations are incompatible. Summary of the Invention

[0004] To address the aforementioned issues, this application provides a method and apparatus for displaying business identifiers.

[0005] On the one hand, this application proposes a method for displaying business identifiers, the method comprising:

[0006] The receiving terminal sends a service identifier acquisition request, and acquires a target service identifier corresponding to the service identifier acquisition request, target location information of the target service identifier, and first identifier information of a first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and preset location information of the target service identifier in a component of the target application;

[0007] The target service identifier, the target location information, and the first identifier information are sent to the terminal, so that the terminal determines the target display position of the target service identifier in the component based on the target location information and the first identifier information; and so that the terminal displays the target service identifier at the target display position.

[0008] On the other hand, this application proposes a method for displaying a business identifier, the method comprising:

[0009] A service identifier acquisition request is sent to the service identifier system, so that the service identifier system acquires the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and the preset location information of the target service identifier in the components of the target application;

[0010] Receive the target service identifier, the target location information, and the first identifier information sent by the service identifier system;

[0011] Based on the target location information and the first identification information, the target display position of the target service identifier in the component is determined;

[0012] The target business identifier is displayed at the target display location.

[0013] On the other hand, embodiments of this application provide a business identifier display device, the device comprising:

[0014] The request receiving module is used to receive a service identifier acquisition request sent by the terminal, and to acquire a target service identifier corresponding to the service identifier acquisition request, target location information of the target service identifier, and first identifier information of a first service corresponding to the target service identifier; the target location information is determined by the first service based on preset location information and location reference information of the target service identifier in a component of the target application.

[0015] The identification information sending module is used to send the target service identifier, the target location information and the first identification information to the terminal, so that the terminal determines the target display position of the target service identifier in the component based on the target location information and the first identification information; and so that the terminal displays the target service identifier at the target display position.

[0016] On the other hand, embodiments of this application provide a business identifier display device, the device comprising:

[0017] The request sending module is used to send a service identifier acquisition request to the service identifier system, so that the service identifier system can acquire the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier; the target location information is determined by the first service based on the preset location information and location reference information of the target service identifier in the components of the target application;

[0018] The identification information receiving module is used to receive the target service identifier, the target location information, and the first identification information sent by the service identification system;

[0019] The display location determination module is used to determine the target display location of the target service identifier in the component based on the target location information and the first identifier information;

[0020] The display module is used to display the target business identifier at the target display location.

[0021] On the other hand, this application proposes an electronic device for displaying a business identifier, the electronic device including a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or at least one program being loaded and executed by the processor to implement the business identifier display method as described above.

[0022] On the other hand, this application proposes a computer-readable storage medium storing at least one instruction or at least one program, which is loaded and executed by a processor to implement the business identifier display method as described above.

[0023] On the other hand, this application proposes a computer program product, including a computer program that, when executed by a processor, implements the aforementioned business identifier display method.

[0024] In this embodiment, the service identification system receives a service identification acquisition request sent by a terminal, acquires a target service identification corresponding to the service identification acquisition request, target location information of the target service identification, and first identification information of a first service corresponding to the target service identification. The target location information is determined by the first service based on preset location information and location reference information of the target service identification in a component of the target application. The service identification system sends the target service identification, target location information, and first identification information to the terminal. Based on the location information and the first identification information, the terminal determines the target display position of the target service identification in the component, and displays the target service identification at the target display position. This embodiment can accurately identify service identifications belonging to different services through the first service identification, and can ensure the uniqueness of the location information of the service identification within a single component through the target location information. Therefore, this embodiment can uniquely determine the position of the service identification through the target location information and the first identification information, thereby enabling unified management of all service identifications, reducing the development workload of service identifications, reducing resource consumption, and ensuring the uniformity of the structure of service identifications due to the unified management of all service identifications, making different service identifications in the target application compatible. Attached Figure Description

[0025] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1This is a schematic diagram illustrating an implementation environment for displaying a business identifier according to an exemplary embodiment.

[0027] Figure 2 This is a system architecture diagram illustrating a business identifier display according to an exemplary embodiment.

[0028] Figure 3 This is a schematic diagram illustrating the working principle of a Push mode according to an exemplary embodiment.

[0029] Figure 4 This is a schematic diagram illustrating the working principle of a Get mode according to an exemplary embodiment.

[0030] Figure 5 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 1 .

[0031] Figure 6 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 2 .

[0032] Figure 7 This is a schematic diagram illustrating a pre-defined ordered set according to an exemplary embodiment.

[0033] Figure 8 This is a flowchart illustrating an exemplary embodiment for obtaining a target service identifier corresponding to a service identifier acquisition request.

[0034] Figure 9 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 3 .

[0035] Figure 10 This is a flowchart illustrating a service identifier update according to an exemplary embodiment.

[0036] Figure 11 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 4 .

[0037] Figure 12 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 5 .

[0038] Figure 13 This is a schematic diagram illustrating how a terminal displays a target service identifier according to an exemplary embodiment.

[0039] Figure 14 This is a block diagram illustrating a business identification display device according to an exemplary embodiment.

[0040] Figure 15 This is a block diagram of another business identification display device according to an exemplary embodiment.

[0041] Figure 16 This is a hardware structure block diagram of a server for displaying a service identifier, according to an exemplary embodiment. Detailed Implementation

[0042] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0043] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0044] Figure 1 This is a schematic diagram illustrating an implementation environment for displaying a service identifier according to an exemplary embodiment. For example... Figure 1 As shown, the implementation environment may include at least a service identification system 01, a terminal 02, and a service 03. The service identification system 01, the terminal 02, and the service 03 may be directly or indirectly connected through wired or wireless communication. This application embodiment does not impose any limitations on this.

[0045] Optionally, the service identification system 01 can be used to receive a service identification acquisition request sent by a terminal, acquire a target service identification corresponding to the service identification acquisition request, target location information of the target service identification, and first identification information of the first service corresponding to the target service identification; and send the target service identification, target location information, and first identification information to the terminal.

[0046] Optionally, the terminal 02 can be used to send a service identifier acquisition request to the service identifier system; and to receive a target service identifier, target location information, and first identifier information sent by the service identifier system; and to determine the target display position of the target service identifier in the component based on the target location information and the first identifier information; and to display the target service identifier at the target display position. Optionally, the terminal 02 can be a smartphone, tablet computer, laptop computer, desktop computer, smart TV, smartwatch, etc., but is not limited to these.

[0047] Optionally, the service 03 may include a second service, which includes the first service. The second service is used to send a service identifier, the location information of the service identifier, and the second identifier information of the second service to the service identifier system 01. The first service is used to determine the target location information based on preset location information and location reference information of the target service identifier in the components of the target application.

[0048] In one embodiment, the business identification system 01 and business service 03 can be smartphones, tablets, laptops, desktop computers, smart TVs, smartwatches, etc., but are not limited to these. In another embodiment, the business identification system 01 and business service 03 can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0049] It should be noted that, Figure 1 This is merely an exemplary implementation environment diagram. Other implementation environments may be included in other scenarios, and this application embodiment does not specifically limit them.

[0050] Figure 2 This is a system architecture diagram illustrating a service identifier display according to an exemplary embodiment, such as... Figure 2 As shown, this system architecture describes the relationship between the business identification system and business services. It may include an access layer, a business layer, and a storage layer. The access layer may include a Common Gateway Interface (CGI), the business layer may include the business identification system and business services, and the storage layer may include a Remote Dictionary Server (Redis).

[0051] This service can access the service identification system in two ways: push mode and get mode.

[0052] Figure 3 This is a schematic diagram illustrating the working principle of a Push mode according to an exemplary embodiment, such as... Figure 3 As shown, Push mode refers to the business service sending the business identifier that needs to be distributed to the terminal account to the business identifier system through the push interface (Push interface) provided by the business identifier system. The business identifier system caches the identifier and then returns the requested business identifier to the terminal after receiving the business identifier retrieval request from the terminal.

[0053] Figure 4 This is a schematic diagram illustrating the working principle of a Get mode according to an exemplary embodiment, such as... Figure 4 As shown, the Get mode refers to a situation where a business service accessing the business identification system provides its own business identification service and registers with the business identification system. After the business identification system receives a business identification retrieval request from the terminal, it concurrently calls each business service to retrieve the business identification, aggregates the business identification retrieved by each business service, and returns the aggregated business identification to the terminal.

[0054] It is understood that in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0055] Figure 5 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 1 This method can be used for Figure 1 Implementation environment and Figure 2 In the system architecture described in this specification, the method operation steps are as illustrated in the embodiments or flowcharts. However, based on conventional or non-inventive labor, more or fewer operation steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only execution order. In actual system or server product execution, the method can be executed sequentially according to the embodiments or drawings, or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Specifically, as shown in the figures... Figure 2 As shown, the method may include:

[0056] S101. The service identification system receives a service identification acquisition request sent by the terminal, and acquires the target service identification, the target location information of the target service identification, and the first identification information of the first service corresponding to the above service identification acquisition request; the above target location information is determined by the first service based on the preset location information and location reference information of the target service identification in the component of the target application.

[0057] Optionally, the terminal may send a service identifier acquisition request to the service identifier system. This request may carry the terminal's identifier information, such as the terminal's identity document (ID). The service identifier system may receive the service identifier acquisition request sent by the terminal and acquire the target service identifier corresponding to the terminal's identifier information carried in the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier.

[0058] Optionally, the target location information of the target service identifier may refer to the display position of the target service identifier within a component of the target application. It can be determined by the first service service based on preset location information and location reference information of the target service identifier within the component of the target application. The preset location information can be the initial location information of the target service identifier within the component of the target application estimated by the first service service. As an example, a location field corresponding to the location reference information can be preset, and the first service service can edit this location field according to the position of the target service identifier within a single component of the target application to obtain the target location information. Here, the target application refers to various applications that can be used on the terminal, such as game applications, video applications, instant messaging applications, etc., and this application does not specifically limit this. The component of the target application may refer to a relatively independent program unit within the target application, with each program unit completing and implementing a relatively independent software function.

[0059] Optionally, the first business service can be any business service in the target application used to edit the location information of the target business identifier, such as a messaging service, wallet service, membership service, platform notification service, etc. The first identifier information of the first business service is used to uniquely identify the first business service, such as the ID of the first business service.

[0060] It should be noted that the target service identifier can refer to the identifier information that guides the terminal account to view the service in the target application. The target service identifier can be identified in various forms, such as red dot identifier, number identifier, text identifier, and graphic identifier.

[0061] Figure 6This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 2 ,like Figure 6 As shown, in a feasible embodiment, before step S101, the method may further include:

[0062] S001. The second service sends a service identifier, the location information of the service identifier, and the second identifier information of the second service to the aforementioned service identifier system; the aforementioned second service is a service registered in the aforementioned service identifier system, and the aforementioned second service includes the aforementioned first service.

[0063] S003. The above-mentioned business identification system stores the business identification, location information and second identification information in the cache.

[0064] In this embodiment, business services can access the business identification system via Push mode.

[0065] Optionally, in step S001 above, the second service can send the service identifier to be distributed to the terminal, the location information of the service identifier, and the second identifier information of the second service to the service identifier system via the Push interface provided by the service identifier system. The second service is a service pre-registered in the service identifier system, including the first service mentioned above. As an example, the location information of the service identifier may refer to the display position of the service identifier in a component of the target application. It can be determined by the second service based on preset location information and location reference information of the service identifier in the component of the target application. As an example, a location field corresponding to the location reference information can be set, and the second service can edit this location field according to the position of the service identifier in a single component of the target application to obtain the location information. As an example, the second identifier information of the second service is used to uniquely identify the second service, for example, the ID of the second service.

[0066] It should be noted that the service identifier can include the aforementioned target service identifier, which may be the identifier information used in the target application to guide the terminal account to view the service. The preset protocol of this service identifier system can predefine several commonly used service identifiers, such as red dot identifiers, number identifiers, text identifiers, and pattern identifiers. When the second service distributes service identifiers, it can fill in the predefined type value according to the required service identifier type, and fill in the specific data fields required for this type (e.g., image address and text for a text bubble), thereby obtaining the type information for each service identifier. The type information for each service identifier is then sent to the service identifier system for caching.

[0067] Optionally, in step S003 above, the service identification system can cache the received service identification, the location information of the service identification, and the second identification information of the second service, so that after receiving the service identification acquisition request sent by the terminal, the service identification, the location information of the service identification, and the second identification information of the second service can be returned to the terminal.

[0068] In this embodiment, the business identifier, the location information of the business identifier, and the second identifier information of the second business service are sent to the business identifier system through the second business service. The business identifier system then caches the business identifier, thus aggregating the business identifiers into the business identifier system. This eliminates the need for each business service to deploy a separate business identifier service. Instead, the business identifier can be distributed simply by calling the Push interface of the business identifier system in the second business service, thereby reducing the resource consumption of the business service provider.

[0069] Optionally, in step S003 above, the service identifier, location information and second identifier information can be stored in the cache in various ways, and this application embodiment does not specifically limit this.

[0070] In a feasible embodiment, in step S003 above, the service identification system stores the service identifier, location information, and second identifier information in a cache, which may include:

[0071] The aforementioned business identification system stores the aforementioned business identification, location information, and second identification information into a preset ordered set based on a preset order.

[0072] The aforementioned preset ordered set includes an element set and a score set. The elements in the element set are generated based on location information and second identification information. The score set is used to store the display deadline of the business identifier. The preset order is determined based on the display deadline.

[0073] Optionally, the service identification system can use Redis to store the service identifiers issued by the second service. For each terminal account, the service identification system can allocate a pre-defined sorted set (ZSET) in Redis, and store the list of service identifiers for that terminal account through this ZSET. Figure 7 This is a schematic diagram illustrating a pre-defined ordered set according to an exemplary embodiment, such as... Figure 7As shown, the ZSET can include a set of members and a set of scores. Since no two business identifiers will appear simultaneously at any specific location within each module of the target application, the second identifier information of the second business service and the location information of the business identifier ensure the uniqueness of the business identifier. Therefore, the business identifier system can generate ZSET members based on the second identifier information of the second business service and the location information of the business identifier, and store the display expiration time of the business identifier through the score (each business identifier needs to specify a display expiration time). Simultaneously, the ZSET key can be generated from the terminal account's identifier information (i.e., the terminal account ID), thus sorting the ZSET according to the expiration time of the business identifiers. Furthermore, the specific content of the business identifier can be stored using Redis strings. The STRING key can be generated using the terminal account ID, the second identifier information of the second business service, and the location information of the business identifier, while the STRING value can store the serialization of the specific data of the business identifier, and the display expiration time of the business identifier is set as the expiration time of the STRING. This allows for efficient maintenance of each business identifier and automatic expiration of invalid business identifiers.

[0074] In an exemplary embodiment, the process of generating the member of the ZSET described above may include: the business identification system generates a key by using fixed rules such as underscores and colons to combine the second identification information and the location information of the business identification. Since the second identification information and the location information of the business identification are unique, the member can be guaranteed to be unique. This is equivalent to using the key generated by the second identification information and the location information of the business identification to uniquely identify a business identification.

[0075] In another exemplary embodiment, the process of generating the ZSET key may include: the service identification system may add a prefix to the terminal account ID to obtain the ZSET key, which can uniquely identify the terminal account ID.

[0076] In another exemplary embodiment, each service identifier has a display expiration time. If all service identifiers have the same display expiration time, it will put a lot of pressure on the service identifier system and increase the resource consumption of the service identifier system. In order to solve this problem, the service identifier system can use a random function to generate a random time and append the random time to the display expiration time of each service identifier, so that the expiration time of each service identifier is not at the same time, thereby reducing the burden and resource consumption of the service identifier system.

[0077] In an optional embodiment, continue as follows Figure 6 As shown, in S101 above, obtaining the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier may include:

[0078] S201. The aforementioned business identifier system retrieves the target business identifier corresponding to the aforementioned business identifier retrieval request from the cached business identifiers.

[0079] S203. The above-mentioned business identification system obtains the target location information corresponding to the target business identification from the location information in the cache.

[0080] S205. The aforementioned business identification system obtains the first identification information of the first business service corresponding to the aforementioned target business identification from the second identification information in the cache.

[0081] In this embodiment, when the service identification system receives a service identification retrieval request from a terminal, the request may carry the terminal account ID. Since the service identification system pre-stores the service identification, its location information, and second identification information in a cache, and the ZSET key is generated from the terminal account ID, the terminal account ID can be uniquely identified by the ZSET key. Furthermore, the specific content of the service identification can be stored using Redis strings, and the STRING key can be generated using the terminal account ID + the second identification information of the second service + the location information of the service identification. Therefore, by using the terminal account ID carried in the service identification retrieval request, the target service identification corresponding to the terminal account ID carried in the service identification can be retrieved from the cached service identifications. Since the ZSET member stores the second identification information of the second service and the location information of the service identification, the target location information corresponding to the target service identification can be retrieved from the location information of the service identification in the cache, and the first identification information of the first service corresponding to the target service identification can be retrieved from the second identification information in the cache.

[0082] It should be noted that after the aforementioned business identification system receives the aforementioned business identification retrieval request, the method may further include: the aforementioned business identification system retrieving the type information of the target business identification. For example, since the type information of each business identification is stored in the cache, the business identification system can retrieve the target type information of the target business identification from the cache.

[0083] In this embodiment, the business identifier, location information, and second identifier information are pre-stored in a cache. When the business identifier system receives a business identifier retrieval request, it retrieves the target business identifier, target location information, and the first identifier information of the first business service corresponding to the target business identifier from the cache. This consolidates the business identifiers into the business identifier system, eliminating the need for each business service to deploy a separate business identifier service. This enables unified management of all business identifiers, ensuring compatibility between different business identifiers in the target application, reducing the development workload of business identifiers, and lowering resource consumption.

[0084] Optionally, the aforementioned business identification system can obtain the target business identification corresponding to the business identification retrieval request from the business identification in the aforementioned cache in various ways, without making specific limitations here. Figure 8 This is a flowchart illustrating an exemplary embodiment for obtaining a target service identifier corresponding to a service identifier acquisition request, such as... Figure 8 As shown, in an optional embodiment, in step S201 above, the service identification system obtains the target service identifier corresponding to the service identifier acquisition request from the cached service identifiers, which may include:

[0085] S2011. The aforementioned business identifier system retrieves from a preset ordered set the business identifier that corresponds to the aforementioned business identifier retrieval request and whose display deadline is later than the current time.

[0086] S2013. The aforementioned business identification system shall take the business identification that corresponds to the business identification acquisition request and whose display deadline is later than the current time as the aforementioned target business identification.

[0087] Optionally, in steps S2011-S2013 above, the ZSET command can be used to quickly filter and obtain the business identifiers that correspond to the above business identifier acquisition request and whose display deadline is later than the current time. These business identifiers are then used as the target business identifiers to be finally sent to the terminal. This storage method not only efficiently maintains the business identifiers of each terminal account, but also improves the accuracy of business identifier distribution, ensuring that the business distributed to each terminal account is valid, thereby improving the account experience.

[0088] In an optional embodiment, after the service identification system receives the service identification acquisition request sent by the terminal, the method may further include:

[0089] Retrieve business identifiers whose display deadline is earlier than the current time from a preset ordered set.

[0090] The aforementioned business identification system will remove business identifiers whose display deadline is earlier than the current time from the preset ordered set.

[0091] Optionally, service identifiers with a score lower than the current time can be considered expired service identifiers. The service identifier system can delete the member corresponding to the expired service identifier in ZSET each time a service identifier push is received, that is, delete the expired service identifier. Through this storage method, not only can the service identifier of each terminal account be maintained efficiently, but the accuracy of service identifier distribution is also improved, ensuring that the services distributed to each terminal account are valid, thereby further improving the account experience; in addition, it can also reduce the system resource consumption of expired service identifiers.

[0092] Figure 9 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 3 ,like Figure 9 As shown, in a feasible embodiment, in step S101 above, the service identification system receives a service identification acquisition request sent by the terminal, and acquires the target service identification corresponding to the service identification acquisition request, the target location information of the target service identification, and the first identification information of the first service corresponding to the target service identification. This may further include:

[0093] S301. The aforementioned service identification system receives a service identification acquisition request sent by the terminal and forwards the service identification acquisition request to the first service.

[0094] S303. In response to the service identifier acquisition request, the aforementioned first service sends the target service identifier, target location information, and first identifier information to the service identifier system.

[0095] In this embodiment, the business service can access the business identification system through the Get mode.

[0096] In this embodiment, in the Get mode, the service provider accessing the service identification system provides a separate service identification service (e.g., a red dot service) and registers with the service identification system. In step S301, when the service identification system receives a service identification retrieval request from the terminal, it can forward the request to at least one first service, thereby concurrently calling each first service. In step S303, each first service responds to the service identification retrieval request by retrieving its corresponding target service identification, target location information of its corresponding target service identification, and first identification information. It then sends these information to the service identification system, which aggregates the service identification and other information of each first service and returns the aggregated information to the terminal.

[0097] In the Get mode, the business identifier system aggregates all business services, eliminating the need for the terminal to call multiple business services or concern itself with their details; a single call to the business identifier system suffices. Furthermore, since all business services adhere to the business identifier system's protocol, the structure of business identifiers is consistent, enabling unified management and reducing development workload and resource consumption. Simultaneously, because business identifiers are generated only when needed, the system avoids issues of low real-time performance and accuracy caused by account state changes during the account's access to the target application, ensuring both real-time accuracy and reliability of the generated business identifiers.

[0098] S103. The aforementioned service identification system sends the target service identifier, target location information, and first identification information to the aforementioned terminal.

[0099] Optionally, after the service identification system obtains the target service identifier, the target location information, and the first identifier information from the first service service through Push mode or Get mode, it can send the target service identifier, the target location information, the first identifier information, and the target type information to the aforementioned terminal via wired or wireless means.

[0100] S105. The terminal determines the target display position of the target service identifier in the above components based on the target location information and the first identifier information.

[0101] Optionally, after receiving the target service identifier, the target location information, and the first identifier information, the terminal can determine all service identifiers belonging to the first service based on the first identifier information, and determine the target display position of the target service identifier in the components of the first service based on the target location information. That is, the terminal can uniquely determine the target display position of the target service identifier in the aforementioned components based on the target location information and the first identifier information. It is evident that this embodiment of the application can uniquely determine the position of a service identifier through the target location information and the first identifier information, thereby enabling unified management of all service identifiers, reducing the development workload of service identifiers, lowering resource consumption, and ensuring the uniformity of the service identifier structure due to the unified management of all service identifiers, thus ensuring compatibility between different service identifiers in the target application.

[0102] S107. The aforementioned terminal displays the aforementioned target service identifier at the aforementioned target display location.

[0103] Optionally, the terminal can render the target service identifier at the target display location based on this type of information, thereby displaying the target service identifier.

[0104] Continue as Figure 6 As shown, in an optional embodiment, after the terminal displays the target service identifier at the target display location, the method may further include:

[0105] S401. In response to the operation instruction triggered based on the target service identifier, the terminal sends the service identifier consumption information corresponding to the target service identifier to the service identifier system.

[0106] S403. The aforementioned business identification system deletes the target business identification from the preset ordered set based on the business identification consumption information.

[0107] In this embodiment, for Push mode, the service identification system can provide a reporting interface (Report interface). After the terminal displays the target service identifier at the target display position, in step S401 above, the terminal account can operate (e.g., click, swipe, long press, etc.) the target service identifier to consume it, thereby triggering a corresponding operation command. The terminal responds to the operation command by calling the Report interface above and sending the service identifier consumption information corresponding to the target service identifier to the service identification system. This service identifier consumption information can carry the identifier information of the target service identifier. In step S403 above, when the service identification system receives the service identifier consumption information, it can find the target service identifier from a preset ordered set based on the identifier information and delete the target service identifier from the preset ordered set. This allows for efficient maintenance of the service identifiers for each terminal account and reduces the resource consumption of consumed service identifiers.

[0108] Continue as Figure 9 As shown, in another optional embodiment, after the terminal displays the target service identifier at the target display location, the method may further include:

[0109] S501. In response to the operation instruction triggered based on the target service identifier, the terminal sends the service identifier consumption information corresponding to the target service identifier to the service identifier system; the service identifier consumption information carries the first identifier information.

[0110] S503. Based on the first identification information, the above-mentioned business identification system sends the above-mentioned business identification consumption information to the above-mentioned first business service.

[0111] S505. The aforementioned first service processes the consumption of the aforementioned target service identifier based on the aforementioned service identifier consumption information.

[0112] In this embodiment, for the Get mode, after the terminal displays the target service identifier at the target display location, in step S501, the terminal account can operate (e.g., click, swipe, long press, etc.) the target service identifier to consume it, thereby triggering a corresponding operation instruction. The terminal responds to the operation instruction by sending service identifier consumption information corresponding to the target service identifier to the service identifier system. This service identifier consumption information may carry first identifier information of the first service. In step S503, when the service identifier system receives the service identifier consumption information, it can send the service identifier consumption information to the first service corresponding to the first identifier information based on the first identifier information. In step S505, the first service processes the consumption of the target service identifier based on the service identifier consumption information.

[0113] Optionally, in step S505 above, the first service service can consume the target service identifier in various ways, and this application does not specifically limit this. In one embodiment, the first service service can preset a maximum number of operations on the target service identifier. Each time the target service identifier is operated, the first service service will record it once. When the number of operations on the target service identifier reaches the preset maximum number of operations, the first service service updates the status of the target service identifier to an inoperable state or to a state that cannot be delivered to the terminal. In another embodiment, the first service service can delete the target service identifier when it is consumed. In yet another embodiment, the first service service can not delete the target service identifier when it is consumed, but instead update the status of the target service identifier to a consumed state.

[0114] In this embodiment, the consumption of business identifiers is controlled by the business service provider. The business service provider can customize the consumption logic of business identifiers according to its own actual needs, thereby improving the consumption flexibility of business identifiers.

[0115] Figure 10 This is a flowchart illustrating a service identifier update according to an exemplary embodiment, such as... Figure 10 As shown, in an optional embodiment, after the terminal displays the target service identifier at the target display location, the method may further include:

[0116] S601. The terminal receives a candidate service identifier, candidate location information of the candidate service identifier, and third identifier information of the service service corresponding to the candidate service identifier sent by the service identifier system; the service identifier includes the candidate service identifier, and the second service includes the service service corresponding to the candidate service identifier.

[0117] S603. The terminal determines the candidate display position of the candidate service identifier in the above components based on the candidate location information and the third identifier information.

[0118] S605. If the target service identifier is not consumed by the object and the candidate display position is the target display position, the terminal updates the target service identifier displayed at the target display position to the candidate service identifier.

[0119] Optionally, for Push or Get modes, the service provider may issue multiple different service identifiers at the same display location. In steps S601 and S603 above, when the terminal receives the candidate service identifier, the candidate location information of the candidate service identifier, and the third identifier information of the service corresponding to the candidate service identifier sent by the service identifier system, the terminal can determine the candidate display location of the candidate service identifier in the above component based on the candidate location information and the third identifier information. The above service identifier includes the candidate service identifier, and the above second service includes the service corresponding to the candidate service identifier.

[0120] It should be noted that the way the terminal determines the candidate display position of the above-mentioned candidate service identifier in the above-mentioned component based on the candidate location information and the third identification information is similar to the process in step S105 above, in which the terminal determines the target display position of the target service identifier in the component based on the target location information and the first identification information, and will not be described again here.

[0121] It should be noted that the candidate service identifier, the candidate location information of the candidate service identifier, and the third identifier information of the service corresponding to the candidate service identifier sent to the terminal can be obtained using the Push mode or Get mode described above. This application embodiment does not make specific limitations here.

[0122] Optionally, in step S605 above, if the previous service identifier (i.e., the target service identifier) ​​at a certain display location has not yet been consumed by the terminal account, and the service provider issues a new service identifier (i.e., a candidate service identifier), the service identifier system will default to giving higher priority to the candidate service identifier issued later. Since a terminal can only display one service identifier at the same display location and at the same time, the terminal can use the new candidate service identifier issued by the service identifier system to replace the target service identifier displayed at the target display location. This ensures that the terminal will only display one service identifier at a time, guaranteeing the uniqueness of the service identifier display and thus efficiently maintaining the service identifier of each terminal account.

[0123] The following section, using the business identification system as the implementing entity, describes the above-mentioned business identification display method:

[0124] Figure 11 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 4 ,like Figure 11 As shown, the method for displaying the business identifier may include:

[0125] S701. Receive a service identifier acquisition request sent by a terminal, and acquire a target service identifier corresponding to the service identifier acquisition request, target location information of the target service identifier, and first identifier information of the first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and preset location information of the target service identifier in the components of the target application.

[0126] S703. The target service identifier, the target location information, and the first identifier information are sent to the terminal, so that the terminal determines the target display position of the target service identifier in the component based on the target location information and the first identifier information; and so that the terminal displays the target service identifier at the target display position.

[0127] In an optional embodiment, before the receiving terminal sends a service identifier acquisition request and acquires the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier, the method further includes:

[0128] Receives a service identifier, location information of the service identifier, and second identifier information of the second service sent by the second service; the second service is a service registered in the local service identifier system, and the second service includes the first service.

[0129] Store the aforementioned business identifier, location information, and second identifier information in the cache;

[0130] The aforementioned acquisition of the target service identifier corresponding to the aforementioned service identifier acquisition request, the target location information of the aforementioned target service identifier, and the first identifier information of the first service corresponding to the aforementioned target service identifier includes:

[0131] From the service identifiers in the cache, obtain the target service identifier corresponding to the service identifier retrieval request; from the location information in the cache, obtain the target location information corresponding to the target service identifier; from the second identifier information in the cache, obtain the first identifier information of the first service corresponding to the target service identifier.

[0132] In an optional embodiment, storing the service identifier, the location information, and the second identifier information in a cache includes:

[0133] Based on a preset order, the aforementioned business identifier, location information, and second identifier information are stored in a preset ordered set;

[0134] The aforementioned preset ordered set includes an element set and a score set. The elements in the element set are generated based on the aforementioned location information and the aforementioned second identifier information. The score set is used to store the display deadline of the aforementioned business identifier. The aforementioned preset order is determined based on the aforementioned display deadline.

[0135] In an optional embodiment, obtaining the target service identifier corresponding to the service identifier acquisition request from the service identifiers in the cache includes:

[0136] From the above-mentioned pre-ordered set, obtain the business identifier that corresponds to the above-mentioned business identifier retrieval request and whose display deadline is later than the current time;

[0137] The business identifier that corresponds to the above-mentioned business identifier acquisition request and whose display deadline is later than the current time will be used as the above-mentioned target business identifier.

[0138] In an optional embodiment, after the service identifier acquisition request sent by the receiving terminal, the method further includes:

[0139] Retrieve business identifiers whose deadlines are earlier than the current time from the aforementioned pre-defined ordered set;

[0140] Remove the business identifiers whose display deadline is earlier than the current time from the preset ordered set.

[0141] In an optional embodiment, the above method further includes:

[0142] The receiving terminal sends service identifier consumption information corresponding to the target service identifier in response to the operation instruction triggered based on the target service identifier.

[0143] Based on the aforementioned business identifier consumption information, the aforementioned target business identifier is deleted from the aforementioned preset ordered set.

[0144] In an optional embodiment, the service identifier acquisition request sent by the receiving terminal, which acquires the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier, includes:

[0145] Receive the service identifier acquisition request sent by the terminal and forward the service identifier acquisition request to the first service.

[0146] The first service responds to the service identifier acquisition request by sending the target service identifier, the target location information, and the first identifier information.

[0147] In an optional embodiment, the above method further includes:

[0148] The terminal receives service identifier consumption information corresponding to the target service identifier in response to an operation instruction triggered based on the target service identifier; the service identifier consumption information carries the first identifier information.

[0149] Based on the aforementioned first identification information, the aforementioned business identification consumption information is sent to the first business service corresponding to the aforementioned first identification information, so that the aforementioned first business service can consume the aforementioned target business identification based on the aforementioned business identification consumption information.

[0150] In an optional embodiment, after the service identifier acquisition request sent by the receiving terminal, the method further includes:

[0151] Obtain the target type information of the aforementioned target service identifier; the aforementioned target type information is determined by the aforementioned first service based on the type value corresponding to the preset protocol.

[0152] The aforementioned target type information is sent to the aforementioned terminal, so that the aforementioned terminal renders the aforementioned target service identifier at the aforementioned target display location based on the aforementioned target type information.

[0153] The following section, using the business identification system as the implementing entity, describes the above-mentioned business identification display method:

[0154] Figure 12 This is a flowchart illustrating a business identifier display method according to an exemplary embodiment. Figure 5 ,like Figure 12 As shown, the method for displaying the business identifier may include:

[0155] S801. Send a service identifier acquisition request to the service identifier system, so that the service identifier system acquires the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and the preset location information of the target service identifier in the component of the target application.

[0156] S803. Receive the target service identifier, the target location information, and the first identifier information sent by the aforementioned service identifier system.

[0157] S805. Based on the above target location information and the above first identification information, determine the target display position of the above target business identifier in the above component.

[0158] S807. Display the target business identifier at the aforementioned target display location.

[0159] In an optional embodiment, the service identification system obtains the target service identifier from a preset ordered set, and after displaying the target service identifier at the target display position, the method further includes:

[0160] In response to the operation instruction triggered based on the target service identifier, the service identifier consumption information corresponding to the target service identifier is sent to the service identifier system, so that the service identifier system deletes the target service identifier from the preset ordered set based on the service identifier consumption information.

[0161] In an optional embodiment, after displaying the target service identifier at the target display location, the method further includes:

[0162] In response to an operation instruction triggered based on the aforementioned target service identifier, service identifier consumption information corresponding to the aforementioned target service identifier is sent to the aforementioned service identifier system; the aforementioned service identifier consumption information carries the aforementioned first identifier information; so that the aforementioned service identifier system sends the aforementioned service identifier consumption information to the first service service corresponding to the aforementioned first identifier information based on the aforementioned first identifier information; and so that the aforementioned first service service consumes the aforementioned target service identifier based on the aforementioned service identifier consumption information.

[0163] In an optional embodiment, after displaying the target service identifier at the target display location, the method further includes:

[0164] Receive the candidate service identifier, the candidate location information of the candidate service identifier, and the third identifier information of the service corresponding to the candidate service identifier sent by the aforementioned service identifier system; the aforementioned service identifier includes the aforementioned candidate service identifier, and the aforementioned second service includes the service corresponding to the aforementioned candidate service identifier;

[0165] Based on the above candidate location information and the above third identification information, the candidate display position of the above candidate business identifier in the above components is determined;

[0166] If the target business identifier is not consumed by the object and the candidate display position is the target display position, the target business identifier displayed at the target display position will be updated to the candidate business identifier.

[0167] Figure 13 This is a schematic diagram illustrating how a terminal displays a target service identifier according to an exemplary embodiment, such as... Figure 13As shown, after a terminal account enters the target application, the business identification system returns all target business identifiers that need to be displayed to the terminal account and distributes them to various target display locations. The terminal renders each target business identifier according to its type (e.g., text dot, graphic bubble, etc.) to guide the terminal account to click and view.

[0168] Figure 14 This is a block diagram illustrating a business identification display device according to an exemplary embodiment. For example... Figure 14 As shown, the device may include at least:

[0169] The request receiving module 901 is used to receive a service identifier acquisition request sent by the terminal, and to acquire a target service identifier corresponding to the service identifier acquisition request, target location information of the target service identifier, and first identifier information of the first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and preset location information of the target service identifier in the components of the target application.

[0170] The identification information sending module 903 is used to send the target service identifier, the target location information and the first identification information to the terminal, so that the terminal determines the target display position of the target service identifier in the component based on the target location information and the first identification information; and so that the terminal displays the target service identifier at the target display position.

[0171] In an optional embodiment, the above-described apparatus further includes:

[0172] The initial receiving module is used to receive the service identifier, the location information of the service identifier, and the second identifier information of the second service sent by the second service; the second service is a service registered in the local service identifier system, and the second service includes the first service.

[0173] The caching module is used to store the aforementioned business identifier, location information, and second identifier information in the cache.

[0174] The aforementioned request receiving module 901 includes:

[0175] The cache acquisition unit is configured to: acquire the target service identifier corresponding to the service identifier acquisition request from the service identifier in the cache; acquire the target location information corresponding to the target service identifier from the location information in the cache; and acquire the first identifier information of the first service corresponding to the target service identifier from the second identifier information in the cache.

[0176] In an optional embodiment, the above-mentioned caching module includes:

[0177] An ordered set cache unit is used to store the aforementioned business identifier, the aforementioned location information, and the aforementioned second identifier information into a preset ordered set based on a preset order.

[0178] The aforementioned preset ordered set includes an element set and a score set. The elements in the element set are generated based on the aforementioned location information and the aforementioned second identifier information. The score set is used to store the display deadline of the aforementioned business identifier. The aforementioned preset order is determined based on the aforementioned display deadline.

[0179] In an optional embodiment, the above-mentioned cache acquisition unit includes:

[0180] The business identifier acquisition subunit is used to acquire, from the above-mentioned preset ordered set, the business identifier corresponding to the above-mentioned business identifier acquisition request and whose display deadline is later than the current time.

[0181] The target business identifier determination subunit is used to take the business identifier that corresponds to the above-mentioned business identifier acquisition request and whose display deadline is later than the current time as the above-mentioned target business identifier.

[0182] In an optional embodiment, the above-described apparatus further includes:

[0183] The business identifier acquisition module is used to obtain business identifiers whose display deadline is earlier than the current time from the above-mentioned preset ordered set.

[0184] The first deletion module is used to delete the business identifiers whose display deadline is earlier than the current time from the preset ordered set.

[0185] In an optional embodiment, the above-described apparatus further includes:

[0186] The first consumption information receiving module is used to receive the service identifier consumption information corresponding to the target service identifier sent by the terminal in response to the operation instruction triggered based on the target service identifier.

[0187] The second deletion module is used to delete the target business identifier from the preset ordered set based on the aforementioned business identifier consumption information.

[0188] In an optional embodiment, the above-mentioned request receiving module includes:

[0189] The forwarding module is used to receive the service identifier acquisition request sent by the terminal and forward the service identifier acquisition request to the first service.

[0190] The request-response sending module is used to receive the target service identifier, the target location information, and the first identifier information sent by the first service in response to the service identifier acquisition request.

[0191] In an optional embodiment, the above-described apparatus may further include:

[0192] The second consumption information receiving module is used to receive the service identifier consumption information corresponding to the target service identifier sent by the terminal in response to the operation instruction triggered based on the target service identifier; the service identifier consumption information carries the first identifier information.

[0193] The consumption processing module is used to send the service identifier consumption information to the first service corresponding to the first identifier information based on the first identifier information, so that the first service can perform consumption processing on the target service identifier based on the service identifier consumption information.

[0194] In an optional embodiment, the above-described apparatus may further include:

[0195] The target type information acquisition module is used to acquire the target type information of the aforementioned target service identifier; the aforementioned target type information is determined by the aforementioned first service based on the type value corresponding to the preset protocol.

[0196] The target type information sending module is used to send the target type information to the terminal, so that the terminal renders the target service identifier at the target display position based on the target type information.

[0197] Figure 15 This is a block diagram of another business identification display device according to an exemplary embodiment. For example... Figure 15 As shown, the device may include at least:

[0198] The request sending module 1001 is used to send a service identifier acquisition request to the service identifier system, so that the service identifier system can acquire the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and the preset location information of the target service identifier in the component of the target application.

[0199] The identification information receiving module 1003 is used to receive the target service identifier, the target location information and the first identification information sent by the aforementioned service identification system.

[0200] The display location determination module 1005 is used to determine the target display location of the target business identifier in the above components based on the target location information and the first identifier information.

[0201] The display module 1007 is used to display the target business identifier at the target display location.

[0202] In an optional embodiment, the above-described apparatus may further include:

[0203] The first service identifier consumption information sending module is used to respond to the operation instruction triggered based on the target service identifier and send the service identifier consumption information corresponding to the target service identifier to the service identifier system, so that the service identifier system deletes the target service identifier from the preset ordered set based on the service identifier consumption information.

[0204] In an optional embodiment, the above-described display module includes:

[0205] The second service identifier consumption information sending module is configured to respond to an operation instruction triggered based on the target service identifier, and send service identifier consumption information corresponding to the target service identifier to the service identifier system; the service identifier consumption information carries the first identifier information; so that the service identifier system sends the service identifier consumption information to the first service corresponding to the first identifier information based on the first identifier information; and so that the first service performs consumption processing on the target service identifier based on the service identifier consumption information.

[0206] In an optional embodiment, the above-described apparatus may further include:

[0207] The candidate information receiving module is used to receive the candidate service identifier, the candidate location information of the candidate service identifier, and the third identifier information of the service corresponding to the candidate service identifier sent by the aforementioned service identifier system; the aforementioned service identifier includes the aforementioned candidate service identifier, and the aforementioned second service includes the service corresponding to the aforementioned candidate service identifier.

[0208] The candidate display position determination module is used to determine the candidate display position of the candidate business identifier in the above components based on the above candidate position information and the above third identification information.

[0209] The update module is used to update the target business identifier displayed at the target display position to the candidate business identifier when the target business identifier has not been consumed by the object and the candidate display position is the target display position.

[0210] It is understood that in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0211] It should be noted that the device embodiments provided in this application are based on the same inventive concept as the method embodiments described above.

[0212] This application also provides an electronic device for displaying a business identifier. The electronic device includes a processor and a memory. The memory stores at least one instruction or at least one program. The processor loads and executes the at least one instruction or at least one program to implement the business identifier display method provided in any of the above embodiments.

[0213] Embodiments of this application also provide a computer-readable storage medium that can be disposed in a terminal to store at least one instruction or at least one program related to implementing a service identifier display method in the method embodiments. The at least one instruction or at least one program is loaded and executed by a processor to implement the service identifier display method provided in the above method embodiments.

[0214] Optionally, in the embodiments of this specification, the storage medium may be located at at least one of the multiple network servers in a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0215] The memory described in this specification can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for functions, etc.; the data storage area may store data created based on the use of the device, etc. Furthermore, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.

[0216] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the business identifier display method provided in the above-described method embodiments.

[0217] The service identifier display method embodiments provided in this application can be executed on a terminal, computer terminal, server, or similar computing device. Taking running on a server as an example, Figure 16 This is a hardware structure block diagram of a server for displaying a service identifier, according to an exemplary embodiment. For example... Figure 16 As shown, the server 1100 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 1110 (CPUs 1110 may include, but are not limited to, microprocessors (MCUs) or programmable logic devices (FPGAs), a memory 1130 for storing data, and one or more storage media 1120 (e.g., one or more mass storage devices) for storing application programs 1123 or data 1122. The memory 1130 and storage media 1120 may be temporary or persistent storage. The program stored in the storage media 1120 may include one or more modules, each module including a series of instruction operations on the server. Furthermore, the CPU 1110 may be configured to communicate with the storage media 1120 and execute the series of instruction operations stored in the storage media 1120 on the server 1100. Server 1100 may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input / output interfaces 1140, and / or one or more operating systems 1121, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0218] The input / output interface 1140 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of server 1100. In one example, the input / output interface 1140 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 1140 may be a radio frequency (RF) module for wireless communication with the Internet.

[0219] Those skilled in the art will understand that Figure 16 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, server 1100 may also include... Figure 16 The more or fewer components shown, or having the same Figure 16 The different configurations shown.

[0220] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0221] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and server embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0222] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0223] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for displaying business identifiers, characterized in that, The method, applied to a business identification system, includes: The receiving terminal sends a service identifier acquisition request, and acquires a target service identifier corresponding to the service identifier acquisition request, target location information of the target service identifier, and first identifier information of a first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and preset location information of the target service identifier in a component of the target application; The target service identifier, the target location information, and the first identifier information are sent to the terminal, so that the terminal determines the target display position of the target service identifier in the component based on the target location information and the first identifier information; and so that the terminal displays the target service identifier at the target display position; Send a candidate service identifier, candidate location information of the candidate service identifier, and third identifier information of the service corresponding to the candidate service identifier to the terminal; so that the terminal determines the candidate display position of the candidate service identifier in the component based on the candidate location information and the third identifier information; and so that the terminal updates the target service identifier displayed at the target display position to the candidate service identifier when the target service identifier is not consumed by the object and the candidate display position is the target display position; the target service identifier and the candidate service identifier are multiple different service identifiers issued for the same display position in the component.

2. The business identifier display method according to claim 1, characterized in that, Before obtaining the target service identifier corresponding to the service identifier acquisition request sent by the receiving terminal, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier, the method further includes: The system receives a service identifier, location information of the service identifier, and second identifier information of the second service sent by the second service; the second service is a service registered in the local service identifier system, and the second service includes the first service. Store the service identifier, the location information, and the second identifier information in the cache; The step of obtaining the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier includes: Obtain the target service identifier corresponding to the service identifier acquisition request from the service identifier in the cache; obtain the target location information corresponding to the target service identifier from the location information in the cache; obtain the first identifier information of the first service corresponding to the target service identifier from the second identifier information in the cache.

3. The business identifier display method according to claim 2, characterized in that, The step of storing the service identifier, the location information, and the second identifier information in the cache includes: Based on a preset order, the service identifier, the location information, and the second identifier information are stored in a preset ordered set; The preset ordered set includes an element set and a score set. The elements in the element set are generated based on the location information and the second identification information. The score set is used to store the display deadline of the business identifier. The preset order is determined based on the display deadline.

4. The business identifier display method according to claim 3, characterized in that, The step of retrieving the target service identifier corresponding to the service identifier retrieval request from the service identifiers in the cache includes: From the preset ordered set, obtain the business identifier that corresponds to the business identifier acquisition request and whose display deadline is later than the current time; The business identifier that corresponds to the business identifier acquisition request and whose display deadline is later than the current time is taken as the target business identifier.

5. The business identifier display method according to claim 3, characterized in that, After the receiving terminal sends the service identifier acquisition request, the method further includes: Obtain the business identifiers whose display deadlines are earlier than the current time from the preset ordered set; Remove the business identifiers whose display deadline is earlier than the current time from the preset ordered set.

6. The business identifier display method according to claim 3, characterized in that, The method further includes: Receive the service identifier consumption information corresponding to the target service identifier sent by the terminal in response to the operation instruction triggered based on the target service identifier; Based on the service identifier consumption information, the target service identifier is deleted from the preset ordered set.

7. The business identifier display method according to claim 1, characterized in that, The receiving terminal sends a service identifier acquisition request, and acquires a target service identifier corresponding to the service identifier acquisition request, target location information of the target service identifier, and first identifier information of the first service corresponding to the target service identifier, including: Receive the service identifier acquisition request sent by the terminal, and forward the service identifier acquisition request to the first service; The first service responds to the service identifier acquisition request by sending the target service identifier, the target location information, and the first identifier information.

8. The business identifier display method according to claim 7, characterized in that, The method further includes: The terminal receives service identifier consumption information corresponding to the target service identifier, sent in response to an operation instruction triggered based on the target service identifier; the service identifier consumption information carries the first identifier information. Based on the first identification information, the service identification consumption information is sent to the first service corresponding to the first identification information, so that the first service can consume the target service identification based on the service identification consumption information.

9. The business identification display method according to any one of claims 1 to 8, characterized in that, After the service identifier acquisition request sent by the receiving terminal, the method further includes: Obtain the target type information of the target service identifier; the target type information is determined by the first service based on the type value corresponding to a preset protocol. The target type information is sent to the terminal so that the terminal renders the target service identifier at the target display position based on the target type information.

10. A method for displaying business identifiers, characterized in that, Applied to a terminal, the method includes: A service identifier acquisition request is sent to the service identifier system, so that the service identifier system acquires the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and the preset location information of the target service identifier in the components of the target application; Receive the target service identifier, the target location information, and the first identifier information sent by the service identifier system; Based on the target location information and the first identification information, the target display position of the target service identifier in the component is determined; The target service identifier is displayed at the target display location; Receive candidate service identifiers, candidate location information of the candidate service identifiers, and third identifier information of the service corresponding to the candidate service identifiers sent by the service identifier system; Based on the candidate location information and the third identification information, the candidate display position of the candidate service identifier in the component is determined; If the target service identifier is not consumed by the object and the candidate display position is the target display position, the target service identifier displayed at the target display position will be updated to the candidate service identifier.

11. The business identifier display method according to claim 10, characterized in that, The business identification system obtains the target business identifier from a preset ordered set. After displaying the target business identifier at the target display position, the method further includes: In response to an operation instruction triggered based on the target service identifier, service identifier consumption information corresponding to the target service identifier is sent to the service identifier system, so that the service identifier system deletes the target service identifier from the preset ordered set based on the service identifier consumption information.

12. The business identifier display method according to claim 10, characterized in that, After displaying the target service identifier at the target display location, the method further includes: In response to an operation instruction triggered based on the target service identifier, service identifier consumption information corresponding to the target service identifier is sent to the service identifier system; the service identifier consumption information carries the first identifier information; so that the service identifier system sends the service identifier consumption information to the first service service corresponding to the first identifier information based on the first identifier information; and so that the first service service consumes the target service identifier based on the service identifier consumption information.

13. A business identification display device, characterized in that, The device, used in a business identification system, includes: The request receiving module is used to receive a service identifier acquisition request sent by the terminal, and to acquire a target service identifier corresponding to the service identifier acquisition request, target location information of the target service identifier, and first identifier information of a first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and preset location information of the target service identifier in a component of the target application; An identification information sending module is configured to send the target service identifier, the target location information, and the first identification information to the terminal, so that the terminal determines the target display position of the target service identifier in the component based on the target location information and the first identification information; and so that the terminal displays the target service identifier at the target display position; send a candidate service identifier, candidate location information of the candidate service identifier, and third identification information of the service corresponding to the candidate service identifier to the terminal; so that the terminal determines the candidate display position of the candidate service identifier in the component based on the candidate location information and the third identification information; and so that the terminal updates the target service identifier displayed at the target display position to the candidate service identifier when the target service identifier is not consumed by an object and the candidate display position is the target display position; the target service identifier and the candidate service identifier are multiple different service identifiers issued for the same display position in the component.

14. The business identification display device according to claim 13, characterized in that, The device further includes: The initial receiving module is used to receive a service identifier, the location information of the service identifier, and the second identifier information of the second service sent by the second service; the second service is a service registered in the local service identifier system, and the second service includes the first service. The caching module is used to store the service identifier, the location information, and the second identifier information in the cache; The request receiving module includes: The cache acquisition unit is configured to: acquire the target service identifier corresponding to the service identifier acquisition request from the service identifier in the cache; acquire the target location information corresponding to the target service identifier from the location information in the cache; and acquire the first identifier information of the first service corresponding to the target service identifier from the second identifier information in the cache.

15. The business identification display device according to claim 14, characterized in that, The caching module includes: An ordered set cache unit is used to store the service identifier, the location information, and the second identifier information into a preset ordered set based on a preset order. The preset ordered set includes an element set and a score set. The elements in the element set are generated based on the location information and the second identification information. The score set is used to store the display deadline of the business identifier. The preset order is determined based on the display deadline.

16. The business identification display device according to claim 15, characterized in that, The cache acquisition unit includes: The business identifier acquisition subunit is used to acquire, from the preset ordered set, the business identifier corresponding to the business identifier acquisition request and whose display deadline is later than the current time; The target service identifier determination subunit is used to take the service identifier that corresponds to the service identifier acquisition request and whose display deadline is later than the current time as the target service identifier.

17. The business identification display device according to claim 15, characterized in that, The device further includes: The business identifier acquisition module is used to acquire business identifiers whose display deadline is earlier than the current time from the preset ordered set; The first deletion module is used to delete the business identifiers whose display deadline is earlier than the current time from the preset ordered set.

18. The business identification display device according to claim 15, characterized in that, The device further includes: The first consumption information receiving module is used to receive the service identifier consumption information corresponding to the target service identifier sent by the terminal in response to the operation instruction triggered based on the target service identifier; The second deletion module is used to delete the target service identifier from the preset ordered set based on the service identifier consumption information.

19. The business identification display device according to claim 13, characterized in that, The request receiving module includes: The forwarding module is used to receive the service identifier acquisition request sent by the terminal and forward the service identifier acquisition request to the first service. The request-response sending module is used to receive the target service identifier, the target location information, and the first identifier information sent by the first service in response to the service identifier acquisition request.

20. The business identification display device according to claim 19, characterized in that, The device further includes: The second consumption information receiving module is used to receive service identifier consumption information corresponding to the target service identifier sent by the terminal in response to an operation instruction triggered based on the target service identifier; the service identifier consumption information carries the first identifier information; The consumption processing module is used to send the service identifier consumption information to the first service corresponding to the first identifier information based on the first identifier information, so that the first service can perform consumption processing on the target service identifier based on the service identifier consumption information.

21. The business identification display device according to any one of claims 13 to 20, characterized in that, The device further includes: The target type information acquisition module is used to acquire the target type information of the target service identifier; the target type information is determined by the first service based on the type value corresponding to a preset protocol. The target type information sending module is used to send the target type information to the terminal, so that the terminal renders the target service identifier at the target display position based on the target type information.

22. A business identification display device, characterized in that, Applied to a terminal, the device includes: The request sending module is used to send a service identifier acquisition request to the service identifier system, so that the service identifier system can acquire the target service identifier corresponding to the service identifier acquisition request, the target location information of the target service identifier, and the first identifier information of the first service corresponding to the target service identifier; the target location information is determined by the first service based on location reference information and preset location information of the target service identifier in the components of the target application; The identification information receiving module is used to receive the target service identifier, the target location information, and the first identification information sent by the service identification system; The display location determination module is used to determine the target display location of the target service identifier in the component based on the target location information and the first identifier information; A display module is used to display the target service identifier at the target display location; The candidate information receiving module is used to receive the candidate service identifier, the candidate location information of the candidate service identifier, and the third identifier information of the service corresponding to the candidate service identifier sent by the service identifier system. The candidate display position determination module is used to determine the candidate display position of the candidate service identifier in the component based on the candidate position information and the third identifier information; The update module is used to update the target service identifier displayed at the target display position to the candidate service identifier when the target service identifier has not been consumed by the object and the candidate display position is the target display position.

23. The business identification display device according to claim 22, characterized in that, The device further includes: The first service identifier consumption information sending module is used to respond to an operation instruction triggered based on the target service identifier and send the service identifier consumption information corresponding to the target service identifier to the service identifier system, so that the service identifier system deletes the target service identifier from a preset ordered set based on the service identifier consumption information.

24. The business identification display device according to claim 22, characterized in that, The display module includes: The second service identifier consumption information sending module is configured to, in response to an operation instruction triggered based on the target service identifier, send service identifier consumption information corresponding to the target service identifier to the service identifier system; the service identifier consumption information carries the first identifier information; so that the service identifier system sends the service identifier consumption information to the first service service corresponding to the first identifier information based on the first identifier information; and so that the first service service consumes the target service identifier based on the service identifier consumption information.

25. An electronic device for displaying business identification, characterized in that, The electronic device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the business identification display method as described in any one of claims 1 to 12.

26. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction or at least one program, which is loaded and executed by a processor to implement the business identifier display method as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Track query method and device

    CN113742548A

  • Service identifier display method and device, electronic equipment and storage medium

    CN114416241A

  • Interface permission display method, electronic equipment and storage medium

    CN114416265A