Summary of the invention
This application provides a kind of system and method for generating URL, the reliability existing for solve in a manner of existing generation URL
Deficiency, the problem of cannot targetedly analyzing.
In a first aspect, to achieve the above object, this application provides a kind of system for generating URL, the system comprises:
Platform Type obtains module and obtains the Platform Type from the parameter information prestored for obtaining Platform Type
Corresponding parameter preset;
The URL minor generation module of Platform Type, for generating URL of the Platform Type according to the first preset rules
Formula;
Inlet style obtains module and obtains the inlet style from the parameter information prestored for obtaining inlet style
Corresponding parameter preset;
The URL minor generation module of inlet style, for generating URL of the inlet style according to the second preset rules
Formula;
Recommend position type acquisition module, obtains and recommend position type, recommendation position class is obtained from the parameter information prestored
The corresponding parameter preset of type;
The URL minor generation module for recommending position type, for generating the recommendation position type according to third preset rules
URL minor;
URL generation module, for generating URL according to the 4th preset rules, the URL includes at least application program entry
URL minor, the URL minor of the Platform Type, the URL minor of the inlet style and the URL minor for recommending position type,
The URL minor of the application program entry is obtained from the parameter information prestored.
Preferably, the system of the generation URL, further includes:
The subtype of inlet style obtains module, for obtaining the subtype of the inlet style, from the parameter letter prestored
The corresponding parameter preset of subtype of the inlet style is obtained in breath;
The URL minor generation module of the subtype of inlet style, for generating the entrance class according to the 5th preset rules
The URL minor of the subtype of type.
Preferably, the system of the generation URL, further includes:
Recommend bit identification to obtain module, recommends bit identification for obtaining;
The URL minor generation module for recommending bit identification, for generating the recommendation bit identification according to the 6th preset rules
URL minor.
Preferably, the system of the generation URL, further includes:
The URL minor of application program entry obtains module, for obtaining the URL minor of application program entry.
Preferably, the system of the generation URL, further includes:
URL memory module, for storing URL;
Screening module meets the Platform Type, inlet style and/or pushes away for filtering out in the URL memory module
Recommend the URL of the corresponding URL minor of a type.
Second aspect, the application also provide a kind of method for generating URL, which comprises
Platform Type is obtained, the corresponding parameter preset of the Platform Type is obtained from the parameter information prestored;
The URL minor of the Platform Type is generated according to the first preset rules;
Inlet style is obtained, the corresponding parameter preset of the inlet style is obtained from the parameter information prestored;
The URL minor of the inlet style is generated according to the second preset rules;
It obtains and recommends position type, type corresponding parameter preset in the recommendation position is obtained from the parameter information prestored;
The URL minor for recommending position type is generated according to third preset rules;
URL is generated according to the 4th preset rules, the URL includes at least the URL minor of application program entry, the platform
The URL minor of type, the URL minor of the inlet style and the URL minor for recommending position type, the application program entry
URL minor obtained from the parameter information prestored.
Preferably, after the URL minor that the inlet style is generated according to the second preset rules, further includes:
The subtype for obtaining the inlet style obtains the subclass of the inlet style from the parameter information prestored
The corresponding parameter preset of type;
The URL minor of the subtype of the inlet style is generated according to the 5th preset rules.
Preferably, after the URL minor that the recommendation position type is generated according to third preset rules, further includes:
It obtains and recommends bit identification;
The URL minor for recommending bit identification is generated according to the 6th preset rules.
Preferably, before the URL according to the generation of the 4th preset rules, further includes:
Obtain the URL minor of application program entry.
Preferably, first preset rules are as follows: the parameter preset of Platform Type described in lmsl=.
By above technical scheme as it can be seen that a kind of system and method for generating URL provided by the embodiments of the present application, are specially obtained
Platform Type is taken, the corresponding parameter preset of the Platform Type is obtained from the parameter information prestored;According to the first preset rules
Generate the URL minor of the Platform Type;Inlet style is obtained, it is corresponding that the inlet style is obtained from the parameter information prestored
Parameter preset;The URL minor of the inlet style is generated according to the second preset rules;It obtains and recommends position type, from what is prestored
Type corresponding parameter preset in the recommendation position is obtained in parameter information;Recommendation position type is generated according to third preset rules
URL minor;URL is generated according to the 4th preset rules.A kind of system and method generating URL provided by the embodiments of the present application can
To be quickly obtained and meet the reliable entrance URL of operation personnel's demand.It can reduce the work of developer, product personnel
Amount, facilitates operation personnel to be quickly obtained the URL report that user enters application, be convenient for the product OA operation analysis of next step with
Planning.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The application can be limited.
Specific embodiment
It is described in detail below by the application, will become more with these explanations the characteristics of the application with advantage
It is clear, clear.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.Although each of embodiment is shown in the attached drawings
In terms of kind, but unless otherwise indicated, it is not necessary to attached drawing drawn to scale.
In the description of the present application, it should be noted that term " on ", "lower", "inner", "outside", "front", "rear", " left side "
The orientation or positional relationship of instructions such as " right sides " is based on the orientation or positional relationship under the application working condition, merely to just
In description the application and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, with
Specific orientation construction and operation, therefore should not be understood as the limitation to the application.In addition, term " first ", " second ", "
Three " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance with " the 4th ".
With reference to the accompanying drawing, the specific embodiment of the application is discussed in detail.
Uniform resource locator (or uniform resource locator/positioning address, the address URL etc., English: Uniform
ResourceLocator is often abbreviated as URL) it is access, positioning and the main stream approach for calling network service resource.URL can be
The address of standard resource on internet, every kind of resource has a unique URL on internet.URL may include transportation protocol,
The component parts such as server (usually domain name is sometimes IP address), port numbers, path and query argument.Traditional URL communication
In mode, query argument generally writes in URL in clear text manner.In the Web page service under using http protocol, pass through
URL (domain name+resource address) requests Web server, and server receives request, returns to corresponding resource according to the parsing address URL,
To browse webpage information.In traditional Web exploitation, the corresponding interconnection in an address URL takes one that Web is engaged on device and actually deposits
The html page, the name in the path URL of website has been directly related to the frame structure and design scheme of website, and one is good
The name in the path URL can not only reduce the difficulty in optimization, while can quickly improve the weight of website, be conducive to search for
The crawl of engine, user can more easily remember network address by observing the structure semantics of URL.
URL is commonly called as web page address, is the address of the resource of standard on internet.For example, the format of URL can be with are as follows: association
Discuss type: [// [credential information that access resource needs] server address [: port numbers]] [/ resource level unix file road
Diameter] filename [? inquiry] [# segment ID].Wherein it is possible to the component part for including are as follows:
Transportation protocol (such as http)
Level URL label symbol (for [//], immobilizes)
Access the credential information (can omit) that resource needs
Server (usually domain name is sometimes IP address)
Port numbers (indicate in a digital manner, if HTTP default value ": can 80 " omit)
Path (with each of "/" character difference path directory name)
Inquiry (the forms parameter of GET mode is properly termed as argument section, search part, query portion etc., with "? " character
For starting point, each parameter can be separated with " & ", then separate parameter name and data with "=", can be encoded with the URL of UTF8,
The problem of avoiding character conflict) segment (often using " # " character as starting point, part to the last can be anchor section).
It is understood that wherein access credentials information, port numbers, segment etc. belong to optional part, it is not composition URL
Necessary component.It include the original query parameter for query resource in query portion, due to separating parameter name with "="
With data, then original query parameter may include the data on the right of "=", for example, original query parameter may include the value of ID.
For example, https: //item.mi.com/product.do? in id=10000030, the value 10000030 of id is the original of plaintext
Beginning query argument.For another example, ftp: //prep.ai.mit.edu/pub/gnu;Type=d? in item=123, the value 123 of item
The as original query parameter of plaintext.
The operation that video interrogation system is related to is executed by the third-party institution, needs the recommendation by product allocation to other side's platform
On position, can could just there be customer flow entrance.And when being configured to the recommendation position of other side's platform, it is desirable to provide LES server is answered
With entrance URL, including entering the URL using homepage, into the URL of application album, into the URL of application activity.Existing side
Formula is manually generated, it is easy to be wrongly write, the reliability using entrance URL of generation cannot effectively guarantee;Once it wrongly writes,
It would be possible to lead to not enter our applications.In addition the name in the path URL of website is also relate to subsequent query analysis
The name of step, a good path URL can not only reduce the difficulty in optimization, be conducive to the crawl of search engine, use
Family can more easily remember network address by observing the structure semantics of URL, be conducive to targetedly analysis operation.
Fig. 1 is a kind of structural schematic diagram of system for generating URL provided by the embodiments of the present application, and Fig. 2 be that generation URL is
The partial structure diagram of system, as shown in Figure 1 and Figure 2, the system comprises:
Platform Type obtains module 101 and obtains the platform class from the parameter information prestored for obtaining Platform Type
The corresponding parameter preset of type;
The URL minor generation module 102 of Platform Type, for generating the Platform Type according to the first preset rules
URL minor.
Specifically, the Platform Type is indicated with lmsl, the corresponding parameter preset of the Platform Type with hd indicate high definition,
Sd indicates SD;For another example: certain brand high definition -- hd-100 is added wherein 100 represent certain brand i.e. table-top type with pure digi-tal
Below.Wherein, first preset rules are as follows: the parameter preset of Platform Type described in lmsl=.If the platform of user's selection
Type be " high definition " after, according to the first preset rules generate the Platform Type URL minor are as follows: lmsl=hd.If with
Family selects Platform Type for " some brand high definition ", according to the URL minor for the Platform Type that the first preset rules generate are as follows:
Lmsl=hd-100,
Wherein, the parameter information is pre-stored in parameter information memory module 701, and internus is corresponding with parameter preset to close
System, following parameter informations can be prestored with same rule, be repeated no more.
Inlet style obtains module 201 and obtains the entrance class from the parameter information prestored for obtaining inlet style
The corresponding parameter preset of type;
The URL minor generation module 202 of inlet style, for generating the inlet style according to the second preset rules
URL minor.
Specifically, the inlet style is indicated with lmuf, the corresponding parameter preset of the inlet style are as follows: 0- homepage, 1-
Album, 2- activity.Wherein, second preset rules are as follows: the parameter preset of inlet style described in lmuf=.If user selects
Inlet style be " homepage " after, according to the second preset rules generate the inlet style URL minor are as follows: lmuf=0.
Recommend position type acquisition module 301, recommends position type for obtaining, pushed away described in acquisition from the parameter information prestored
Recommend the corresponding parameter preset of a type;
The URL minor generation module 302 for recommending position type, for generating recommendation position type according to third preset rules
URL minor.
Specifically, recommendation position type is indicated with lmcid, i.e. region ID, such as certain carrier ID-xxxxx.Wherein, institute
State third preset rules are as follows: the parameter preset for recommending position type described in lmcid=is pushed away according to the generation of third preset rules
Recommend the URL minor of a type are as follows: lmcid=xxxxx.
The URL minor of application program entry obtains module 401, for obtaining the URL minor of application program entry.
URL generation module 402, for generating URL according to the 4th preset rules, the URL enters including at least application program
URL minor, the URL minor of the Platform Type, the URL minor of the inlet style and the URL for recommending position type of mouth
The URL minor of minor, the application program entry is obtained from the parameter information prestored.
Specifically, the URL minor of the application program entry is to default in the parameter information memory module 800,
Format are as follows: http://ip:port/index.php?, wherein ip is the address ip of host where lWS server, and Port is lWS
The port that server is monitored, other areas then only change ip and port.
URL is generated according to the 4th preset rules are as follows:
Http:// ip:port/index.php? lmuf=0&lmsl=hd-100&lmcid=xxxxxx.
Wherein, the 4th rule is URL described in each URL minor combination producing.In addition, in the URL generated, for obtaining
The sequence of URL minor does not limit.Before generating URL, the URL minor of aforementioned generation is obtained.When generating URL, above-mentioned condition is not
It can be sky.
It further, further include the subtype acquisition module 501 of inlet style, for obtaining the subclass of the inlet style
Type obtains the corresponding parameter preset of subtype of the inlet style from the parameter information prestored;
The URL minor generation module 502 of the subtype of inlet style, for generating the entrance according to the 5th preset rules
The URL minor of the subtype of type.
Specifically, the subtype of the inlet style is indicated with lmsid, and the subtype of the inlet style is corresponding default
Parameter are as follows: when lmuf is 0, the content of this field is meaningless;When for 1,2, what lmsid was represented is the son under this inlet style
Type, if it is album, then which album represents is, if it is activity, then which activity represents is.Wherein, the described 5th is pre-
If regular are as follows: the parameter preset of the subtype of inlet style described in lmsid=.If the subtype of the inlet style of user's selection
After " 0 ", according to the URL minor of the subtype of the inlet style of the 5th preset rules generation are as follows: lmsid=0.Then generate
URL it is as follows:
Http:// ip:port/index.php? lmuf=0&lmsid=0&lmsl=hd-100&lmcid=xxxxxx.
Further, further include that bit identification is recommended to obtain module 601, recommend bit identification for obtaining;
The URL minor generation module 602 for recommending bit identification, for generating the recommendation bit identification according to the 6th preset rules
URL minor.
Specifically, the recommendation bit identification indicates that the recommendation bit identification is distributed automatically by system with lmp.Described 6th
Preset rules are as follows: recommend bit identification described in lmp=, according to the URL minor for the recommendation bit identification that the 6th preset rules generate
Are as follows: lmp=0.The URL then generated is as follows:
Http:// ip:port/index.php? lmuf=0&lmsid=0&lmsl=hd-100&lmcid=xxxxxx&
Lmp=0.
The concrete application of the URL system of generation described herein is as shown in Figure 3-Figure 5.Pass through technology described herein
Scheme generates URL from dynamic according to certain condition and format, can quickly obtain and meet the reliable of operation personnel's demand
Entrance URL can reduce the workload of developer, product personnel.And it can be increased according to specific requirements and generate URL minor
Condition, make the URL generated convenient for query statistic, conducive to the product OA operation analysis and planning of next step.
Corresponding with a kind of generation system embodiment of URL provided by the present application, present invention also provides a kind of generation URL
Method embodiment.It is described for a kind of flow diagram for the method for generating URL provided by the embodiments of the present application referring to Fig. 6
Method includes:
S100: Platform Type is obtained, the corresponding parameter preset of the Platform Type is obtained from the parameter information prestored;Root
The URL minor of the Platform Type is generated according to the first preset rules;
S200: inlet style is obtained, the corresponding parameter preset of the inlet style is obtained from the parameter information prestored;Root
The URL minor of the inlet style is generated according to the second preset rules;
S300: it obtains and recommends position type, type corresponding default ginseng in the recommendation position is obtained from the parameter information prestored
Number;The URL minor for recommending position type is generated according to third preset rules;
S400: URL is generated according to the 4th preset rules, the URL includes at least the URL minor of application program entry, institute
The URL minor of Platform Type, the URL minor of the inlet style and the URL minor for recommending position type are stated, it is described to apply journey
The URL minor of sequence entrance is obtained from the parameter information prestored.
Further, further include S500: obtaining the subtype of the inlet style, institute is obtained from the parameter information prestored
State the corresponding parameter preset of subtype of the inlet style;The subtype of the inlet style is generated according to the 5th preset rules
URL minor.
Further, further include S600: obtaining and recommend bit identification;The recommendation bit identification is generated according to the 6th preset rules
URL minor.
Further, before the URL according to the generation of the 4th preset rules, further includes: obtain the URL of application program entry
Minor.
Further, first preset rules are as follows: the parameter preset of Platform Type described in lmsl=;Described second is default
Rule are as follows: the parameter preset of Platform Type described in lmsl=;The parameter preset of inlet style described in lmuf=;The third is default
Rule are as follows: recommend the parameter preset of position type described in lmcid=;4th rule is described in each URL minor combination producing
URL。
Product operation group carries out Platform Type, inlet style, recommendation position type etc. when using the system for generating URL
Configuration generates URL and statistical data after the completion of configuration.Configuration sequence can be with are as follows: Platform Type -- > inlet style -- > recommendation
Position type.URL system is generated for example, entering, clicks some button, applies entrance URL configuration interface into generating.Configuration circle
Face can select Platform Type, table-top type, inlet style, recommendation position type etc.;All conditions cannot be sky.Work as selection
Or after the completion of filling in, clicks and generate URL button, then generate corresponding entrance URL for using.
It further include inquiry entrance in a kind of above-mentioned system for generating URL, for carrying out query statistic to the URL of generation,
Conducive to facilitating operation personnel to be quickly obtained the URL report that user enters application, it is convenient for the product OA operation analysis of next step
With planning.
Specifically, as shown in Figure 7, further includes: URL memory module 801, for storing URL;Screening module 802 is used for
The URL memory module, which filters out, meets the Platform Type, inlet style and/or the corresponding URL minor of recommendation position type
URL.The concrete application of inquiry URL described herein is as shown in Figure 8.
When inquiring URL report, some key is clicked, into the configuration interface of inquiry URL.The configuration interface can select
Platform Type, inlet style, type of recommendation, period generate URL minor according to preset rules respectively, and from URL memory module
In filter out the URL for meeting URL minor.
When user is in inquiry, if when some condition is empty or when specific identifier, being defaulted as under this condition all
Sub- condition.After the completion of selection, inquiry button is clicked, then inquires qualified URL, and generate report, it is available for download.
Combine detailed description and exemplary example that the application is described in detail above, but these explanations are simultaneously
It should not be understood as the limitation to the application.It will be appreciated by those skilled in the art that without departing from the application spirit and scope,
A variety of equivalent substitution, modification or improvements can be carried out to technical scheme and embodiments thereof, these each fall within the application
In the range of.The protection scope of the application is determined by the appended claims.