A method and system for identifying client application packages

By analyzing the application package identification and traversing the business system configuration files and optimizing the function configuration, the problem of low APP package identification efficiency in the existing technology is solved, and efficient and accurate function identification and development efficiency improvement is achieved.

CN116600030BActive Publication Date: 2025-08-26TUYOO GAMES +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310691893.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-12
Publication Date
2025-08-26
Estimated Expiration
2043-06-12

AI Technical Summary

Technical Problem

In the prior art, simple tail number distinction is made through APP package identification. When different functions are implemented in server program code, the engineering efficiency is low and easy to miss and errors, and it is impossible to efficiently identify APP packages from different channels and versions.

Method used

By receiving the application package identification sent by the client, the application description information is parsed, and the configuration of each function in the business system configuration file is traversed, the functions that the application has are determined based on the application package identification and description information, the function switch configuration is optimized, and forward/reverse planning is performed to reduce the configuration amount.

Benefits of technology

It improves the development efficiency of software engineering, reduces the possibility of configuration omissions and errors, and improves the accuracy and efficiency of functional identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116600030B_ABST
    Figure CN116600030B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method and system for identifying client application packages, wherein, in this solution, the client application package identifier is sent to the server in each interaction between the client and the server; at the same time, in the business system of the server, each function is configured, and in the configuration, a match is performed based on the information contained in the application package identifier to determine whether the function is open to the current application package, thereby achieving differentiation and adaptation of functions of different client application packages from multiple channels, without the need for hard coding in the business system, and greatly improving the development efficiency of software engineering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, system, computing device, and computer-readable storage medium for identifying a client application package. Background Art

[0002] In the field of mobile Internet, the types and number of APP packages in different release channels, such as various application stores, have increased significantly. Even for the APP package of the same product, there will be multiple primary and secondary channels, and each channel will have dozens of version numbers. The functions of APP packages of different versions in different channels are different. In the existing technology, a simple tail number distinction is made through the APP package identifier, and different functions are implemented through hard coding in the server program code. If there are any changes after going online, hot updates and modifications are required. The engineering efficiency is very low, and function configuration is carried out for each APP package identifier, which is very easy to omit and make mistakes. Therefore, there is an urgent need for a client application package identification method that can simply and efficiently identify different versions of APP packages under various channels, and then provide corresponding functions. Summary of the Invention

[0003] In view of this, the present application example provides a method, system, computing device and computer-readable storage medium for identifying a client application package to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of the present application, a method for identifying a client application package is provided, comprising:

[0005] Receive the application package identifier sent by the client;

[0006] Parsing the application package identifier to obtain application description information;

[0007] The configuration for each function in the business system configuration file is traversed, and the function of the application is determined according to the configuration and the application package identifier and / or the description information of the application.

[0008] According to a second aspect of an embodiment of the present application, a system for identifying a client application package is provided, comprising:

[0009] The client sends the application package identifier to the server;

[0010] The server parses the received application package identifier to obtain description information of the application;

[0011] On the server side, the configuration for each function in the business system configuration file is traversed, and the functions of the application are determined according to the configuration and the application package identifier and / or the description information of the application.

[0012] According to a third aspect of an embodiment of the present application, a server is provided, including:

[0013] A receiving module, configured to receive an application package identifier sent by a client;

[0014] A parsing module, configured to parse the application package identifier to obtain application description information;

[0015] The matching module is used to traverse the configuration of each function in the business system configuration file, and determine the function of the application according to the configuration and the application package identifier and / or the description information of the application.

[0016] According to a fourth aspect of an embodiment of the present application, a computing device is provided, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the aforementioned method when executing the instructions.

[0017] According to a fifth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer instructions, and when the instructions are executed by a processor, the steps of the aforementioned method are implemented.

[0018] Through the method and system in the embodiment of the present application, the client assembles an application package identifier based on the information of the application package, and sends the application package identifier to the server in each interaction with the server. At the same time, in the business system on the server side, each function is configured, and in the configuration, a match is made based on the information contained in the application package identifier to determine whether the function is open to the current application package. In order to improve the efficiency of configuration, the switch configuration of each function is also optimized, and various possible situations are planned in advance based on application-related information. Forward / reverse configuration is also performed, which greatly reduces the amount of configuration, solves the problem of hard coding according to the application version in the existing technology, and greatly improves the development efficiency of software engineering. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a structural block diagram of a computing device provided in an embodiment of the present application;

[0020] Figure 2 This is a flow chart of a method for identifying a client application package provided by an embodiment of the present application;

[0021] Figure 3 This is a schematic diagram of the configuration for each function in the business system configuration file in the embodiment of the present application;

[0022] Figure 4 This is a structural diagram of an identification server for a client application package provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present application. Therefore, the present application is not limited to the specific implementations disclosed below.

[0024] The terms used in one or more embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of the present application. The singular forms "a", "the" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.

[0025] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of the present application, first may also be referred to as second, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "in response to determining."

[0026] In this application, a method and system for identifying a client application package, a computing device, and a computer-readable storage medium are provided, which will be described in detail one by one in the following embodiments.

[0027] Figure 1 1 shows a block diagram of a computing device 100 according to an embodiment of the present application. Components of the computing device 100 include, but are not limited to, a memory 110 and a processor 120. The processor 120 is connected to the memory 110 via a bus 130, and a database 150 is used to store data.

[0028] The computing device 100 also includes an access device 140 that enables the computing device 100 to communicate via one or more networks 160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 140 may include one or more of any type of network interface (e.g., a network interface card (NIC)), whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0029] In one embodiment of the present application, the above components of the computing device 100 and Figure 1 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 1 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.

[0030] The computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 100 may also be a mobile or stationary server.

[0031] Instructions attached Figure 1 The processor 120 in the Figure 2 The steps in a method for identifying a client application package shown are used on the server side and include steps 202 to 206.

[0032] Step 202: Receive the application package identifier sent by the client.

[0033] In a feasible implementation, the server receives a request sent by the client application, and parses the request to obtain the application package identifier ClientID included in the request.

[0034] Specifically, in each interaction between the client application and the server, the request message sent by the client application to the server includes the application package identifier ClientID.

[0035] Step 204: Parse the application package identifier to obtain application description information.

[0036] In this step, the received request message is parsed to obtain the application package identifier ClientID, and the application package identifier ClientID is further parsed to obtain detailed description information of the application.

[0037] Specifically, in a feasible implementation, the application package identifier ClientID is:

[0038] Android_5.30_kuya.kuya.0-hall28.kuya.fish3d

[0039] After parsing the ClientID on the server, a detailed description of the application is obtained, including:

[0040] System type and version: Android_5.30;

[0041] Login method: kuya;

[0042] Payment method: kuya.0-hall28

[0043] Main channel: kuya;

[0044] Sub-channel: fish3d

[0045] Those skilled in the art should be aware that the above embodiments are merely examples and not exhaustive. When constructing the application package identifier ClientID, its constituent elements are determined according to actual needs and are not limited to the above examples.

[0046] Step 206: traverse the configuration of each function in the business system configuration file, and determine the functions of the application according to the above application package identification and / or description information.

[0047] In a feasible implementation, each function implemented by the business system is configured in a configuration file of the business system, and whether the current application has the corresponding function is determined through the configuration.

[0048] Specifically, the configuration file of the above business system includes:

[0049] Global function configuration "all": open / close

[0050] Used to configure the global state of the current function. When this setting is set to open, subsequent configurations will be determined. When this setting is set to close, the function is not supported and subsequent configurations do not need to be determined.

[0051] Unsupported ClientID configuration "offClientIds" []:

[0052] The ClientIDs configured in this list do not support the current function and do not need to be judged for subsequent configurations.

[0053] Supported ClientID configuration "onClientIds" []:

[0054] The ClientIDs configured in this list support the current function.

[0055] In an embodiment of the present application, the above-mentioned unsupported ClientID configuration is used in conjunction with the supported ClientID configuration. When the number of unsupported ClientIDs is small, these ClientIDs are configured in "offClientIds"[]; when the number of supported ClientIDs is small, these ClientIDs are configured in "onClientIds"[], thereby reducing the configuration workload.

[0056] Supported version number range configuration:

[0057] "openStartVersion": version number

[0058] "openEndVersion": version number

[0059] If the application version number is less than openStartVersion or greater than openEndVersion, it means that the application does not support the current function. If the application version number is within the version range, the configuration judgment will continue.

[0060] For example, the following configuration indicates that the current function supports versions 5.0-5.2.

[0061] "openStartVersion":"5.0",

[0062] "openEndVersion":"5.2",

[0063] Main channel configuration "mainChannel":

[0064] The configuration file can include multiple main channel configurations to configure the functions of application packages from multiple channels.

[0065] For example, the main channel configuration included in the configuration file is:

[0066] "mainChannel1";

[0067] "mainChannel2";

[0068] "mainChannelN";

[0069] Each main channel configuration "mainChannelN" also includes the following sub-configurations:

[0070] "openType": indicates whether the primary channel fully supports this feature. For example, if "openType" is configured as "openType": all, it means that all secondary channels under the primary channel support this feature.

[0071] "sub":[], this configuration is used to indicate which sub-channels support this function under the current main channel. For example:

[0072] "sub":[fish1,fish2,fish3,...], where each item in the list represents a sub-channel under the same main channel.

[0073] "except":[], this configuration is used to indicate which secondary channels under the current primary channel do not support this function.

[0074] In an embodiment of the present application, the above-mentioned "sub" configuration is used in conjunction with the "except" configuration. When the number of sub-channels that support this function under the current main channel is small, these sub-channels are configured in "sub":[]. When the number of sub-channels that do not support this function under the current main channel is small, these sub-channels are configured in "except":[]. This also reduces the configuration workload.

[0075] Default switch configuration "defaultSwitch": on / off

[0076] When the ClientID and related description information are not within the aforementioned configuration range, the default configuration is used to determine whether the function can be used by the current application.

[0077] Furthermore, the business service traverses the configuration of each function in the business system configuration file, matches the above ClientID and the application description information to determine the functions of the application, and returns the corresponding message to the client, so that the client application can use the function corresponding to its ClientID.

[0078] In the above embodiment, in order to distinguish and adapt the functions of different client application packages from multiple channels, an application package identifier is assembled on the client side based on the information of the application package, and in each interaction with the server side, a request message containing the application package identifier is sent to the server side; at the same time, each function is configured in the business system of the server side, and in the configuration, a match is made based on the information contained in the application package identifier to determine whether the function is open to the current application package. Furthermore, in order to improve the efficiency of configuration, the switch configuration of each function is optimized, and various possible situations are planned in advance based on application-related information. Forward / reverse configuration can also be performed through the configuration file, which greatly reduces the amount of configuration. For example, the simplest configuration method is selected based on the combination of "sub" and "except" configurations, thereby solving the problem of hard coding based on the application version information in the existing technology and greatly improving the development efficiency of software engineering.

[0079] Corresponding to the above method embodiment, the present application also provides an embodiment of a client application package identification system, the system includes a client and a server, wherein:

[0080] The client sends the application package identifier to the server;

[0081] The server parses the received application package identifier to obtain description information of the application;

[0082] On the server side, the configuration for each function in the business system configuration file is traversed, and the functions of the application are determined according to the configuration and the application package identifier and / or the description information of the application.

[0083] This application also provides an embodiment of a server, such as Figure 4 As shown, the server includes:

[0084] A receiving module, configured to receive an application package identifier sent by a client;

[0085] A parsing module, configured to parse the application package identifier to obtain application description information;

[0086] The matching module is used to traverse the configuration of each function in the business system configuration file, and determine the function of the application according to the configuration and the application package identifier and / or the description information of the application.

[0087] The above is a schematic scheme of the relevant device of this embodiment. It should be noted that the technical solution of the above device and the technical solution of the above method belong to the same concept, and the details not described in detail in the technical solution of the above device can be referred to the description of the technical solution of the above method.

[0088] In one embodiment of the present application, a computing device is further provided, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the aforementioned method when executing the instructions.

[0089] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which implement the steps of the method described above when executed by a processor.

[0090] The above is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above method belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the above method.

[0091] The foregoing description describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0092] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0093] It should be noted that for the aforementioned method embodiments, for ease of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0094] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0095] The preferred embodiments of the present application disclosed above are intended only to help illustrate the present application. The optional embodiments do not describe all details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of this application. This application selects and describes these embodiments in detail in order to better explain the principles and practical applications of this application, so that those skilled in the art can better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.

Claims

1. A method for identifying a client application package, used on a server, characterized in that: include: Receive an application package identifier sent by the client, wherein in each interaction between the client application and the server, the request message sent to the server includes the application package identifier; Parsing the application package identifier to obtain application description information; the application package identifier is composed of application description information, including but not limited to: operating system type and version, login method, payment method, and channel information; The configuration for each function in the business system configuration file is traversed, and the function of the application is determined according to the configuration and the application package identifier and / or the description information of the application.

2. The method according to claim 1, wherein The configuration for each function in the traversal business system configuration file includes: Global function configuration is used to configure the global state of the current function. When the configuration is open, the subsequent configuration will be judged. When the configuration is close, it means that the function is not supported and no subsequent configuration needs to be judged. Unsupported ClientID configuration: The ClientIDs configured in this list do not support the current function and do not need to be judged for subsequent configurations. Supported ClientID configurations. The ClientIDs configured in this list support the current function.

3. The method according to claim 1, wherein The configuration for each function in the traversal business system configuration file also includes: Supported version number range configuration. If the application version number is not within the configuration range, it means that the application does not support the current function. If it is within the version range, the subsequent configuration judgment will continue; The main channel configuration is used to configure the functions of application packages from multiple channels. There are multiple main channel configurations, each of which also includes sub-configurations, including: "openType": used to configure whether all sub-channels under the main channel support this function; "sub":[], this configuration is used to indicate which sub-channels support this function under the current main channel; "except":[], this configuration is used to indicate which secondary channels under the current primary channel do not support this function; The default switch configuration "defaultSwitch" determines whether the function can be used by the current application when the ClientID and related description information are not in the aforementioned configuration range.

4. A client application package identification system, comprising a client and a server, characterized in that: The client sends the application package identifier to the server; In each interaction between the client application and the server, the request message sent to the server includes the application package identifier; The server parses the received application package identifier to obtain description information of the application; the application package identifier is composed of description information of the application, and the description information includes but is not limited to: operating system type and version, login method, payment method, and channel information; On the server side, the configuration for each function in the business system configuration file is traversed, and the functions of the application are determined according to the configuration and the application package identifier and / or the description information of the application.

5. A server, characterized in that: include: A receiving module, configured to receive an application package identifier sent by a client; In each interaction between the client application and the server, the request message sent to the server includes the application package identifier; A parsing module, configured to parse the application package identifier to obtain application description information; the application package identifier is composed of application description information, including but not limited to: operating system type and version, login method, payment method, and channel information; The matching module is used to traverse the configuration of each function in the business system configuration file, and determine the function of the application according to the configuration and the application package identifier and / or the description information of the application.

6. A computing device comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein: When the processor executes the instructions, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Gray release management system, method and equipment applying characteristic switch

    CN112130894A