CN-121997962-A - Method, device, equipment and storage medium for aggregation decoding of electronic certificate two-dimension codes
Abstract
The invention provides a method, a device, equipment and a storage medium for aggregation decoding of two-dimension codes of electronic certificates, which scan and upload two-dimension code data to a standardized aggregation decoding interface through terminal equipment; and then inquiring the authority state of the user in real time, and automatically triggering a corresponding service processing flow according to the inquiring result. The invention realizes the full-flow automatic penetration from two-dimension code decoding, authority verification to service execution, obviously improves the compatibility, safety and processing efficiency of the system, and is suitable for the service scene under the electronic certificate line requiring high safety and high concurrence.
Inventors
- XU HAIBIN
- LI SONG
- GU YIJIAN
- Yang Jukang
- WEN LIMIN
- LIU YUANQIANG
Assignees
- 衢州市人力资源和社会保障信息中心
- 衢州市居民服务一卡通有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251230
Claims (10)
- 1. The method for aggregating and decoding the two-dimension codes of the electronic certificate is characterized by comprising the following steps of: scanning the two-dimension code of the electronic certificate presented by the user through terminal equipment to acquire two-dimension code data; calling a standardized aggregation decoding interface through the terminal equipment, and uploading the two-dimensional code data; receiving the two-dimension code data through an aggregation decoding platform, and calling an authorized decoding service interface to decode the two-dimension code data so as to acquire user identity information; inquiring the user authority state of the corresponding user according to the user identity information through the aggregation decoding platform; And triggering a corresponding service processing flow according to the inquired user permission state.
- 2. The method for aggregating and decoding the two-dimensional code of the electronic certificate according to claim 1, wherein the step of calling a standardized aggregating and decoding interface through the terminal device and uploading the two-dimensional code data specifically comprises the following steps: Constructing a request message through the terminal equipment, wherein the request message at least comprises the two-dimensional code data and equipment identification information of the terminal equipment; Encrypting the request message by adopting a national encryption algorithm, and applying a digital signature to the encrypted request message; And sending the processed request message to the aggregation decoding platform through an HTTPS protocol.
- 3. The method for aggregating and decoding two-dimensional codes of electronic certificates according to claim 1, wherein the step of receiving the two-dimensional code data through an aggregating and decoding platform and calling an authorized decoding service interface to decode the two-dimensional code data specifically comprises the steps of: analyzing the two-dimensional code data to obtain the corresponding certificate type and the code sending mechanism identification; According to the certificate type and the code sending mechanism identification, matching a corresponding target authorization decoding service interface address from a pre-configured service routing table; And initiating a decoding request to the target authorized decoding service interface address.
- 4. The method for aggregating and decoding two-dimensional codes of electronic certificates according to claim 1, further comprising, after the step of receiving the two-dimensional code data by the aggregating and decoding platform and calling an authorized decoding service interface to decode the two-dimensional code data: if decoding fails, generating a response message containing an error code, and returning the response message to the terminal equipment.
- 5. The method for aggregating and decoding two-dimension codes of electronic certificates according to claim 1, wherein the step of triggering the corresponding business process flow according to the queried user permission state comprises the following steps: If the user is inquired to have the authority of transacting the target service, calling a background service system interface associated with the target service to initiate an automatic payment or service confirmation process; If the user is inquired that the user does not have the corresponding authority, generating prompt information with insufficient authority and returning the prompt information to the terminal equipment.
- 6. The method for aggregating and decoding two-dimensional codes of electronic certificates according to claim 1, wherein after the step of calling a background service system interface associated with the target service, the method specifically comprises: receiving a processing result from the background service system; And packaging the processing result into a standardized response message, and returning the standardized response message to the terminal equipment after encryption and signature.
- 7. The method for aggregating and decoding two-dimension codes of electronic certificates according to claim 1, wherein the step of querying the user permission status of the corresponding user according to the user identity information by the aggregating and decoding platform comprises the following steps: Extracting a user identifier in the user identity information through the aggregation decoding platform; Based on the user identifier, initiating a query request to a rights center; and receiving a response from the authority center, and acquiring authority state information representing whether the user qualifies for handling the target service.
- 8. The method for aggregating and decoding the two-dimension codes of the electronic certificate is characterized by comprising the following steps of: The data acquisition module is used for scanning the electronic certificate two-dimensional code presented by the user through the terminal equipment to acquire two-dimensional code data; the data uploading module is used for calling a standardized aggregation decoding interface through the terminal equipment and uploading the two-dimensional code data; the data decoding module is used for receiving the two-dimensional code data through the aggregation decoding platform and calling an authorized decoding service interface to decode the two-dimensional code data so as to acquire user identity information; the permission query module is used for querying the user permission state of the corresponding user according to the user identity information through the aggregation decoding platform; and the service triggering module is used for triggering the corresponding service processing flow according to the inquired user permission state.
- 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of two-dimensional code aggregate decoding of electronic certificates according to any of claims 1 to 7 when the program is executed by the processor.
- 10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the electronic certificate two-dimensional code aggregation decoding method according to any one of claims 1 to 7.
Description
Method, device, equipment and storage medium for aggregation decoding of electronic certificate two-dimension codes Technical Field The present invention relates to the field of information technologies, and in particular, to a method, an apparatus, a device, and a storage medium for aggregation decoding of two-dimensional codes of electronic certificates. Background In the current electronic certificate application scenario, offline acceptance of various two-dimensional codes (such as social security cards, electronic health cards, identity certificates and the like) faces significant challenges. Traditional processing methods generally rely on customized hardware or special software for decoding, which results in serious system fragmentation and difficult compatibility with various terminal equipment and operating system environments. Meanwhile, the decoding link is often separated from the subsequent business processes (such as payment and business handling) to form a breakpoint of decoding-verification-execution, so that the complexity and development cost of system integration are increased, and additional security risks and efficiency bottlenecks are introduced. The method and the system have the advantages that the terminal is difficult to adapt due to the fact that a unified and standardized access interface is lacked, decoded identity information cannot be linked with a user real-time authority state in real time, business wind control is lagged, the whole flow is not automatic, manual intervention or multiple system call is needed, and response speed and user experience are limited. In view of the above, there is a need to solve the problems in the prior art. Disclosure of Invention The invention provides a method, a device, equipment and a storage medium for aggregation decoding of two-dimension codes of electronic certificates, which are used for solving the defects in the prior art and realizing full-flow automatic penetration from two-dimension code decoding, authority verification to service execution. The invention provides a method for aggregating and decoding two-dimension codes of electronic certificates, which comprises the following steps: scanning the two-dimension code of the electronic certificate presented by the user through terminal equipment to acquire two-dimension code data; calling a standardized aggregation decoding interface through the terminal equipment, and uploading the two-dimensional code data; receiving the two-dimension code data through an aggregation decoding platform, and calling an authorized decoding service interface to decode the two-dimension code data so as to acquire user identity information; inquiring the user authority state of the corresponding user according to the user identity information through the aggregation decoding platform; And triggering a corresponding service processing flow according to the inquired user permission state. According to the method for aggregating and decoding the two-dimension code of the electronic certificate provided by the invention, the step of calling a standardized aggregating and decoding interface through the terminal equipment and uploading the two-dimension code data specifically comprises the following steps: Constructing a request message through the terminal equipment, wherein the request message at least comprises the two-dimensional code data and equipment identification information of the terminal equipment; Encrypting the request message by adopting a national encryption algorithm, and applying a digital signature to the encrypted request message; And sending the processed request message to the aggregation decoding platform through an HTTPS protocol. According to the method for aggregating and decoding the two-dimension code of the electronic certificate, which is provided by the invention, the two-dimension code data is received through the aggregating and decoding platform, and an authorized decoding service interface is called to decode the two-dimension code data, and the method specifically comprises the following steps: analyzing the two-dimensional code data to obtain the corresponding certificate type and the code sending mechanism identification; According to the certificate type and the code sending mechanism identification, matching a corresponding target authorization decoding service interface address from a pre-configured service routing table; And initiating a decoding request to the target authorized decoding service interface address. According to the method for aggregating and decoding the two-dimension code of the electronic certificate, after the step of receiving the two-dimension code data through the aggregating and decoding platform and calling the authorized decoding service interface to decode the two-dimension code data, the method further comprises the following steps: if decoding fails, generating a response message containing an error code, and returning the response message t