CN116776911A - Service page access method, device, equipment and storage medium based on two-dimension code - Google Patents

Service page access method, device, equipment and storage medium based on two-dimension code Download PDF

Info

Publication number
CN116776911A
CN116776911A CN202310555272.7A CN202310555272A CN116776911A CN 116776911 A CN116776911 A CN 116776911A CN 202310555272 A CN202310555272 A CN 202310555272A CN 116776911 A CN116776911 A CN 116776911A
Authority
CN
China
Prior art keywords
dimensional code
service
code
mobile terminal
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310555272.7A
Other languages
Chinese (zh)
Inventor
黄新锋
杨修琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Chinasoft Information Technology Co ltd
Original Assignee
Guangzhou Chinasoft Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Chinasoft Information Technology Co ltd filed Critical Guangzhou Chinasoft Information Technology Co ltd
Priority to CN202310555272.7A priority Critical patent/CN116776911A/en
Publication of CN116776911A publication Critical patent/CN116776911A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a service page access method, device and equipment based on two-dimension codes and a storage medium, wherein the method comprises the following steps: receiving a service classification identifier and dynamic parameters which are obtained and transmitted by a mobile terminal scanning a target two-dimensional code; acquiring rule configuration corresponding to the service classification identifier from a rule database according to the service classification identifier; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address; splicing the business access address according to the callback address and the dynamic parameters in the acquired rule configuration; and after the service access address is successfully spliced, returning the service access address to the mobile terminal so that the mobile terminal jumps to a corresponding service page according to the service access address. The invention can solve the problem of single service realization scene of each two-dimension code jump in the prior art, so as to realize that one two-dimension code scanning entry supports different types of service application scenes.

Description

Service page access method, device, equipment and storage medium based on two-dimension code
Technical Field
The present invention relates to the field of code scanning technologies, and in particular, to a service page access method and apparatus based on two-dimensional codes, a terminal device, and a computer readable storage medium.
Background
In modern life, a few two-dimensional code scanning scenes exist, and the two-dimensional code scanning scenes in daily application are mainly divided into two expression forms: firstly, the display is performed in a plain text mode, and secondly, the display is performed by opening and jumping to a designated page in a link mode. However, in general, the content of each two-dimensional code in each business scenario is fixed, and the code scanning processing logic of the two-dimensional code is also fixed. If the code scanning logic of the two-dimension code is to be adjusted or the access content is to be changed, the entity two-dimension code is required to be replaced, so that the existing two-dimension code scanning mode is single in service realization scene of each two-dimension code skip, if a plurality of service application scenes exist, the two-dimension code is required to be generated separately, and a plurality of scenes with unified two-dimension code scanning requirements are unchanged.
Disclosure of Invention
The invention provides a service page access method, a device, terminal equipment and a computer readable storage medium based on two-dimension codes, which are used for solving the problem that the service realization scene of each two-dimension code jump is single in the prior art, and realizing that one two-dimension code scanning entry supports different types of service application scenes.
The embodiment of the invention provides a service page access method based on a two-dimensional code, which comprises the following steps:
receiving a service classification identifier and dynamic parameters which are obtained and transmitted by a mobile terminal scanning a target two-dimensional code;
acquiring rule configuration corresponding to the service classification identifier from a preset rule database according to the service classification identifier; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address;
splicing a service access address according to the callback address in the acquired rule configuration and the dynamic parameter;
and after the service access address is successfully spliced, returning the service access address to the mobile terminal so that the mobile terminal jumps to a corresponding service page according to the service access address.
As an improvement of the scheme, the target two-dimensional code is a link-type two-dimensional code or a text-type two-dimensional code; then the first time period of the first time period,
if the target two-dimensional code is a link-type two-dimensional code, the service classification identifier and the dynamic parameter are scanned by the mobile terminal, URL corresponding to the target two-dimensional code is accessed, and the URL is extracted from the URL;
and if the target two-dimensional code is a text two-dimensional code, the service classification identifier and the dynamic parameter are obtained by scanning the target two-dimensional code by the mobile terminal and extracting the target two-dimensional code from the text of the target two-dimensional code.
As an improvement of the above, the method includes:
responding to a two-dimension code generation request, writing new rule configuration into the rule database according to information in the two-dimension code generation request, and generating a corresponding two-dimension code based on the new rule configuration; the two-dimension code generation request comprises a service type, a two-dimension code type and a callback address corresponding to the generated two-dimension code.
As an improvement of the above solution, the method further includes:
responding to a two-dimensional code updating request, and updating rule configuration corresponding to the two-dimensional code to be modified according to information in the two-dimensional code updating request; wherein the two-dimensional code update request includes at least one of: the modified service type, the modified two-dimensional code type and the modified callback address corresponding to the two-dimensional code to be modified.
As an improvement of the above solution, when the callback address and the dynamic parameter in the rule configuration are obtained, and the service access address is spliced, the method further includes:
and if the service access address splice fails, sending two-dimensional code identification error information to the mobile terminal.
As an improvement of the above solution, the service access address represents the dynamic parameter by a placeholder.
As an improvement of the above solution, the method further includes:
recording code scanning information related to the target two-dimensional code to generate a code scanning log; the code scanning information comprises code scanning time of the mobile terminal, equipment type of the mobile terminal, IP address of the mobile terminal, service classification identification of the target two-dimensional code and two-dimensional code type of the target two-dimensional code.
Correspondingly, another embodiment of the present invention provides a service page access device based on two-dimensional codes, including:
the data receiving module is used for receiving the service classification identifier and the dynamic parameter which are obtained and transmitted by the mobile terminal by scanning the target two-dimensional code;
the rule configuration module is used for acquiring rule configuration corresponding to the service classification identifier from a preset rule database according to the service classification identifier; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address;
the address splicing module is used for splicing the service access address according to the callback address in the acquired rule configuration and the dynamic parameter;
and the data output module is used for returning the service access address to the mobile terminal after the service access address is successfully spliced, so that the mobile terminal jumps to a corresponding service page according to the service access address.
Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the two-dimensional code-based service page access method according to any one of the above when executing the computer program.
Another embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, the device where the computer readable storage medium is located is controlled to execute the two-dimensional code based service page access method according to any one of the above.
Compared with the prior art, the two-dimension code-based service page access method, the two-dimension code-based service page access device, the terminal equipment and the computer-readable storage medium disclosed by the embodiment of the invention receive the service classification identifier and the dynamic parameters which are obtained and transmitted by the mobile terminal by scanning the target two-dimension code; acquiring rule configuration corresponding to the service classification identifier from a preset rule database according to the service classification identifier; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address; splicing a service access address according to the callback address in the acquired rule configuration and the dynamic parameter; and after the service access address is successfully spliced, returning the service access address to the mobile terminal so that the mobile terminal jumps to a corresponding service page according to the service access address. Therefore, when the content to be accessed by the two-dimension code is required to be changed, the access content corresponding to the two-dimension code can be dynamically adjusted by modifying the rule configuration corresponding to the service classification identifier corresponding to the two-dimension code in the rule database without regenerating and replacing the two-dimension code, so that the problem that the service implementation scene of each two-dimension code jump in the prior art is single can be solved, and different types of service application scenes are supported by one two-dimension code scanning entry.
Drawings
Fig. 1 is a schematic flow chart of a service page access method based on a two-dimensional code according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a code scanning flow of a link type two-dimensional code according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a code scanning flow of a text type two-dimensional code according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a code scanning flow of a two-dimensional code according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a two-dimensional code rule management page according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a two-dimensional code rule configuration page according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a two-dimensional code scanning recording page provided by an embodiment of the invention;
fig. 8 is a schematic diagram of a two-dimensional code scanning detail record page provided by an embodiment of the invention;
fig. 9 is an application scenario schematic diagram of a two-dimensional code scanning method provided by an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a service page access device based on two-dimensional codes according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flow chart of a service page access method based on two-dimensional codes according to an embodiment of the present invention.
The service page access method based on the two-dimension code provided by the embodiment of the invention comprises the following steps:
s11, receiving a service classification identifier and dynamic parameters which are obtained and transmitted by a mobile terminal scanning a target two-dimensional code;
s12, according to the service classification identifier, acquiring rule configuration corresponding to the service classification identifier from a preset rule database; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address;
s13, splicing a service access address according to the callback address and the dynamic parameter in the acquired rule configuration;
and S14, after the service access address is successfully spliced, returning the service access address to the mobile terminal so that the mobile terminal jumps to a corresponding service page according to the service access address.
It can be understood that a few two-dimension code scanning scenes exist in modern life, and the two-dimension code scanning scenes are mainly suitable for information acquisition (such as business cards, maps, WIFI passwords and data), website skip (such as skip to microblogs, mobile phone websites and websites), advertisement push (such as user scanning, direct browsing of video and audio advertisements pushed by merchants), mobile phone electronic commerce (such as user scanning, direct mobile phone shopping and ordering), anti-counterfeiting tracing (such as user scanning, production place checking, and background obtaining of final consumption place), preferential promotion (such as user scanning, downloading of electronic coupons and lottery), member management (such as electronic member information obtaining on a user mobile phone, VIP service), mobile phone payment (such as scanning of commodity two-dimension codes, payment through a client channel provided by a bank or a third party), account login (such as scanning of two-dimension codes for logging of various websites or software) and the like, and the two-dimension codes greatly facilitate daily life of people. In the production and operation activities of enterprises at present, particularly in the actual scenes such as manufacturing enterprises, industrial parks and the like, the two-dimension code is mainly applied to various scenes such as equipment listing, meeting sign-in, safety identification, operation guidance, scheme display, online training examination, visitor application, security patrol and card punching and the like, and different scenes have different requirements on the display content and the display form of the two-dimension code. For example: 1. dedicated code: analyzing and accessing detailed information after scanning codes through the mobile APP which the user has logged in; and returning the original text after scanning the codes through the WeChat or the browser. Such as: checking detailed information corresponding to the two-dimensional code on the device card, and identifying through APP code scanning. 2. One code multiple purpose: the mobile APP, weChat or browser is scanned and then enters a service page, so that the method is suitable for service scenes which are not limited to be accessed by the mobile terminal, such as: visitor application, code scanning examination, conference check-in, file downloading and the like. 3. The security code: unauthorized mobile APP can not enter the appointed scene, and the authorized user is protected to use normally in the safe environment.
As an optional embodiment, the target two-dimensional code is a link-type two-dimensional code or a text-type two-dimensional code; then the first time period of the first time period,
if the target two-dimensional code is a link-type two-dimensional code, the service classification identifier and the dynamic parameter are scanned by the mobile terminal, URL corresponding to the target two-dimensional code is accessed, and the URL is extracted from the URL;
and if the target two-dimensional code is a text two-dimensional code, the service classification identifier and the dynamic parameter are obtained by scanning the target two-dimensional code by the mobile terminal and extracting the target two-dimensional code from the text of the target two-dimensional code.
Specifically, if the target two-dimensional code is a link-type two-dimensional code, the service classification identifier and the dynamic parameter are scanned by the mobile terminal, and the target two-dimensional code accesses a preset two-dimensional code center adaptation page, so that the two-dimensional code center adaptation page is extracted from a URL corresponding to the target two-dimensional code.
It should be noted that, the main applicable scenario of the text type two-dimensional code at present is the two-dimensional code on the device registration. The main application scenarios of the link-type two-dimension code are services which are not limited to access by the mobile terminal, such as: code scanning examination, visitor application, conference sign-in, scheme browsing and the like. In the invention, for text type two-dimension codes, the mobile terminal analyzes and accesses detailed information after scanning the codes through the mobile APP, or returns to the original text after scanning the codes through a WeChat or a browser. And for the link type two-dimensional code, the mobile terminal enters a service page after scanning the code through a mobile APP, a WeChat or a browser.
Illustratively, the original text format of the linked two-dimensional code is:
https://ip:port/qrcode-adapterbizCode=EXAM&id=xxx&param1=1&param2=2;
wherein the link address and dynamic parameters are configurable.
Illustratively, the original text format of the text type two-dimensional code is:
DEVICE 01LAC10MA001; the text type two-dimensional code comprises a text type two-dimensional code and a text type two-dimensional code, wherein the text type two-dimensional code is characterized in that a first behavior service classification identifier and a dynamic parameter of an original text of the text type two-dimensional code are separated through an English colon. In addition, the second line of the text type two-dimensional code can be provided with preset coding information for representing other information.
It should be noted that, the URL corresponding to the target two-dimensional code is the original text of the target two-dimensional code, after the mobile terminal scans the target two-dimensional code and obtains the original text of the target two-dimensional code, the mobile terminal judges whether the content of the original text is a link through a preset regular expression, if so, the target two-dimensional code is a link type two-dimensional code; and if not, judging that the target two-dimensional code is a text two-dimensional code. Specifically, the regular expression is: (http|https):/([ \w. ] +/; if the URL of the target two-dimensional code is determined to be the link URL by the regular expression, after the complete URL is obtained, a first character is preset in the URL according to a split function [ is? Performing layer-by-layer decomposition on the second character ([ & gt) ] and the preset second character, and storing the decomposed parameters in a corresponding array. For example: the URL corresponding to the target two-dimensional code is 'https:// ip: port/qrcode-adaptation binary code=EXAM & id=xxx & param1=1 & param2=2', and the [ binary code ] represents a service classification identifier, and other parameters are used as dynamic parameters.
In some optional embodiments, when the callback address and the dynamic parameter in the rule configuration are obtained, and the service access address is spliced, the method further includes:
and if the service access address splice fails, sending two-dimensional code identification error information to the mobile terminal.
For example, assume that the execution subject of the method is a pre-built two-dimensional code adaptation center, taking a link-type two-dimensional code as an example, and assume that the link-type two-dimensional code is: https:// ip: port/qrcode-adaptation binary code=exam & id=xxx & param1=1 & param2=2 ", and the mobile terminal scans the text type two-dimensional code through the mobile terminal APP or WeChat. Referring specifically to fig. 2 and 4, the processing logic of the linked two-dimensional code is as follows: a1: after the mobile terminal APP or the WeChat scans the code, directly accessing the URL corresponding to the link-type two-dimensional code, namely a pre-built two-dimensional code center adaptation page; a2: the two-dimensional code center adaptation page extracts the service classification identifier biz_code and dynamic parameters in the URL, and sends a request to the two-dimensional code adaptation center to acquire a complete service access address. A3: the two-dimension code adaptation center obtains corresponding rule configuration through the service classification identifier, splices the callback address and the dynamic parameter in the request parameter in the rule configuration into a complete service access address, performs log recording according to the code scanning log switch, returns success information and the service access address after successful splicing, and sends two-dimension code identification error information to the mobile terminal after failure so as to prompt a user that the current linked two-dimension code is an nonstandard two-dimension code. A4: after the two-dimensional code center adaptation page acquires the return information of successful verification, the two-dimensional code center adaptation page jumps to the service page according to the service access address.
For example, assume that the execution subject of the method is a pre-built two-dimensional code adaptation center, taking a text-type two-dimensional code as an example, and assume that the text-type two-dimensional code is: "DEVICE 01LAC10MA001", the mobile terminal scans the text type two-dimensional code through the mobile terminal APP or WeChat. Referring specifically to fig. 3 and 4, the text-type two-dimensional code processing logic is as follows: b1: after mobile terminal APP or WeChat scans codes, firstly extracting service classification identification and dynamic parameters from text. B2: and initiating a request to a two-dimensional code adaptation center according to the service classification identifier and the dynamic parameters, and acquiring a final service access address. B3: the two-dimension code adaptation center obtains corresponding rule configuration through the service classification identifier, splices a complete service access address according to a callback address and dynamic parameters in the rule configuration, performs log record according to a code scanning log switch, returns success information and the service access address to the mobile terminal after the splicing is successful, and sends two-dimension code identification error information to the mobile terminal after the splicing fails so as to prompt a user that the current text-type two-dimension code is an nonstandard two-dimension code. B4: after receiving the return information, the mobile terminal APP or WeChat jumps to the corresponding service page according to the service access address.
In some preferred embodiments, the method comprises:
responding to a two-dimension code generation request, writing new rule configuration into the rule database according to information in the two-dimension code generation request, and generating a corresponding two-dimension code based on the new rule configuration; the two-dimension code generation request comprises a service type, a two-dimension code type and a callback address corresponding to the generated two-dimension code.
Further, the method further comprises:
responding to a two-dimensional code updating request, and updating rule configuration corresponding to the two-dimensional code to be modified according to information in the two-dimensional code updating request; wherein the two-dimensional code update request includes at least one of: the modified service type, the modified two-dimensional code type and the modified callback address corresponding to the two-dimensional code to be modified.
Referring to fig. 5, the only constraint of two-dimensional code rule management is: service classification identification + two-dimensional code type. And if the two-dimension code scene of each service function needs to be accessed through the mobile terminal APP unified code scanning entrance, rule configuration needs to be newly added in a rule database, and then each service function generates a corresponding two-dimension code according to the rule configuration.
Optionally, the two-dimensional code generation request further includes a code scanning log record switch corresponding to the generated two-dimensional code.
Specifically, if the code scanning log switch is turned on, code scanning information related to the generated two-dimensional code is recorded; and if the code scanning log switch is closed, code scanning information related to the generated two-dimensional code is not recorded. Therefore, when the callback address and the dynamic parameter in the obtained rule configuration are spliced to obtain the service access address, the method further comprises: and carrying out code scanning log record according to the code scanning log switch in the rule configuration.
For example, referring to fig. 6, in the rule configuration of the two-dimensional code, it includes: 1. service type: and defining the service type according to the service application scene of the two-dimension code so as to formulate a unified dynamic parameter specification of the two-dimension code according to the service type. 2. Two-dimensional code type: the two-dimensional code scanning method comprises the steps of dividing a link type two-dimensional code and a text type two-dimensional code, wherein the two-dimensional code scanning logic of different types is different. 3. Callback address: after the mobile terminal scans the code and identifies and passes through the two-dimensional code adaptation center, the service access address which is finally accessed can represent dynamic parameters through the placeholder. For example: link two-dimensional code callback address example: https:// ip: port/context/biz/{ biz_id? param1= { param1_value } & param2= { param2_value }, text two-dimensional code callback address example: https:// ip: port/context/biz/{ biz_id }, or https:// ip: port/context/bizid = { biz_id }. 4. Scanning code records: whether a two-dimensional code scanning log switch is started or not so as to scan the code record.
In a specific embodiment, the method further comprises:
recording code scanning information related to the target two-dimensional code to generate a code scanning log; the code scanning information comprises code scanning time of the mobile terminal, equipment type of the mobile terminal, IP address of the mobile terminal, service classification identification of the target two-dimensional code and two-dimensional code type of the target two-dimensional code.
For example, referring to fig. 7 and 8, the default ordering rule of the two-dimensional code scan code record list is: and (5) reversing the sequence according to the code scanning time. The default query conditions of the two-dimensional code scanning record list are as follows: the code scanning time is three months recently. The method can record service classification identification, service classification name, two-dimension code type, code scanning result, mobile terminal type (namely equipment type), mobile terminal IP (namely IP address), code scanning time, code scanning person, code scanning content and the like, and specific content can be adaptively adjusted according to actual conditions.
Further, the service access address represents the dynamic parameter by a placeholder.
As can be understood, referring to fig. 9, the method and its corresponding execution body (e.g. pre-built two-dimensional code adaptation center) 1 support provision of two-dimensional code rule configuration for each service function, support of text-type two-dimensional code and link-type two-dimensional code; 2. two-dimensional codes are generated in modes of supporting fixed texts, fixed addresses, dynamic parameter transmission and the like, and online generation and export are supported; 3. providing a public interface method, and supporting service application to generate a two-dimensional code according to the existing rule; 4. supporting code scanning through a one-scan function of a mobile APP home page, and accessing specific business after adaptation and verification; 5. and the mobile terminal type and IP are recorded when the code scanning is supported, and the code scanning statistics function is provided.
It is worth to say that, on the one hand, the method and the device can realize that one two-dimensional code scanning entrance supports different types of business scenes, meanwhile avoid the security risk of leakage of sensitive information of unauthorized application scanning codes, and solve the problems of non-uniform standard, unfriendly experience and the like caused by multiple entrance of the two-dimensional code scanning. On the other hand, after the code scanning, the mobile terminal APP is directly transferred into a corresponding service use scene according to the user permission, so that the user use experience can be greatly improved, and background service management is facilitated. The method can be used for various scenes such as various governments, enterprises, industrial parks, and the like which are provided with multi-type two-dimensional code use and need to perform unified mobile application management and control.
Referring to fig. 10, a schematic structural diagram of a service page access device based on two-dimensional codes according to an embodiment of the present invention is provided.
The service page access device based on the two-dimension code provided by the embodiment of the invention comprises the following components:
the data receiving module 21 is used for receiving the service classification identifier and the dynamic parameter obtained and sent by the mobile terminal scanning the target two-dimensional code;
the rule configuration module 22 is configured to obtain, according to the service classification identifier, rule configuration corresponding to the service classification identifier from a preset rule database; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address;
the address splicing module 23 is configured to splice out a service access address according to the obtained callback address in the rule configuration and the dynamic parameter;
and the data output module 24 returns the service access address to the mobile terminal after the service access address is successfully spliced, so that the mobile terminal jumps to a corresponding service page according to the service access address.
As an optional embodiment, the target two-dimensional code is a link-type two-dimensional code or a text-type two-dimensional code; then the first time period of the first time period,
if the target two-dimensional code is a link-type two-dimensional code, the service classification identifier and the dynamic parameter are scanned by the mobile terminal, URL corresponding to the target two-dimensional code is accessed, and the URL is extracted from the URL;
and if the target two-dimensional code is a text two-dimensional code, the service classification identifier and the dynamic parameter are obtained by scanning the target two-dimensional code by the mobile terminal and extracting the target two-dimensional code from the text of the target two-dimensional code.
In some preferred embodiments, the apparatus further comprises:
the two-dimension code generation module is used for responding to a two-dimension code generation request, writing new rule configuration into the rule database according to information in the two-dimension code generation request, and generating a corresponding two-dimension code based on the new rule configuration; the two-dimension code generation request comprises a service type, a two-dimension code type and a callback address corresponding to the generated two-dimension code.
In a specific embodiment, the apparatus further comprises:
the two-dimensional code updating module is used for responding to a two-dimensional code updating request and updating rule configuration corresponding to the two-dimensional code to be modified according to information in the two-dimensional code updating request; wherein the two-dimensional code update request includes at least one of: the modified service type, the modified two-dimensional code type and the modified callback address corresponding to the two-dimensional code to be modified.
In some alternative embodiments, the data output module 24 is further configured to:
and when the service access address is spliced according to the callback address and the dynamic parameter in the acquired rule configuration, if the service access address is spliced to fail, sending two-dimension code identification error information to the mobile terminal.
Further, the service access address represents the dynamic parameter by a placeholder.
Specifically, the device further comprises:
the code scanning recording module is used for recording code scanning information related to the target two-dimensional code so as to generate a code scanning log; the code scanning information comprises code scanning time of the mobile terminal, equipment type of the mobile terminal, IP address of the mobile terminal, service classification identification of the target two-dimensional code and two-dimensional code type of the target two-dimensional code.
It should be noted that, the relevant detailed description and the beneficial effects of each embodiment of the two-dimensional code based service page access device of the present embodiment may refer to the relevant detailed description and the beneficial effects of each embodiment of the two-dimensional code based service page access method, which are not described herein.
Referring to fig. 11, a schematic structural diagram of a terminal device according to an embodiment of the present invention is provided.
The terminal device provided by the embodiment of the invention comprises a processor 10, a memory 20 and a computer program stored in the memory 20 and configured to be executed by the processor 10, wherein the two-dimensional code-based business page access method in any embodiment is realized when the processor 10 executes the computer program.
The steps in the above-mentioned two-dimensional code based service page access method embodiment are implemented when the processor 10 executes the computer program, for example, all the steps of the two-dimensional code based service page access method shown in fig. 1. Alternatively, the processor 10 may implement the functions of each module/unit in the embodiment of the two-dimensional code based service page access device when executing the computer program, for example, the functions of each module of the two-dimensional code based service page access device shown in fig. 10.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory 20 and executed by the processor 10 to perform the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program in the terminal device.
The terminal equipment can be computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device may include, but is not limited to, a processor 10, a memory 20. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of a terminal device and does not constitute a limitation of the terminal device, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 10 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 10 is the control center of the terminal device, and connects the various parts of the entire terminal device using various interfaces and lines.
The memory 20 may be used to store the computer program and/or module, and the processor 10 implements various functions of the terminal device by running or executing the computer program and/or module stored in the memory 20 and invoking data stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the terminal device integrated modules/units may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as stand alone products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Another embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, the device where the computer readable storage medium is controlled to execute the two-dimensional code based service page access method according to any one of the foregoing method embodiments.
In summary, the service page access method, the device, the terminal equipment and the computer readable storage medium based on the two-dimension code provided by the embodiment of the invention receive the service classification identifier and the dynamic parameter obtained and sent by the mobile terminal by scanning the target two-dimension code; acquiring rule configuration corresponding to the service classification identifier from a preset rule database according to the service classification identifier; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address; splicing a service access address according to the callback address in the acquired rule configuration and the dynamic parameter; and after the service access address is successfully spliced, returning the service access address to the mobile terminal so that the mobile terminal jumps to a corresponding service page according to the service access address. Therefore, when the content to be accessed by the two-dimension code is required to be changed, the access content corresponding to the two-dimension code can be dynamically adjusted by modifying the rule configuration corresponding to the service classification identifier corresponding to the two-dimension code in the rule database without regenerating and replacing the two-dimension code, so that the problem that the service implementation scene of each two-dimension code jump in the prior art is single can be solved, and different types of service application scenes are supported by one two-dimension code scanning entry.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (10)

1. A service page access method based on a two-dimensional code is characterized by comprising the following steps:
receiving a service classification identifier and dynamic parameters which are obtained and transmitted by a mobile terminal scanning a target two-dimensional code;
acquiring rule configuration corresponding to the service classification identifier from a preset rule database according to the service classification identifier; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address;
splicing a service access address according to the callback address in the acquired rule configuration and the dynamic parameter;
and after the service access address is successfully spliced, returning the service access address to the mobile terminal so that the mobile terminal jumps to a corresponding service page according to the service access address.
2. The two-dimensional code-based business page access method of claim 1, wherein the target two-dimensional code is a link-type two-dimensional code or a text-type two-dimensional code; then the first time period of the first time period,
if the target two-dimensional code is a link-type two-dimensional code, the service classification identifier and the dynamic parameter are scanned by the mobile terminal, URL corresponding to the target two-dimensional code is accessed, and the URL is extracted from the URL;
and if the target two-dimensional code is a text two-dimensional code, the service classification identifier and the dynamic parameter are obtained by scanning the target two-dimensional code by the mobile terminal and extracting the target two-dimensional code from the text of the target two-dimensional code.
3. The two-dimensional code-based business page access method as claimed in claim 1, wherein the method comprises:
responding to a two-dimension code generation request, writing new rule configuration into the rule database according to information in the two-dimension code generation request, and generating a corresponding two-dimension code based on the new rule configuration; the two-dimension code generation request comprises a service type, a two-dimension code type and a callback address corresponding to the generated two-dimension code.
4. The two-dimensional code based service page access method as claimed in claim 3, wherein the method further comprises:
responding to a two-dimensional code updating request, and updating rule configuration corresponding to the two-dimensional code to be modified according to information in the two-dimensional code updating request; wherein the two-dimensional code update request includes at least one of: the modified service type, the modified two-dimensional code type and the modified callback address corresponding to the two-dimensional code to be modified.
5. The two-dimensional code based service page access method according to claim 1, wherein when the service access address is spliced according to the obtained callback address and the dynamic parameter in the rule configuration, the method further comprises:
and if the service access address splice fails, sending two-dimensional code identification error information to the mobile terminal.
6. The two-dimensional code based service page access method of claim 1, wherein the service access address represents the dynamic parameter by a placeholder.
7. The two-dimensional code-based business page access method of claim 1, further comprising:
recording code scanning information related to the target two-dimensional code to generate a code scanning log; the code scanning information comprises code scanning time of the mobile terminal, equipment type of the mobile terminal, IP address of the mobile terminal, service classification identification of the target two-dimensional code and two-dimensional code type of the target two-dimensional code.
8. The utility model provides a business page access arrangement based on two-dimensional code which characterized in that includes:
the data receiving module is used for receiving the service classification identifier and the dynamic parameter which are obtained and transmitted by the mobile terminal by scanning the target two-dimensional code;
the rule configuration module is used for acquiring rule configuration corresponding to the service classification identifier from a preset rule database according to the service classification identifier; the rule database comprises a plurality of rule configurations which are in one-to-one correspondence with the service classification identifiers, and each rule configuration comprises a callback address;
the address splicing module is used for splicing the service access address according to the callback address in the acquired rule configuration and the dynamic parameter;
and the data output module is used for returning the service access address to the mobile terminal after the service access address is successfully spliced, so that the mobile terminal jumps to a corresponding service page according to the service access address.
9. A terminal device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the two-dimensional code based service page access method according to any one of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program when run controls a device in which the computer readable storage medium is located to execute the two-dimensional code based service page access method according to any one of claims 1 to 7.
CN202310555272.7A 2023-05-16 2023-05-16 Service page access method, device, equipment and storage medium based on two-dimension code Pending CN116776911A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310555272.7A CN116776911A (en) 2023-05-16 2023-05-16 Service page access method, device, equipment and storage medium based on two-dimension code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310555272.7A CN116776911A (en) 2023-05-16 2023-05-16 Service page access method, device, equipment and storage medium based on two-dimension code

Publications (1)

Publication Number Publication Date
CN116776911A true CN116776911A (en) 2023-09-19

Family

ID=87995385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310555272.7A Pending CN116776911A (en) 2023-05-16 2023-05-16 Service page access method, device, equipment and storage medium based on two-dimension code

Country Status (1)

Country Link
CN (1) CN116776911A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117708447A (en) * 2024-02-06 2024-03-15 杭州数云信息技术有限公司 Parameter transmission method and device based on graphic code, readable storage medium and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117708447A (en) * 2024-02-06 2024-03-15 杭州数云信息技术有限公司 Parameter transmission method and device based on graphic code, readable storage medium and terminal
CN117708447B (en) * 2024-02-06 2024-05-14 杭州数云信息技术有限公司 Parameter transmission method and device based on graphic code, readable storage medium and terminal

Similar Documents

Publication Publication Date Title
US10976923B2 (en) Enhanced virtual keyboard
US9904469B2 (en) Keyboard stream logging
CN102474432B (en) Social network virtual private network
US9864671B1 (en) Systems and methods of live experimentation on content provided by a web site
CN105763635B (en) Information processing method, system and server
CN107979632B (en) Processing method, device and system for push information
CN108733991A (en) Web application access method and device, storage medium
CN106850794A (en) Method and apparatus, server and terminal for operating group
CN107015996A (en) A kind of resource access method, apparatus and system
CN108718337B (en) Website account login, verification and verification information processing method, device and system
US20190342753A1 (en) Device configuration method, apparatus and system
US10768810B2 (en) Enhanced keyboard including multiple application execution
US20220366066A1 (en) Display method, display device, and electronic device
CN116776911A (en) Service page access method, device, equipment and storage medium based on two-dimension code
CN104461537A (en) Browser kernel based multi-service integration system
CN113923610A (en) Short message service platform based on 5G communication
US10341129B2 (en) Method and system to provide the trending news stories to the plurality of groups based on the plurality of group members existing conversations
US20140157104A1 (en) Dynamic sharing and updating of a web page
CN106209584A (en) User profile processing method based on the Internet, client and server
CN113946739A (en) Sensitive data query method, device, equipment and storage medium
US20200234240A1 (en) Book information collaboration system and method
US20130036374A1 (en) Method and apparatus for providing a banner on a website
CN108737350B (en) Information processing method and client
CN110278178A (en) A kind of login method, equipment and readable storage medium storing program for executing
CN111885139B (en) Content sharing method, device and system, mobile terminal and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination