A page jump method, system and storage medium based on general code scanning

By analyzing the encoding and decoding rules of the target barcode and generating a page jump protocol, it jumps directly to the decoding result display page of the target sub-app, which solves the problem of multiple searches for sub-apps in enterprise mobile portal applications and improves operation efficiency.

CN115618137BActive Publication Date: 2025-08-05BEIJING CHINA POWER INFORMATION TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211245649.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-12
Publication Date
2025-08-05
Estimated Expiration
2042-10-12

AI Technical Summary

Technical Problem

In enterprise mobile portal applications, when scanning barcodes in different business scenarios, you need to find the corresponding sub-applications separately, resulting in inefficient operation.

Method used

By obtaining the image data of the target barcode, analyzing its encoding and decoding rules, using the regular expressions and application identification groups in the preset sub-application information table, a page jump protocol is generated, and directly jump to the decoding result display page of the target sub-application.

Benefits of technology

It improves the operation efficiency of enterprise mobile portal applications, reduces the opening steps of the target sub-application superior application interface, and realizes precise distinction and positioning of target sub-applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115618137B_ABST
    Figure CN115618137B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a page jump method, system, and storage medium based on universal code scanning, wherein the method includes: obtaining image data of a target barcode and parsing it, obtaining a character string corresponding to the target barcode, wherein at least some characters in the character string represent the encoding and decoding rules adopted by the target barcode, determining an application identification group of a target sub-application that adopts the same encoding and decoding rules as the target barcode based on the character string and a preset sub-application information table, calling the target sub-application based on a page jump protocol to perform image decoding on the image data of the target barcode, and jumping to the decoding result display page of the target sub-application, wherein the page jump protocol is a protocol generated based on the character string and the application identification group. The present invention improves the operational efficiency of enterprise mobile portal applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a page jump method, system and storage medium based on universal code scanning. Background Art

[0002] To meet diverse business needs, enterprise mobile portal applications integrate numerous sub-applications. Different sub-applications serve different business needs. To scan a barcode for a specific business scenario, users must locate the corresponding sub-application within the enterprise mobile portal application and then use that sub-application's scanning functionality. In practice, a single business scenario can correspond to multiple sub-scenarios, each with its own corresponding sub-application. This results in the need to search for the corresponding sub-applications separately when scanning barcodes for multiple different business scenarios, reducing the operational efficiency of the enterprise mobile portal application. Summary of the Invention

[0003] The purpose of the embodiments of the present invention is to provide a page jump method, system, and storage medium based on universal code scanning to achieve the invention purpose of improving the operational efficiency of enterprise mobile portal applications. The specific technical solution is as follows:

[0004] A page jump method based on universal code scanning, the method comprising:

[0005] Obtaining image data of a target barcode and parsing the data to obtain a character string corresponding to the target barcode, wherein at least some characters in the character string represent an encoding and decoding rule used by the target barcode;

[0006] Based on the character string and the preset sub-application information table, determining an application identification group of a target sub-application that adopts the same encoding and decoding rules as the target barcode, wherein the preset sub-application information table stores a plurality of corresponding regular expressions and application identification groups, each of the regular expressions representing an identification of a different encoding and decoding rule;

[0007] Based on a page jump protocol, the target sub-application is called to perform image decoding on the image data of the target barcode, and jumps to a decoding result display page of the target sub-application, wherein the page jump protocol is a protocol generated based on the character string and the application identification group.

[0008] Optionally, the determining, based on the character string and the preset sub-application information table, an application identification group of a target sub-application that adopts the same encoding and decoding rule as the target barcode includes:

[0009] Searching the preset sub-application information table for the regular expression that satisfies a preset string matching relationship with the string, and determining the regular expression as the target regular expression;

[0010] The application identification group corresponding to the target regular expression is determined as the application identification group of the target sub-application that adopts the same encoding and decoding rule as the target barcode.

[0011] Optionally, the application identification group includes: a sub-application identification and an initial sub-application address, and the generation process of the page jump protocol includes:

[0012] Obtain an initial page jump protocol, and add the string, the sub-application identifier, and the initial sub-application address to multiple field positions in the initial page jump protocol, respectively, to obtain the page jump protocol containing the sub-application address, wherein the sub-application address includes: the string and the initial sub-application address.

[0013] Optionally, calling the target sub-application to perform image decoding on the image data of the target barcode based on the page jump protocol and jumping to the decoding result display page of the target sub-application includes:

[0014] Accessing the target sub-application according to the sub-application address in the page jump protocol, and obtaining the sub-application identifier of the target sub-application;

[0015] When the sub-application identifier of the target sub-application is consistent with the sub-application identifier in the page jump protocol, the target sub-application is called to perform image decoding on the image data of the target barcode, and after obtaining the decoding result, jump to the decoding result display page of the target sub-application to display the decoding result.

[0016] Optionally, the process of obtaining the image data of the target barcode includes:

[0017] In response to the image acquisition instruction, the image acquisition device is called through a preset interface to acquire an image of the target barcode and obtain image data of the target barcode.

[0018] Optionally, the process of obtaining the image data of the target barcode includes:

[0019] In response to the image acquisition instruction, the image library of the mobile terminal device is called through a preset interface, and according to the operation result of the image selection operation, the selected image is acquired using a preset image acquisition algorithm to obtain the image data of the target barcode.

[0020] A page jump system based on universal code scanning, the system comprising:

[0021] An image parsing module, configured to obtain image data of a target barcode and parse the image data to obtain a character string corresponding to the target barcode, wherein at least some characters in the character string represent an encoding and decoding rule used by the target barcode;

[0022] an application identification determination module, configured to determine, based on the character string and a preset sub-application information table, an application identification group of a target sub-application that adopts the same encoding and decoding rules as the target barcode, wherein the preset sub-application information table stores a plurality of corresponding regular expressions and application identification groups, each of the regular expressions representing an identification of a different encoding and decoding rule;

[0023] The page jump module is used to call the target sub-application to perform image decoding on the image data of the target barcode based on the page jump protocol, and jump to the decoding result display page of the target sub-application, wherein the page jump protocol is a protocol generated based on the character string and the application identification group.

[0024] Optionally, the application identification determination module is configured to:

[0025] Searching the preset sub-application information table for the regular expression that satisfies a preset string matching relationship with the string, and determining the regular expression as the target regular expression;

[0026] The application identification group corresponding to the target regular expression is determined as the application identification group of the target sub-application that adopts the same encoding and decoding rule as the target barcode.

[0027] Optionally, when generating the page jump protocol, the page jump module is configured to:

[0028] Obtain an initial page jump protocol, and add the string, the sub-application identifier in the application identifier group, and the initial sub-application address in the application identifier group to multiple field positions in the initial page jump protocol, respectively, to obtain the page jump protocol containing the sub-application address, wherein the sub-application address includes: the string and the initial sub-application address.

[0029] Optionally, the page jump module is configured to:

[0030] Accessing the target sub-application according to the sub-application address in the page jump protocol, and obtaining the sub-application identifier of the target sub-application;

[0031] When the sub-application identifier of the target sub-application is consistent with the sub-application identifier in the page jump protocol, the target sub-application is called to perform image decoding on the image data of the target barcode, and after obtaining the decoding result, jump to the decoding result display page of the target sub-application to display the decoding result.

[0032] Optionally, when obtaining the image data of the target barcode, the image parsing module is configured to:

[0033] In response to the image acquisition instruction, the image acquisition device is called through a preset interface to acquire an image of the target barcode and obtain image data of the target barcode.

[0034] Optionally, when obtaining the image data of the target barcode, the image parsing module is configured to:

[0035] In response to the image acquisition instruction, the image library of the mobile terminal device is called through a preset interface, and according to the operation result of the image selection operation, the selected image is acquired using a preset image acquisition algorithm to obtain the image data of the target barcode.

[0036] A computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of a page jump system based on universal code scanning, enables the page jump system to execute any of the page jump methods based on universal code scanning described above.

[0037] The page jump method, system and storage medium based on universal code scanning provided by the embodiment of the present invention can obtain a character string, and based on the partial characters in the character string that represent the codec rule adopted by the target bar code, it can achieve a preliminary determination of the codec rule adopted by the target bar code. At the same time, by configuring regular expressions corresponding to various types of codec rules in the preset sub-application information table, and establishing a correspondence between regular expressions and application identification groups, it is possible to accurately distinguish and locate the target sub-application that can identify the target bar code. Finally, the page jump protocol generated based on the application identification group and the regular expression can achieve accurate distinction and positioning of the target sub-application in the enterprise mobile portal application due to the combination of regular expressions and application identification groups. Compared with the prior art, the present invention does not need to open the parent application interface of the target sub-application multiple times, but directly jumps to the decoding result display page, thereby reducing the operation steps of the enterprise mobile portal application and improving the operation efficiency.

[0038] Of course, it is not necessary to achieve all of the advantages described above simultaneously in order to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 A flowchart of a page jump method based on universal code scanning provided by an embodiment of the present invention;

[0041] Figure 2 A block diagram of a page jump system based on universal code scanning is provided as an optional embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0043] The embodiment of the present invention provides a page jump method based on universal code scanning, such as Figure 1 As shown, the page jump method includes:

[0044] S101. Obtain image data of a target barcode and parse it to obtain a character string corresponding to the target barcode, wherein at least some characters in the character string represent an encoding and decoding rule adopted by the target barcode.

[0045] It should be noted that in actual application scenarios, the target barcode may be of various types, such as one-dimensional barcode, two-dimensional barcode, etc. The present invention does not impose excessive restrictions on the specific type of the target barcode.

[0046] Optionally, in an alternative embodiment of the present invention, the image data may be parsed by constructing a barcode parsing algorithm that includes encoding and decoding rules for multiple types of barcodes. It should be noted that in actual application scenarios, the specific types of encoding and reporting rules included in the barcode parsing algorithm may be customized based on the actual application scenario, and the present invention does not impose any further limitations on this.

[0047] It should be noted that in actual application scenarios, the barcodes corresponding to different application scenarios or devices will add some other characters in addition to the characters specified by the encoding and decoding rules corresponding to the barcode based on actual business needs, thereby distinguishing different barcodes. For example, the barcode of an electric meter device may include characters representing information such as the manufacturer and operating parameters in addition to the characters used to identify the function of the electric meter device. Therefore, the string obtained after parsing the target barcode will contain some characters that represent the encoding and decoding rules used by the target barcode, as well as some characters that do not belong to the encoding and decoding rules.

[0048] The present invention obtains the above-mentioned character string and, based on the partial characters in the character string representing the encoding and decoding rules adopted by the target barcode, can achieve a preliminary determination of the encoding and decoding rules adopted by the target barcode, and accurately determine the sub-application that adopts the same encoding and decoding rules as the target barcode through subsequent steps.

[0049] S102. Based on the character string and the preset sub-application information table, determine the application identification group of the target sub-application that uses the same encoding and decoding rules as the target barcode, wherein the preset sub-application information table stores multiple corresponding regular expressions and application identification groups, and each regular expression represents the identification of a different encoding and decoding rule.

[0050] Optionally, in an optional embodiment of the present invention, the preset sub-application information table may include an application identification group for each sub-application in the enterprise mobile portal application, and a data group of regular expressions corresponding to each sub-application. The regular expressions may be partial strings in a codec rule, enabling differentiation between different codec rules. The application identification group includes data used to distinguish and locate the target sub-application.

[0051] It should be noted that for the same application scenario or device, the barcode encoding and decoding rules used should be consistent with the encoding and decoding rules used by the sub-application applied to the scenario or device. If other sub-applications are used to scan the barcode, there is a risk of being unable to scan or failing to scan due to differences in encoding and decoding rules. Therefore, the present invention configures regular expressions corresponding to various types of encoding and decoding rules in a preset sub-application information table, and establishes a corresponding relationship between regular expressions and application identification groups, thereby achieving accurate differentiation and positioning of target sub-applications that can recognize target barcodes.

[0052] S103. Based on a page jump protocol, call the target sub-application to perform image decoding on the image data of the target barcode, and jump to the decoding result display page of the target sub-application, wherein the page jump protocol is a protocol generated based on a character string and an application identification group.

[0053] Optionally, in an optional embodiment of the present invention, the page jump protocol may be Figure 2 The step S102 shown is generated after the application identification group of the target sub-application is determined.

[0054] It should be noted that, since multiple sub-applications are integrated into the enterprise mobile portal application, and there is an inclusion relationship between the sub-applications due to the application scenario settings. Therefore, when the existing technology calls an underlying sub-application to scan the target barcode, it is necessary to open multiple upper-level application interfaces, which leads to a decrease in the operating efficiency of the existing enterprise mobile portal application. The present invention is based on the page jump protocol generated by the application identification group and the character string, which can accurately distinguish and locate the target sub-application in the enterprise mobile portal application. Compared with the existing technology, the present invention does not need to open the upper-level application interface of the target sub-application multiple times, but directly jumps to the decoding result display page, thereby reducing the operating steps of the enterprise mobile portal application and improving the operating efficiency.

[0055] It should be noted that, in actual application scenarios, the specific format of the above page jump protocol can be set according to the actual application scenario, and the present invention does not impose too many limitations on this.

[0056] The present invention obtains a character string and, based on the partial characters in the character string that represent the encoding and decoding rules adopted by the target barcode, can achieve a preliminary determination of the encoding and decoding rules adopted by the target barcode. At the same time, by configuring regular expressions corresponding to various types of encoding and decoding rules in the preset sub-application information table, and establishing a correspondence between regular expressions and application identification groups, it is possible to accurately distinguish and locate the target sub-application that can identify the target barcode. Finally, based on the page jump protocol generated by the application identification group and the character string, it is possible to accurately distinguish and locate the target sub-application in the enterprise mobile portal application. Compared with the prior art, the present invention does not need to open the parent application interface of the target sub-application multiple times, but directly jumps to the decoding result display page, thereby reducing the operation steps of the enterprise mobile portal application and improving the operation efficiency.

[0057] Optionally, the above-mentioned determination of the application identification group of the target sub-application that adopts the same encoding and decoding rules as the target barcode based on the character string and the preset sub-application information table includes:

[0058] Searching for a regular expression that matches a preset string in the preset sub-application information table and determining it as a target regular expression;

[0059] The application identification group corresponding to the target regular expression is determined as the application identification group of the target sub-application that adopts the same encoding and decoding rule as the target barcode.

[0060] It should be noted that in actual application scenarios, there are multiple ways to implement the above-mentioned method of determining the application identification group of the target sub-application that uses the same encoding and decoding rules as the target barcode based on the character string and the preset sub-application information table. Here, an exemplary method is provided:

[0061] The encoding and decoding rule for the barcode of an electric meter device is set to start with "wldx" and add a 34-digit string. In the preset sub-application information table, the regular expression corresponding to this encoding and decoding rule is: (wldx,)d{34}$.

[0062] The obtained string is set to: wIdx, 7, 8a84a2fa800c283c018013c3e0d00024.

[0063] Using a preset string matching algorithm, the string is matched against the regular expression. Clearly, the string and the regular expression match. The application identification group corresponding to the target regular expression is then determined as the application identification group of the target sub-application that uses the same encoding and decoding rules as the target barcode.

[0064] Optionally, the application identification group includes: a sub-application identification and an initial sub-application address. The page jump protocol generation process includes:

[0065] Obtain the initial page jump protocol, and add the string, sub-application identifier and initial sub-application address to multiple field positions in the initial page jump protocol respectively to obtain a page jump protocol containing the sub-application address, wherein the sub-application address includes: a string and an initial sub-application address.

[0066] It should be noted that in actual application scenarios, there are many ways to obtain the above sub-application address. Here is an example:

[0067] Set the initial sub-application address to "index.html?param=". Set the string to "wIdx,7,8a84a2fa800c283c018013c3e0d00024". Then concatenate the initial sub-application address and the string to obtain the sub-application address: "index.html?param=wIdx,7,8a84a2fa800c283c018013c3e0d00024".

[0068] Optionally, the above-mentioned page jump protocol-based calling of the target sub-application to decode the image data of the target barcode and jump to the decoding result display page of the target sub-application includes:

[0069] Access the target sub-application according to the sub-application address in the page jump protocol and obtain the sub-application identifier of the target sub-application;

[0070] When the sub-application identifier of the target sub-application is consistent with the sub-application identifier in the page jump protocol, the target sub-application is called to perform image decoding on the image data of the target barcode, and after obtaining the decoding result, jump to the decoding result display page of the target sub-application to display the decoding result.

[0071] The sub-application address represents the location of the target sub-application within the enterprise mobile portal application. By obtaining the sub-application address, the present invention enables a direct jump from the code scanning interface to the target sub-application's decoding result display page, eliminating the need for multiple operations to enter the target sub-application interface, thereby improving the efficiency of operating the enterprise mobile portal application.

[0072] It should be noted that the present invention can avoid the risk of mismatch between the recorded data in the application identification group and the actual data of the target sub-application due to factors such as system upgrades and parameter changes by verifying the consistency of the sub-application identification of the target sub-application and the sub-application in the page jump protocol.

[0073] It should be noted that, in actual application scenarios, the decoding result display page can be the main page of the target sub-application, or it can be the result display page after the target sub-application decodes the target barcode and processes the decoded data. The present invention does not impose excessive restrictions on the specific content of the decoding result display page.

[0074] Optionally, the process of obtaining the image data of the target barcode includes:

[0075] In response to the image acquisition instruction, the image acquisition device is called through a preset interface to acquire an image of the target barcode and obtain image data of the target barcode.

[0076] Optionally, in an optional embodiment of the present invention, the above-mentioned preset interface may be an interface configured on the main interface of the enterprise mobile portal application.

[0077] Optionally, the process of obtaining the image data of the target barcode includes:

[0078] In response to the image acquisition instruction, the image library of the mobile terminal device is called through the preset interface, and according to the operation result of the image selection operation, the selected image is acquired using the preset image acquisition algorithm to obtain the image data of the target barcode.

[0079] Optionally, in an optional embodiment of the present invention, the above-mentioned image acquisition instruction may be an instruction generated by a user operation of an image acquisition interface deployed on the main interface of the enterprise mobile portal application.

[0080] Corresponding to the above method embodiment, the present invention also provides a page jump system based on universal code scanning, such as Figure 2 As shown, the page jump system includes:

[0081] An image parsing module 201 is configured to obtain image data of a target barcode and parse it to obtain a character string corresponding to the target barcode, wherein at least some characters in the character string represent the encoding and decoding rules used by the target barcode;

[0082] An application identification determination module 202 is configured to determine an application identification group of a target sub-application that uses the same encoding and decoding rules as the target barcode based on the character string and a preset sub-application information table, wherein the preset sub-application information table stores a plurality of corresponding regular expressions and application identification groups, each regular expression representing an identifier of a different encoding and decoding rule;

[0083] The page jump module 203 is used to call the target sub-application to perform image decoding on the image data of the target barcode based on the page jump protocol, and jump to the decoding result display page of the target sub-application, wherein the page jump protocol is a protocol generated based on the string and application identification group.

[0084] Optionally, the application identification determination module 202 is configured to:

[0085] Searching for a regular expression that matches a preset string in the preset sub-application information table and determining it as a target regular expression;

[0086] The application identification group corresponding to the target regular expression is determined as the application identification group of the target sub-application that adopts the same encoding and decoding rule as the target barcode.

[0087] Optionally, the page jump module 203 is configured to:

[0088] Obtain the initial page jump protocol, and add the string, the sub-application identifier in the application identifier group, and the initial sub-application address in the application identifier group to multiple field positions in the initial page jump protocol, respectively, to obtain a page jump protocol containing the sub-application address, wherein the sub-application address includes: a string and an initial sub-application address.

[0089] Optionally, the page jump module 203 is configured to:

[0090] Access the target sub-application according to the sub-application address in the page jump protocol and obtain the sub-application identifier of the target sub-application;

[0091] When the sub-application identifier of the target sub-application is consistent with the sub-application identifier in the page jump protocol, the target sub-application is called to perform image decoding on the image data of the target barcode, and after obtaining the decoding result, jump to the decoding result display page of the target sub-application to display the decoding result.

[0092] Optionally, when obtaining the image data of the target barcode, the image parsing module 201 is configured to:

[0093] In response to the image acquisition instruction, the image acquisition device is called through a preset interface to acquire an image of the target barcode and obtain image data of the target barcode.

[0094] Optionally, when obtaining the image data of the target barcode, the image parsing module 201 is configured to:

[0095] In response to the image acquisition instruction, the image library of the mobile terminal device is called through the preset interface, and according to the operation result of the image selection operation, the selected image is acquired using the preset image acquisition algorithm to obtain the image data of the target barcode.

[0096] An embodiment of the present invention also provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by the processor of the page jump system based on universal code scanning, the page jump system can execute any of the above-mentioned page jump methods based on universal code scanning.

[0097] Memory may include non-permanent memory in a computer-readable medium, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory includes at least one memory chip. Memory is an example of a computer-readable medium.

[0098] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0099] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0100] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. It should also be noted that the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, commodity, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, commodity, or device comprising the element.

[0101] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.

[0102] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A page jump method based on universal code scanning, characterized in that: The method comprises: Obtaining image data of a target barcode and parsing the data to obtain a character string corresponding to the target barcode, wherein at least some characters in the character string represent an encoding and decoding rule used by the target barcode; Searching a regular expression that satisfies a preset string matching relationship with the string from a preset sub-application information table, and determining it as a target regular expression; determining an application identification group that has a corresponding relationship with the target regular expression as an application identification group of a target sub-application that adopts the same encoding and decoding rules as the target barcode, wherein the preset sub-application information table stores a plurality of corresponding regular expressions and application identification groups, and each regular expression represents an identification of a different encoding and decoding rule; Based on the page jump protocol, the target sub-application is called to perform image decoding on the image data of the target barcode, and jump to the decoding result display page of the target sub-application, wherein the page jump protocol is a protocol generated based on the character string and the application identification group, and the generation process of the page jump protocol includes: obtaining the initial page jump protocol, and adding the character string, the sub-application identification in the application identification group and the initial sub-application address to multiple field positions in the initial page jump protocol, respectively, to obtain the page jump protocol containing the sub-application address, wherein the sub-application address includes: the character string and the initial sub-application address.

2. The method according to claim 1, characterized in that The calling of the target sub-application to perform image decoding on the image data of the target barcode based on the page jump protocol and jumping to the decoding result display page of the target sub-application includes: Accessing the target sub-application according to the sub-application address in the page jump protocol, and obtaining the sub-application identifier of the target sub-application; When the sub-application identifier of the target sub-application is consistent with the sub-application identifier in the page jump protocol, the target sub-application is called to perform image decoding on the image data of the target barcode, and after obtaining the decoding result, jump to the decoding result display page of the target sub-application to display the decoding result.

3. The method according to claim 1, characterized in that The process of obtaining the image data of the target barcode includes: In response to the image acquisition instruction, the image acquisition device is called through a preset interface to acquire an image of the target barcode and obtain image data of the target barcode.

4. The method according to claim 1, wherein The process of obtaining the image data of the target barcode includes: In response to the image acquisition instruction, the image library of the mobile terminal device is called through a preset interface, and according to the operation result of the image selection operation, the selected image is acquired using a preset image acquisition algorithm to obtain the image data of the target barcode.

5. A page jump system based on universal code scanning, characterized in that: The system comprises: An image parsing module, configured to obtain image data of a target barcode and parse the image data to obtain a character string corresponding to the target barcode, wherein at least some characters in the character string represent an encoding and decoding rule used by the target barcode; An application identification determination module is configured to search a preset sub-application information table for a regular expression that satisfies a preset string matching relationship with the string, and determine the regular expression as a target regular expression; and determine an application identification group that corresponds to the target regular expression as an application identification group of a target sub-application that adopts the same encoding and decoding rules as the target barcode, wherein the preset sub-application information table stores a plurality of corresponding regular expressions and application identification groups, and each regular expression represents an identification of a different encoding and decoding rule; A page jump module is used to call the target sub-application based on the page jump protocol to perform image decoding on the image data of the target barcode, and jump to the decoding result display page of the target sub-application, wherein the page jump protocol is a protocol generated based on the character string and the application identification group, and the generation process of the page jump protocol includes: obtaining an initial page jump protocol, and adding the character string, the sub-application identification in the application identification group and the initial sub-application address to multiple field positions in the initial page jump protocol, respectively, to obtain the page jump protocol containing the sub-application address, wherein the sub-application address includes: the character string and the initial sub-application address.

6. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of the page jump system based on universal code scanning, the page jump system is enabled to execute the page jump method based on universal code scanning as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Code scanning skip data processing method, device, equipment and system

    CN112084438A

  • Two-dimensional code processing method and device based on mobile terminal and medium

    CN114330406A