CN110321498A - A kind of two dimensional code generates and analyzing method and device - Google Patents

A kind of two dimensional code generates and analyzing method and device Download PDF

Info

Publication number
CN110321498A
CN110321498A CN201810276664.9A CN201810276664A CN110321498A CN 110321498 A CN110321498 A CN 110321498A CN 201810276664 A CN201810276664 A CN 201810276664A CN 110321498 A CN110321498 A CN 110321498A
Authority
CN
China
Prior art keywords
url
information
resource
dimensional code
application
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
CN201810276664.9A
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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201810276664.9A priority Critical patent/CN110321498A/en
Publication of CN110321498A publication Critical patent/CN110321498A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems

Abstract

This application provides a kind of generation of two dimensional code and analyzing method and devices, URL resource information can be generated according to the URL routing information and URL parameter information of Internet resources and is showed with quick response code form, user can obtain URL resource information by scanning the two dimensional code, and the corresponding URL prefix information of the URL resource information is obtained by the authorization application on mobile terminal, complete URL is obtained further according to URL resource information and URL prefix information and accesses the Internet resources using the URL;The user of installation authorization application is not unable to get complete URL then on mobile terminals, can not access the Internet resources, to realize the flexible control to network resource accession user, improve the manageability of network resource accession.

Description

A kind of two dimensional code generates and analyzing method and device
Technical field
This application involves information technology field more particularly to a kind of two dimensional code generates and analyzing method and device.
Background technique
URI (Uniform Resource Identifier, uniform resource identifier) is used to identify the resource on internet Title can identify every kind of available resource such as html document, image, video, program etc. on internet, and user passes through URI Formula processing is interacted to the Internet resources identified, such as executes read operation, update operation.URI is generally by three parts Composition: host name, identifier and relative URI, host name shows to store the title of itself of resource, by path representation, identifier Point out the segment inside resource, the path of relative URI is generally directed towards the resource on same machine.URL is URI (Uniform Resource Locator, uniform resource locator) a subset close, resource for describing to obtain on the internet Position and access method.URL includes following component part: agreement (or method of service), the host address and resource for having resource Specific path on host etc..
Due to the developing history and use habit of URL, URL is mainly used for needing to access the various fields of Internet resources at present It closes.
Apply for content
The purpose of the application is to provide a kind of two dimensional code and generates and analyzing method and device.
To achieve the above object, some embodiments of the present application provide a kind of method for generating two dimensional code in equipment end, Wherein, this method comprises: obtaining URL routing information and URL parameter information;It is generated according to URL routing information and URL parameter information URL resource information relevant to URL;The two dimensional code about URL is generated according to the URL resource information.
Other embodiments of the application additionally provide a kind of method in mobile terminal parsing two dimensional code, wherein the party Method includes: starting application scanning and parses two dimensional code, obtains URL resource information;If the application is target application, the target Using the extraction URL routing information from the URL resource information;According to the URL routing information, URL prefix information is obtained;Knot The URL prefix information and the URL resource information are closed, the URL for access is obtained.
Some embodiments of the present application additionally provide a kind of equipment, which includes for storing computer program instructions Memory and processor for executing program instructions, wherein when the computer program instructions are executed by the processor, triggering The equipment executes the aforementioned method for generating two dimensional code in equipment end.
In addition, some embodiments of the present application additionally provide a kind of mobile terminal, which includes for storing computer The memory of program instruction and processor for executing program instructions, wherein when the computer program instructions are by the processor When execution, triggers the terminal and execute the aforementioned method in mobile terminal parsing two dimensional code.
Some embodiments of the present application additionally provide a kind of computer-readable medium, are stored thereon with computer-readable finger It enables, the computer-readable instruction can be executed by processor to realize aforementioned in equipment end and generate the method for two dimensional code and in movement The method of terminal parsing two dimensional code.
Compared with prior art, scheme provided by the present application can be according to the URL routing information and URL parameter of Internet resources Information is generated URL resource information and is showed with quick response code form, and user can obtain URL resource by scanning the two dimensional code Information, and the corresponding URL prefix information of the URL resource information is obtained by the authorization application on mobile terminal, it is provided further according to URL Source information and URL prefix information obtain complete URL and access the Internet resources using the URL;It does not install on mobile terminals The user of authorization application is then unable to get complete URL, the Internet resources can not be accessed, to realize to network resource accession The flexible control of user, improves the manageability of network resource accession.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart for method that two dimensional code is generated in equipment end that some embodiments of the present application provide.
Fig. 2 is a kind of two dimensional code figure preferably generated according to URL resource information that some embodiments of the present application provide Picture.
Fig. 3 is a kind of flow chart for method that two dimensional code is parsed in mobile terminal that some embodiments of the present application provide.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In a typical configuration of this application, mobile terminal and the network equipment include one or more processors (CPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or Any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, computer Readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
The embodiment of the present application provides a kind of method for generating two dimensional code in equipment end.The equipment end may include network Equipment end or mobile terminal.The network equipment may include but be not limited to the services such as centralized server or distributed server and set It is standby;Mobile terminal includes but is not limited to the mobile terminals such as mobile phone, tablet computer, laptop.As shown in Figure 1, this method Specifically comprise the following steps:
Step S101 obtains URL routing information and URL parameter information;
Step S102 generates URL resource information relevant to URL according to URL routing information and URL parameter information;
Step S103 generates the two dimensional code about URL according to the URL resource information.
If the two dimensional code about URL is generated by the network equipment, the network equipment can after generating the two dimensional code, by this about The two dimensional code of URL is sent to terminal, such as mobile terminal or fixed terminal, for the terminal display two dimensional code.If about URL's Two dimensional code is generated by mobile terminal, which can directly show the two dimensional code about URL, or sends it to other and set It is standby, the processing such as to be printed, be stored.The network equipment can be set by accessing its database or with wireless access point is provided The modes such as standby communication, obtain the information needed for it.Mobile terminal can by access its database or with the network equipment or provide nothing The modes such as the equipment communication of line access point, obtain the information needed for it.
The program is especially suitable in the occasion for needing to carry out the scanning user of two dimensional code network resource accession control, Relevant to URL URL resource information can be generated according to the URL routing information and URL parameter information of Internet resources, then will be with The relevant URL resource information of URL generates corresponding two dimensional code by two dimensional code Core Generator, for needing to access the Internet resources User, which passes through to scan the two-dimensional code, to be obtained URL resource information and obtains the complete URL of Internet resources using authorization application, then carries out phase Answer the access of resource.The two dimensional code of generation can be used various ways and be shown, such as is printed on paper displaying, is given birth to It is distributed to after mobile terminal and is shown by mobile terminal by its screen, by generating the two dimensional code at the network equipment of the two dimensional code Mobile terminal passes through its screen displaying etc..
Here, URL routing information refers to the routing information for locating network resources, i.e. Internet resources such as HTML text The information of the storage position on the server such as part, picture, video or application program;In some embodiments, which is advised with URI Fixed character string forms statement.When stating the storage position of Internet resources on the server, can be used display or Implicit two ways.Display mode clearly indicates the catalogue and filename of Internet resources to be accessed, and is expressed as catalogue+filename Form, such as under a scene URL routing information be "/w/z/n ", show Internet resources to be accessed be server directory "/w/ File " n " under z/ ".
Implicit is the catalogue for only indicating Internet resources to be accessed, and is expressed as the form of only catalogue, catalogue is with "/" knot Tail, such as URL routing information are "/w/z/n/ ", and the Internet resources of actual access are under server directory "/w/z/n/ " at this time Default document, this default document are usually index.html or default.htm.That is, URL routing information is expressed as The Internet resources of actual access are exactly that URL routing information is expressed as "/w/z/n/index.html " or "/w/z/ when "/w/z/n/ " The Internet resources accessed when n/default.htm ".Implicit can be used for simplifying the statement of URL routing information.
URL parameter information is used to transmit relevant resource parameters to Internet resources.In some embodiments of the present application, money Source parameter may include the access information of wireless access point (i.e. wifi hotspot), also may include other about Network resource allocation Parameter and parameter about business function.It in general, all can include URL parameter information in URL, but can also be in URL The Internet resources of URL instruction are used when access does not include the URL of URL parameter information not comprising URL parameter information Default parameters.The access information of wireless access point may include but be not limited to the identification information and password of the wireless access point, use In providing necessary certification to wireless access point;The identification information of wireless access point may be, for example, SSID.In some embodiments, Parameter about Network resource allocation can also include but is not limited to: router mac address, router cipher mode, router Signal strength and communication channel etc.;In some embodiments, router mac address indicates the MAC Address of wireless router, communication Channel refers to the data-signal Transfer pipe using wireless signal as transmission media, such as wireless " frequency range ".About business function Parameter may include but be not limited to following parameter: share user, client release number and sources.In some embodiments, divide It enjoys family and indicates which user has carried out information sharing;Sources point out the sources of user, such as from the first cooperation The channel of quotient, channel from the second partner etc..As preferred embodiment, in step s101, URL parameter letter is obtained Following processing step specifically can be used when breath: obtaining the resource parameters about URL first, be then assembled into the resource parameters The URL parameter information of URL key-value pair form.For example, there are two resource parameters p and s about URL, corresponding parameter value difference For " gst " and " ft ", above-mentioned resource parameters are assembled into URL key-value pair form, the URL parameter information of generation is " p=gst&s =ft ".In some embodiments, the parameter value of some resource parameters may be variation, need real-time when generating key-value pair It obtains.
For sharing the scene of wifi password between user, a user wants to share a wifi by mobile terminal The password of hot spot give another user, wherein share the user of the password of wifi hotspot, i.e., sharing user, mobile terminal on Application with information sharing function has been installed, and the SSID of the wifi hotspot and close has been known by the application Code;The application or the application of its affiliate side are installed on the mobile terminal of another user.Here, what affiliate side referred to It is the third party manufacturer for reaching cooperation agreement with the application, which can know what the application provided by cooperation agreement The technical information such as external interface, internal mechanism.
Sharing user generates corresponding two dimensional code for generating the function of wifi hotspot information using in the application, supplies Another scanning input obtains.Here, the application can obtain URL routing information, the URL of acquisition from built-in database automatically Routing information can such as "/www/wifi/com ".Resource parameters about URL may be from multiple support channels.For example, using from interior Set the part URL parameter information such as " ssid=wifi123456&pass=that the partial parameters value obtained in database is assembled into 123456&mac=0c729c229d29&encryption=wpa-psk ".Also, the wifi of the application also dynamic from connection is warm Point acquisition another part parameter is assembled to obtain another part URL parameter information, such as " signal=45&channel=10 ". The URL parameter information that finally two parts URL parameter information is assembled into is " ssid=wifi123456&pass=123456& Mac=0c729c229d29&encryption=wpa-psk&signal=45&channel=10 ".
In some embodiments, URL parameter information can also be simultaneously comprising the business function parameter about URL, these industry Business functional parameter can be obtained from application message by application;For example, business function parameter about URL of the application according to acquisition Assembly obtains character string " shareuser=user1&version=2.0.8&source=baidu ", and by above-mentioned three parts It is " ssid=wifi123456&pass=123456&mac=that character string, which is assembled together finally obtained URL parameter information, 0c729c229d29&encryption=wpa-psk&signal=45&channel=10&sha reuser=user1& Version=2.0.8&source=baidu ".
The URL routing information and URL parameter information that can be used when assembled URL resource information relevant to URL, such as Fruit URL parameter information is sky, and it is next assembled can also to only use URL routing information.As preferred embodiment, in assembly above-mentioned two Can be by URL routing information in preceding, the posterior sequence of URL parameter information when information, and connection is added after URL routing information Symbol.For example, connector can be "? ".In some embodiments, URL routing information and URL parameter information are all character string, because This URL resource information connected by character string is also character string.In one embodiment above-mentioned, the path URL character String is "/w/z/n ", and URL parameter character string is " p=gst&s=ft ", and URL path string and URL parameter character string are passed through Connector "? " connect obtained URL resource character string be "/w/z/n? p=gst&s=ft ".In addition, dividing between aforementioned user In the embodiment for enjoying wifi hotspot password, finally obtained URL resource information can for "/www/wifi/com? ssid= Wifi123456&pass=123456&mac=0c729c229d29&encryption=wpa-p sk&signal=45& Channel=10&shareuser=user1&version=2.0.8&source=baidu ".
In addition, obtaining to provide a user for the URL resource information for accessing Internet resources for convenience of resource access user A kind of easy means that can be obtained in URL resource information to mobile terminal allow resource access user word for word to key in a manual manner The mode of URL resource information is worthless.Two dimensional code mode is used in some embodiments of the present application to obtain sharing Information, two dimensional code as it is a kind of simple, conveniently, wieldy coding mode information, can be used between resource access user Information is shared or resource access user obtains the several scenes such as the information service of public service quotient offer.
Specifically, obtained URL resource information is generated into the two dimensional code about URL, this step needs raw using two dimensional code Obtained URL resource information is encoded and converted at tool, finally obtains the image according to certain Rule Expression.For example, Share URL resource information obtained in the usage scenario of wifi hotspot password between aforementioned user to generate by two dimensional code Core Generator Image in 2 D code it is as shown in Figure 2.
Some embodiments of the present application additionally provide a kind of method in mobile terminal parsing two dimensional code, as shown in figure 3, should Method specifically comprises the following steps:
Step S201 starts application scanning and parses two dimensional code, obtains URL resource information;
Step S202, if the application is target application, the target application extracts URL from the URL resource information Routing information;
Step S203 obtains URL prefix information according to the URL routing information;
Step S204, and in conjunction with the URL prefix information and the URL resource information, obtain the URL for access.
The program is used to be parsed to obtain URL resource information to the two dimensional code generated in aforementioned schemes, and according to parsing Obtained URL resource information obtains URL prefix information, finally obtains the complete URL that can be used for accessing network.The application's is some In embodiment, any user can be used the mobile terminal with two-dimensional code scanning function and be scanned to obtain to the two dimensional code Part URL information is obtained, is only mounted with the mobile terminal available complete URL of assembly of ability of authorization application, and complete according to this Whole URL accesses corresponding Internet resources.One complete URL is in addition to the URL resource comprising being obtained by parsing the two dimensional code It also include URL prefix information except information.In some embodiments of the present application, mainly obtained by limiting mobile terminal user URL prefix information accesses network the management and control of user to realize, user is by authorizing application to obtain corresponding URL prefix After information, energy assembly obtains complete URL and accesses the corresponding Internet resources of the URL.
In step s 201, mobile terminal starting have the application of two-dimensional code scanning function to the two dimensional code of aforementioned generation into Row scanning, external tool, such as camera, scanner etc. can be used to be easy to implement image when which is scanned two dimensional code The equipment of identification.After being scanned by two-dimensional code scanning device to two dimensional code, mobile terminal applies the two dimensional code to acquisition Image carries out parsing identification, is decoded by using the format information carried in image in 2 D code to two dimensional code, obtains URL's Resource information, the partial information that the URL for accessing network is contained in the resource information of the URL specifically contain URL routing information and URL parameter information, URL parameter information can be null value.Here, mobile terminal use have two dimensional code The application of scanning function can be target application, be also possible to non-targeted application.Target application refers to authorized application, Its preset matched rule can obtain URL prefix based on the URL routing information in URL resource information, to obtain complete URL for example, the provider of target application is provider or the partner of the two dimensional code, and is configured with correspondence for the target application Two dimensional code decoding capability.Non-targeted application is then not authorized application, the information that can not be provided according to the two dimensional code URL prefix information is obtained, therefore assembled complete URL cannot be obtained.
In step S202, if the application that mobile terminal uses is target application, target application can be from back URL routing information is extracted in URL resource information obtained in rapid;If the application is non-targeted application, i.e., unauthorized Application, which can show the prompt information of access URL resource information, and the confirmation according to user to prompt information to user The Internet resources of operational access URL resource information instruction, to obtain the installation kit of target application.It downloading, be installed target After, reuses target application and the two dimensional code is scanned, can be obtained complete URL.
In step S203, target application obtains URL prefix information according to obtained URL routing information.Here, URL Prefix information refers to the relevant information for server address where showing network access protocol and Internet resources, network access Agreement indicates the mode of access Internet resources, current to use on the internet there are many kinds of network access protocol, most common net Network access protocol is HTTP (Hypertext Transfer Protocol, hypertext transfer protocol).Service where Internet resources Device address is used to indicate the corresponding internet access address of server of storage Internet resources, including two parts: IP address (Internet Protocol Address, internet protocol address) and port numbers.Every kind of network access protocol has itself correspondence Default port number, if only specifying network access protocol and IP address, indicating that the port numbers that use of network access are should The corresponding default port number of network access protocol.Such as the default port number of network access protocol HTTP is 80, URL prefix information To show to access the service that IP address is " 202.114.35.24 " by http protocol when " HTTP: // 202.114.35.24 " 80 ports of device.Since the digital form of IP address only facilitates the reading of machine, it is unfavorable for it is appreciated that and remembering, internet Domain name technology is developed again, domain name and IP address have been subjected to mutual mapping, and user is facilitated to access internet, current internet clothes The address of business device is indicated all in the form of domain name substantially, translates domain names into IP address by DNS service.Such as URL prefix Information is " FTP: //www.xxx.com:8080 ", and domain name " www.xxx.com " obtains IP address by domain name mapping and is " 202.114.35.24 " then shows 8080 ends that the server that IP address is " 202.114.35.24 " is accessed by File Transfer Protocol Mouthful.
In addition, URL prefix information also may include user account and encrypted message, for the network for needing further to authenticate Resource provides log-on message.Such as URL prefix information is that " HTTP: //guest:123456@www.xxx.com:8080 " shows By http protocol with user account for " guest ", account number cipher is the clothes of " 123456 " access domain entitled " www.xxx.com " 8080 ports of business device.
The URL resource information that parsing two dimensional code obtains can be used for obtaining corresponding URL prefix information.It specifically, is root URL prefix information is obtained according to the routing information in URL resource information, and a variety of methods can be used when obtaining URL prefix information, Such as mapping table method, the rule of correspondence of URL routing information and URL prefix information is contained in mapping table, according to URL routing information Can corresponding URL prefix information directly be searched in default mapping table;Such as transformation approach, URL routing information is passed through preset Transformation rule is transformed into URL prefix information etc..For example, the obtained URL resource character string of identification two dimensional code be "/w/z/n? p= Gst&s=ft " is searched in the mapping table according to URL routing information therein "/w/z/n ", wherein there are a mapping rulers to be " URL routing information: '/w/z/n ', URL prefix information: ' HTTP: //www.xxx.com ' ", then the URL routing information is found Correspondence URL prefix information be " HTTP: //www.xxx.com ".That shares wifi hotspot password between aforementioned user uses field Jing Zhong, another user be by scanning the two-dimensional code to obtain URL resource information character string "/www/wifi/com? ssid= Wifi123456&pass=123456&mac=0c729c229d29&encryption=wpa-p sk&signal=45& Channel=10&shareuser=user1&version=2.0.8&source=baidu ", wherein URL routing information be "/www/wifi/com ", application or the application of affiliate side can be according to built-in mapping rulers: character transformation rule is by the road URL Diameter information is converted into URL prefix information, and character transformation rule here is " character '/' is converted to character ' ' ", obtains URL prefix information is " .www.wifi.com ", then removes the character " " of foremost and plus respective protocol " http: // ", is obtained It is " http://www.wifi.com " to final URL prefix information.
After obtaining URL prefix information, it is attached with the URL resource information parsed by two dimensional code, is connected Sequence is URL prefix information preceding, and for URL resource information rear, when connection does not need connector, directly carries out assembly, can obtain Obtain URL.Specifically, the URL of acquisition is a character string, includes access protocol, the domain name of network resource server, server Catalogue and the information such as resource parameters, corresponding Internet resources may have access to by URL.For example, URL prefix information is " HTTP: //www.xxx.com ", URL resource information be "/w/z/n? p=gst&s=ft ", the complete URL that the two is assembled into is " HTTP: //www.xxx.com/w/z/n? p=gst&s=ft ".That shares wifi hotspot password between aforementioned user uses field Jing Zhong, by URL prefix information and URL resource information be attached rear finally obtained complete URL be " http: // Www.wifi.com/www/wifi/com? ssid=wifi123456&pass=123456&mac=0c729c229d29& Encryption=wpa-psk&signal=45&channel=10&shareuser=user1& version=2.0.8& Source=baidu ".
After obtaining complete URL, since URL gives the access identities of Internet resources, if the mobile terminal of user It has connected to network at this time, corresponding Internet resources directly can have been accessed by the URL, for example, user can be by the URL of acquisition It is input to the address field of web browser, the access result of the corresponding Internet resources of URL can be obtained by web browser;Such as Fruit user is the URL obtained in the application and application program provides the function that network access is carried out by URL, Yong Huke To directly obtain the corresponding resource access result of URL in the application.Share the reality of wifi hotspot password between aforementioned user Apply in example, after scanning input two dimensional code can by application or affiliate side application automatically derive complete URL, then, using or The network that affiliate side applies the access information call operation system further according to wireless access point in complete URL to provide accesses The corresponding wifi hotspot of API connection realizes the automatic connection for sharing wifi hotspot.
If the mobile terminal for obtaining user after complete URL connects to network not yet, user can be connect by obtaining network Enter information to connect network, can also voluntarily find attachable WIFI or URL is accessed by mobile communication.Here, the network Access information can be obtained from URL prefix information or URL parameter information, if access information is obtained from URL prefix, therewith Associated URL resource information, which may include URL parameter information, can also not include URL parameter information, need to only believe comprising the path URL Breath;If access information is obtained from URL parameter information, needed in the URL resource information that is associated comprising URL routing information With URL parameter information.
Some embodiments of the present application additionally provide a kind of equipment, which includes for storing computer program instructions Memory and processor for executing program instructions, wherein when the computer program instructions are executed by the processor, triggering The equipment executes the aforementioned method for generating two dimensional code in equipment end.
Some embodiments of the present application additionally provide a kind of mobile terminal, which includes referring to for storing computer program The memory of order and processor for executing program instructions, wherein when the computer program instructions are executed by the processor, It triggers the terminal and executes the aforementioned method in mobile terminal parsing two dimensional code.
Some embodiments of the present application additionally provide a kind of computer-readable medium, are stored thereon with computer-readable finger It enables, the computer-readable instruction can be executed by processor to realize aforementioned in equipment end and generate the method for two dimensional code and in movement The method of terminal parsing two dimensional code.
In conclusion scheme provided by the present application can be raw according to the URL routing information and URL parameter information of Internet resources Being showed at URL resource information and with quick response code form, user can obtain URL resource information by scanning the two dimensional code, And the corresponding URL prefix information of the URL resource information is obtained by the authorization application on mobile terminal, believe further according to URL resource Breath and URL prefix information obtain complete URL and access the Internet resources using the URL;Not installation authorization on mobile terminals The user of application is then unable to get complete URL, can not access the Internet resources, to realize to network resource accession user Flexible control, improve the manageability of network resource accession.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, the software program of the application can be executed to implement the above steps or functions by processor.Similarly, the application Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, example Such as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution. And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, including an equipment according to one embodiment of the application, which includes using Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to When enabling by processor execution, method and/or skill of the equipment operation based on aforementioned multiple embodiments according to the application are triggered Art scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple Unit or device can also be implemented through software or hardware by a unit or device.

Claims (15)

1. a kind of method in mobile terminal parsing two dimensional code, wherein this method comprises:
Starting application scanning simultaneously parses two dimensional code, obtains URL resource information;
If the application is target application, the target application extracts URL routing information from the URL resource information;
According to the URL routing information, URL prefix information is obtained;
In conjunction with the URL prefix information and the URL resource information, the URL for access is obtained.
2. according to the method described in claim 1, wherein, this method further include:
The target application extracts URL parameter information from the URL resource information;It is used based on the URL parameter information acquisition In the access information of access network, and connect network.
3. according to the method described in claim 1, wherein, this method further include:
The target application is used to access the access information of network based on the URL prefix information acquisition, and connects network.
4. according to the method described in claim 1, wherein, obtaining URL prefix information according to the URL routing information, comprising:
The corresponding URL prefix information of the URL routing information is obtained according to preset mapping ruler.
5. according to the method described in claim 1, wherein, obtaining URL prefix information according to the URL routing information, comprising:
The URL prefix information is generated according to the URL routing information.
6. according to the method described in claim 1, wherein, this method further include:
If the application is non-targeted application, the non-targeted application is in response to user to accessing the URL resource information really Operation is recognized, by the URL resource information access network, to obtain the installation kit of the target application.
7. according to the method described in claim 1, wherein, being used in conjunction with the URL prefix information and the URL resource information In the URL of access, comprising:
The URL prefix information and the URL resource information are linked in sequence to generate the URL.
8. a kind of method for generating two dimensional code in equipment end, wherein this method comprises:
Obtain URL routing information and URL parameter information;
URL resource information relevant to URL is generated according to URL routing information and URL parameter information;
The two dimensional code about URL is generated according to the URL resource information.
9. according to the method described in claim 8, wherein, generating URL resource letter according to URL routing information and URL parameter information Breath, comprising:
The URL routing information is connected with the URL parameter information sequentially through connector, it is relevant to URL to generate URL resource information.
10. according to the method described in claim 8, wherein, the acquisition URL parameter information, comprising:
Obtain the resource parameters about URL;
The resource parameters are assembled into the URL parameter information of URL key-value pair form.
11. according to the method described in claim 10, wherein, the resource parameters about URL include connecing for wireless access point Enter information.
12. according to the method described in claim 10, wherein, the resource parameters about URL further include in following information One or more: router mac address, router signal strength, communication channel, shares user, client at router cipher mode Hold version number and sources.
13. a kind of mobile terminal, which includes memory for storing computer program instructions and for executing journey The processor of sequence instruction, wherein when the computer program instructions are executed by the processor, trigger equipment perform claim requirement Method described in any one of 1 to 7.
14. a kind of equipment, which includes memory for storing computer program instructions and for executing program instructions Processor, wherein when the computer program instructions are executed by the processor, trigger the equipment perform claim and require in 8 to 12 Described in any item methods.
15. a kind of computer-readable medium, is stored thereon with computer-readable instruction, the computer-readable instruction can be processed Device is executed to realize the method as described in any one of claims 1 to 12.
CN201810276664.9A 2018-03-30 2018-03-30 A kind of two dimensional code generates and analyzing method and device Pending CN110321498A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810276664.9A CN110321498A (en) 2018-03-30 2018-03-30 A kind of two dimensional code generates and analyzing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810276664.9A CN110321498A (en) 2018-03-30 2018-03-30 A kind of two dimensional code generates and analyzing method and device

Publications (1)

Publication Number Publication Date
CN110321498A true CN110321498A (en) 2019-10-11

Family

ID=68111487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810276664.9A Pending CN110321498A (en) 2018-03-30 2018-03-30 A kind of two dimensional code generates and analyzing method and device

Country Status (1)

Country Link
CN (1) CN110321498A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147235A (en) * 2019-12-23 2020-05-12 杭州宏杉科技股份有限公司 Object access method and device, electronic equipment and machine-readable storage medium
CN112214698A (en) * 2020-09-29 2021-01-12 瑞庭网络技术(上海)有限公司 Information processing method and device
CN113486996A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Two-dimensional code image processing method and device, storage medium and electronic device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030229857A1 (en) * 2002-06-05 2003-12-11 Fuji Xerox Co., Ltd. Apparatus, method, and computer program product for document manipulation which embeds information in document data
CN101005485A (en) * 2006-12-14 2007-07-25 钟杨 Method and system for compression coding information resource address
CN101098338A (en) * 2006-06-29 2008-01-02 中兴通讯股份有限公司 Method for implementing multimedia information content protection
CN101252788A (en) * 2008-04-11 2008-08-27 北京首信科技有限公司 Diameter-AAA server supporting RADIUS protocol and working method thereof
CN101447937A (en) * 2009-02-27 2009-06-03 北京理工大学 Rapid data positioning method based on path division and multi-distributed-directory
CN102609544A (en) * 2012-03-12 2012-07-25 腾讯科技(深圳)有限公司 Method and device for obtaining information as well as mobile terminal
CN102682105A (en) * 2012-05-04 2012-09-19 高凌 System and method for identifying and acquiring related web page information by using mobile terminal
CN102917023A (en) * 2012-09-19 2013-02-06 腾讯科技(深圳)有限公司 Method and mobile terminal for accessing webpage based on two-dimension code
US20140018105A1 (en) * 2012-07-12 2014-01-16 Brian K. O'Neil Method and System for Logic-Based Uniform Resource Locator Resolution
CN103632184A (en) * 2013-12-13 2014-03-12 金蝶软件(中国)有限公司 Two-dimension code generation method, two-dimension code use method, two-dimension code generator and user equipment
CN104991896A (en) * 2015-05-26 2015-10-21 百度在线网络技术(北京)有限公司 Method and apparatus for analyzing two-dimension codes
CN105392136A (en) * 2014-09-09 2016-03-09 中兴通讯股份有限公司 Method and device for access to router based on two-dimensional code
CN105472694A (en) * 2014-09-05 2016-04-06 腾讯科技(深圳)有限公司 Method and device for accessing WiFi through scanning two-dimensional code
CN107172070A (en) * 2017-06-15 2017-09-15 小草数语(北京)科技有限公司 Resource access processing method and device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030229857A1 (en) * 2002-06-05 2003-12-11 Fuji Xerox Co., Ltd. Apparatus, method, and computer program product for document manipulation which embeds information in document data
CN101098338A (en) * 2006-06-29 2008-01-02 中兴通讯股份有限公司 Method for implementing multimedia information content protection
CN101005485A (en) * 2006-12-14 2007-07-25 钟杨 Method and system for compression coding information resource address
CN101252788A (en) * 2008-04-11 2008-08-27 北京首信科技有限公司 Diameter-AAA server supporting RADIUS protocol and working method thereof
CN101447937A (en) * 2009-02-27 2009-06-03 北京理工大学 Rapid data positioning method based on path division and multi-distributed-directory
CN102609544A (en) * 2012-03-12 2012-07-25 腾讯科技(深圳)有限公司 Method and device for obtaining information as well as mobile terminal
CN102682105A (en) * 2012-05-04 2012-09-19 高凌 System and method for identifying and acquiring related web page information by using mobile terminal
US20140018105A1 (en) * 2012-07-12 2014-01-16 Brian K. O'Neil Method and System for Logic-Based Uniform Resource Locator Resolution
CN102917023A (en) * 2012-09-19 2013-02-06 腾讯科技(深圳)有限公司 Method and mobile terminal for accessing webpage based on two-dimension code
CN103632184A (en) * 2013-12-13 2014-03-12 金蝶软件(中国)有限公司 Two-dimension code generation method, two-dimension code use method, two-dimension code generator and user equipment
CN105472694A (en) * 2014-09-05 2016-04-06 腾讯科技(深圳)有限公司 Method and device for accessing WiFi through scanning two-dimensional code
CN105392136A (en) * 2014-09-09 2016-03-09 中兴通讯股份有限公司 Method and device for access to router based on two-dimensional code
CN104991896A (en) * 2015-05-26 2015-10-21 百度在线网络技术(北京)有限公司 Method and apparatus for analyzing two-dimension codes
CN107172070A (en) * 2017-06-15 2017-09-15 小草数语(北京)科技有限公司 Resource access processing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147235A (en) * 2019-12-23 2020-05-12 杭州宏杉科技股份有限公司 Object access method and device, electronic equipment and machine-readable storage medium
CN112214698A (en) * 2020-09-29 2021-01-12 瑞庭网络技术(上海)有限公司 Information processing method and device
CN113486996A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Two-dimensional code image processing method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US10033818B2 (en) Using listen ranges to deliver content to electronic devices from local caching servers
US9350559B2 (en) Service discovery across different networks
US8433800B2 (en) Smart link system and method
US9357017B2 (en) Method and apparatus for automatic service discovery and connectivity
JP6588477B2 (en) Remote information query method and server
US9444780B1 (en) Content provided DNS resolution validation and use
US11303604B2 (en) Advanced resource selection
WO2018049730A1 (en) 302 jump method, url generation method and system, and domain name resolution method and system
US20120278854A1 (en) System and method for device addressing
US20070124422A1 (en) Data push service method and system using data pull model
US7783718B2 (en) Locating services using compiled scopes
RU2654854C1 (en) Method for collecting data on wireless communication device user and machine-readable medium for method implementation
CN110321498A (en) A kind of two dimensional code generates and analyzing method and device
US20150381716A1 (en) Method and system for sharing files over p2p
US11632411B2 (en) Method and apparatus for cascaded multi-input content preparation templates for 5G networks
CN105335682B (en) A kind of source synchronous playback method, system and server
WO2017181407A1 (en) Network authentication method, client, terminal device and platform
CN110555175A (en) Two-dimensional code analyzing and generating method and equipment
US20230216825A1 (en) Gateway based ip address translation in communication networks
US8073957B2 (en) Communication control system
KR102435756B1 (en) Device group control system and method for controlling the same
WO2021082945A1 (en) Remote management method and system, terminal device and server
KR20150119668A (en) File sharing method and system using a e-mail message
CN107395583B (en) Method and device for realizing communication between different applications based on natural language
US20190124071A1 (en) Access to network data from a plurality of sources using a single identification value

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