CN109729137A - Page data display methods, display terminal and storage medium - Google Patents

Page data display methods, display terminal and storage medium Download PDF

Info

Publication number
CN109729137A
CN109729137A CN201810463798.1A CN201810463798A CN109729137A CN 109729137 A CN109729137 A CN 109729137A CN 201810463798 A CN201810463798 A CN 201810463798A CN 109729137 A CN109729137 A CN 109729137A
Authority
CN
China
Prior art keywords
page data
url
address
address url
load request
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
CN201810463798.1A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201810463798.1A priority Critical patent/CN109729137A/en
Publication of CN109729137A publication Critical patent/CN109729137A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of page data display methods, display terminal and storage medium, method is comprising steps of obtain process code used in UIwebview loading page data;It is embedded in the address URL for intercepting user's transmission and the whether trusted AOP program in authentication URL address, in process code to form new process code;Obtain the page data load request that user sends;By calling new process code, confirm the address URL in page data load request whether trust;When the address the URL trust in page data load request, which is loaded by UIwebview.Due to increasing the whether trusted AOP program in the determining address URL in process code, and then the trusted address URL is enable to be loaded directly into out web data, to solve because the page loads unsuccessful, the problem of page shows blank, leads to exploitation and debugging the problem of being hampered.

Description

Page data display methods, display terminal and storage medium
Technical field
The present invention relates to page display fields, more particularly to the page data display methods based on UIwebview, display are eventually End and computer readable storage medium.
Background technique
The operating system of the mobile display terminal of mainstream includes Android and IOS at present, and wherein IOS is developed by Apple Inc. Mobile operating system, only support apple mobile device use.In IOS native applications Program Interfaces API and hypertext mark When remembering language HTML5.0 mixed developing, UIwebview can be used as displayed web page data and the control work of data interaction Tool.But when using UIWebView load html page, it can not often pass through because of domain name or certificate verification, page load occur It is unsuccessful, obstruction is brought for the exploitation and debugging of engineering the phenomenon that the case where page shows blank, this page shows blank.
Summary of the invention
The page data display methods that the main purpose of the present invention is to provide a kind of based on UIwebview, display terminal And computer readable storage medium, it is intended to solve to show that blank brings the technology of obstruction to ask for the exploitation and debugging of engineering because of the page Topic.
To achieve the above object, the present invention provides a kind of page data display methods based on UIwebview, including step It is rapid:
Obtain process code used in the UIwebview loading page data;
It is embedded in the process code described in the uniform resource position mark URL address for intercepting user's transmission and verifying Whether the address URL is trusted towards tangent plane programming AOP program, to form new process code;
Obtain the page data load request that the user sends;
By calling the new process code, confirm whether the address URL in the page data load request is accredited Appoint;
When the address the URL trust in the page data load request, which is loaded by the UIwebview The corresponding page data in address.
Optionally, the whether trusted step in the address URL in the confirmation page data load request includes:
The unrestricted list of the UIwebview is obtained from preset database;
Judge whether the address URL in the page data load request matches with the unrestricted list;
When the address URL in the page data load request is matched with the unrestricted list, the page is determined The address URL trust in data load requests.
Optionally, the address URL judged in the page data load request and the unrestricted list whether With the step of include:
When getting multiple page data load requests in preset time, the multiple page in the preset time is obtained The corresponding address URL of face data load request;
Judge the corresponding address URL of the multiple page data load request and the unrestricted list whether Match;
When the address URL any in the preset time is matched with the unrestricted list, confirm in the preset time All addresses URL are matched with the unrestricted list.
Optionally, the address URL judged in the page data load request and the unrestricted list whether With the step of include:
When getting multiple page data load requests in preset time, the multiple page in the preset time is obtained The corresponding address URL of face data load request;
Random or acquisition sequence according to page data load request successively selects the address URL, and judges the described of selection Whether the address URL matches with the unrestricted list;
When the address URL of selection and the unrestricted list mismatch, next address URL is selected, until choosing All addresses URL are selected;
When the address URL of selection is matched with the unrestricted list, the matched address URL and hair are judged Send whether the similarity between the temporally adjacent address URL is greater than preset threshold;Wherein, the sending time is corresponding for the address URL Page data load request sending time
Described in being greater than or equal to when the similarity between the address URL adjacent with sending time of the matched address URL When preset threshold, determine that the adjacent address URL of the sending time is matched with the unrestricted list, and it is next to execute selection The step of address URL;
When the similarity between the address URL adjacent with sending time of the matched address URL is less than the default threshold When value, the step of selecting next address URL is executed.
Optionally, the step of adjacent address URL of the determination sending time is matched with the unrestricted list it Before further include:
The adjacent address URL of the sending time is increased in the unrestricted list.
Optionally, the non-limiting list includes the address standard URL;
The step of whether address URL judged in the page data load request matches with the unrestricted list Include:
Judge the address URL in the page data load request whether with any standard URL address matching;
When the address URL in the page data load request is with any standard URL address matching, described in determination The address URL in page data load request is matched with the unrestricted list.
Optionally, the preset unrestricted list includes digital certificate;
The step of whether address URL judged in the page data load request matches with the unrestricted list Include:
Judge in all digital certificates with the presence or absence of the URL in any digital certificate and the page data load request Location corresponds;
When corresponding there are the address URL in any digital certificate and the page data load request, institute is determined The address URL stated in page data load request is matched with the unrestricted list.
In addition, to achieve the above object, the present invention also provides a kind of display terminal, the display terminal is based on UIwebview carries out page data and shows that the display terminal includes:
Module is obtained, for obtaining process code used in the UIwebview loading page data;
It is embedded in module, for being embedded in the uniform resource position mark URL for intercepting user's transmission in the process code Address and whether verify the address URL trusted towards tangent plane programming AOP program, to form new process code;
The acquisition module is also used to obtain the page data load request that the user sends;
Confirmation module, for confirming the URL in the page data load request by calling the new process code Address whether trust;
Loading module, for when the address the URL trust in the page data load request, by described UIwebview loads the corresponding page data in the address URL.
In addition, to achieve the above object, the present invention also provides a kind of display terminal, the display terminal includes: display mould Block, communication module, memory, processor and it is stored in the computer journey that can be run on the memory and on the processor Sequence realizes that the page data based on UIwebview is shown as described above when the computer program is executed by the processor The step of method.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with computer program on storage medium, realizes when the computer program is executed by processor and is based on as described above The step of page data display methods of UIwebview.
A kind of page data display methods, display terminal and storage medium proposed by the present invention, pass through acquisition Process code used in UIwebview loading page data;The URL for intercepting user's transmission is embedded in process code Location and the whether trusted AOP program in authentication URL address, to form new process code;Obtain the page data that user sends Load request;By calling new process code, confirm the address URL in page data load request whether trust;Work as page When the address URL trust in face data load request, which is loaded by UIwebview.Make It obtains in the process code of loading page data and increases the whether trusted AOP program in the determining address URL, and then can be to URL Address carries out trust verifying, and controls the trusted address URL and be loaded directly into out web data, it is therefore prevented that because of domain name or certificate The problem of verifying is not unsuccessful by causing the page to load, and the page shows blank, is conducive to the exploitation and debugging of engineer, simultaneously Due to realizing the verifying of the address URL by AOP program, the third-party institution is also no longer needed to carry out certificate verification again, saved Cost.In addition, embedded in the solution of the present invention is AOP program, project operation layer is not influenced, not will cause code redundancy.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the display terminal that the embodiment of the present invention is related to;
Fig. 2 is that the present invention is based on the flow diagrams of the first embodiment of the page data display methods of UIwebview;
Fig. 3 is that the present invention is based on the refinements of step S40 in the second embodiment of the page data display methods of UIwebview Flow diagram;
Fig. 4 is that the present invention is based on the refinements of step S42 in the second embodiment of the page data display methods of UIwebview Flow diagram;
Fig. 5 is that the present invention is based on the refinements of step S42 in the second embodiment of the page data display methods of UIwebview Flow diagram;
Fig. 6 is that the present invention is based on the refinements of step S42 in the 3rd embodiment of the page data display methods of UIwebview Flow diagram;
Fig. 7 is that the present invention is based on the refinements of step S42 in the fourth embodiment of the page data display methods of UIwebview Flow diagram;
Fig. 8 is that the invention shows the functional block diagrams of terminal.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Fig. 1 is please referred to, Fig. 1 is the hardware structural diagram of the display terminal 100 in each embodiment of the present invention, in this hair Provided by bright in display terminal 100, may include communication module 10, memory 20, processor 30 and display module 40 etc. Component.The display terminal 100 can be computer, mobile phone, TV and tablet computer etc., and the display terminal 100 can be with It is connect with server communication, for obtaining data from server.Wherein, the processor 30 respectively with the memory 20, The communication module 10 and the display module 40 connect, and are stored with computer program, the calculating on the memory 20 Machine program is executed by processor 30 simultaneously.
Communication module 10 can be connect by network with external communications equipment.Communication module 10 can receive external communication and set The request that preparation goes out, can also send request, instruction and information to the external communications equipment.The external communications equipment can be with It is server or other display terminals.
Memory 20 can be used for storing software program and various data.Memory 20 can mainly include storing program area The storage data area and, wherein storing program area can application program needed for storage program area, at least one function (such as plus Carry page data) etc.;Storage data area may include database, and storage data area, which can be stored, uses institute according to display terminal 100 Data or information of creation etc..In addition, memory 20 may include high-speed random access memory, it can also include non-volatile Memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 30 is the control centre of display terminal 100, utilizes various interfaces and the entire display terminal of connection 100 various pieces, by running or executing the software program and/or module that are stored in memory 20, and calling storage Data in memory 20 execute the various functions and processing data of display terminal 100, to carry out to display terminal 100 Integral monitoring.Processor 30 may include one or more processing units;Preferably, processor 30 can integrate application processor and tune Demodulation processor processed, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate is mediated Reason device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 30.
Display module 40 is the display unit for showing equipment 100.For example, it may be LED (Light Emitting Diode, light emitting diode) display screen, it can also be LCD (Liquid Crystal Display, liquid crystal display) etc..Institute Data can be extracted from memory 20 by stating display module 40, and be shown embedding in the operation interface and application program of application program Page data entered etc..The page data being wherein embedded in application program is that the page data carried out based on UIwebview is shown Show, the page data can be the web data of super html format, can also be the documents such as PDF, word.
Although Fig. 1 is not shown, above-mentioned display terminal 100 can also include circuit control module, for connecting to power supply, Guarantee the normal work of other component.It will be understood by those skilled in the art that 100 structure of display terminal shown in Fig. 1 is not Constitute restriction to display terminal 100, may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.
Based on above-mentioned hardware configuration, each embodiment of the method for the present invention is proposed.
Referring to fig. 2, the present invention is based in the first embodiment of the page data display methods of UIwebview, including step It is rapid:
Step S10 obtains process code used in the UIwebview loading page data;
UIWebView is Apple Macintosh operating system IOS SDK (Software Development Kit, Software Development Tools Packet) in a common the Control Tool, be built-in browser control part, webpage can be browsed with it, opens document etc..For Page data loaded and displayed is gone on smoothly by UIwebview, needs framework bottom current range code, controller can be from code Process code used in loading page data is obtained in editing machine.
Step S20, insertion is for intercepting the uniform resource position mark URL address of user's transmission simultaneously in the process code It is whether trusted towards tangent plane programming AOP program to verify the address URL, to form new process code;
AOP (Aspect Oriented Programming, towards tangent plane programming) be in the case where not modifying source code to Program dynamic unity adds the technology of function, and the use of AOP programming technique does not influence project operation layer, coupling pine.
AOP program is embedded in this programme in process code, the function of the AOP program is to initiate page data in user After load request, (Uniform Resource Locator, unified resource are fixed by the URL for intercepting in the page number data browse request Position symbol) address, then judge intercept the address URL whether trust.
Step S30 obtains the page data load request that the user sends;
Wherein, user refers generally to develop commissioning staff.Carrying out the primary API of IOS (Application Programming Interface, application programming interface) and HTML (HyperText Markup Language, hypertext markup language) When 5.0 exploitation, if to carry out the debugging of loading page data, the address URL is needed to configure, then sends page to processor Face data load request, includes the address URL of configuration in the page data load request, and processor can receive and obtain the page Content in data load requests.
Step S40 confirms the address URL in the page data load request by calling the new process code Whether trust;If so, thening follow the steps S50;
Step S50 loads the corresponding page data in the address URL by the UIwebview.
It is embedded in the new process code of AOP program by calling, can directly confirm that the page data of user configuration adds Carry request in the address URL whether trust.Judge that the whether trusted method in the address URL in page data load request can To be configured according to actual needs, for example, limitation list can be set, when the address URL is in limitation list, intercepts this and ask It asks, shows that the address URL needs the page data of corresponding load not by UIwebview, i.e. the page shows blank;As URL Location is loaded directly into page data not in limitation list, or can also carry out URL by interface and Third Party Authentication mechanism The verifying of address.Unrestricted list can also be set, when the address URL is in unrestricted list, directly progress page data plus It carries;When the address URL is not in unrestricted list, the address URL is intercepted, the page shows blank, or transfers to Third Party Authentication again Mechanism is verified.
It should be noted that the basic address URL is made of agreement, server name, path and filename, asked in verifying The address URL in asking whether trust when, need the equal trust of all the elements in component part that can just carry out page data Load.It is on the contrary, it is assumed that the address URL is other than trust part, and also there are other component contents, as long as then containing Fixed trust part is it is also assumed that the address URL is trusted.For example, it is assumed that the following address URL http: // Www.pingan.com/ trust, then further including the http://www.pingan.com/ for having other components Lifeloan.shtml also trust.
At present when carrying out page data display by UIwebview, need the address URL transferring to Third Party Authentication mechanism The verifying of the address URL is carried out, certification just can be carried out the normal page after passing through and show.If certificate or domain name verifying do not pass through, It is unsuccessful to will lead to page data load, and then the case where page empty occurs.In order to solve to verify due to certificate or domain name Do not pass through, leads to the case where page loads unsuccessful and page empty occur, it can be by obtaining the UIwebview loaded page Process code used in face data;The uniform resource locator for intercepting user's transmission is embedded in the process code The address URL and whether verify the address URL trusted towards tangent plane programming AOP program, to form new process code;It obtains The page data load request for taking the user to send;By calling the new process code, confirm that the page data adds Carry request in the address URL whether trust;When the address the URL trust in the page data load request, pass through institute It states UIwebview and loads the corresponding page data in the address URL.So that being increased in the process code of loading page data really Determine the whether trusted AOP program in the address URL, and then trust verifying can be carried out to the address URL, and control trusted URL Address is loaded directly into out web data, it is therefore prevented that because domain name or certification authentication are unsuccessful not by causing the page to load, the page is aobvious The problem of showing blank, be conducive to the exploitation and debugging of engineer, simultaneously because the verifying of the address URL is realized by AOP program, Also the certification for reducing the third-party institution indirectly, has saved cost.In addition, embedded in the solution of the present invention is AOP program, Project operation layer is not influenced, not will cause code redundancy.
Further, referring to Fig. 3, based on the present invention is based on the implementations of the first of the page data display methods of UIwebview Example proposes that the present invention is based on the second embodiments of the page data display methods of UIwebview, in the present embodiment, the step S40 includes:
Step S41 obtains the unrestricted list of the UIwebview from preset database;
The unrestricted list of UIwebview is provided in the preset database of memory, it can be in the unrestricted list Be stored with the address standard URL and/or digital certificate, each digital certificate there are the address corresponding standard URL, digital certificate with The address standard URL is one-to-one relationship.The address URL and digital certificate can be stored in the form of array or table, storage The address standard URL and digital certificate table in unrestricted list show the corresponding address URL trust, can directly pass through UIwebview loads web data.
It can also be the address standard URL in unrestricted list and digital certificate setting effective time, while periodically to non- Limitation list is checked and is updated, i.e., verifying is timed to the validity of the address standard URL and digital certificate, to guarantee The safety of page data load.If the address standard URL or digital certificate in unrestricted list are expired, need to reject The address standard URL of phase or digital certificate.
Step S42 judges the address URL in the page data load request by calling the new process code Whether matched with the unrestricted list;If so, thening follow the steps S43;
Step S43 determines the address the URL trust in the page data load request.
It is carried out by the setting of unrestricted list and by the address URL in unrestricted list and page data load request Matching, to the address URL, whether trust provides detailed proof scheme, and the setting of unrestricted list also facilitates large batch of The load of the address URL has been saved the time of exploitation commissioning staff, and help improves working efficiency.
Further, judge that the step of whether address URL in request matches with unrestricted list can also be according to reality It needs to be configured.For example, wherein Fig. 4 is the address URL determined in page data load request please together referring to Fig. 4 and Fig. 5 With the whether matched flow diagram in the address standard URL in unrestricted list;Fig. 5 is to determine in page data load request The whether matched flow diagram of digital certificate in the address URL and unrestricted list.
In Fig. 4, the step S42 the following steps are included:
Step S421 judges the address URL in the page data load request by calling the new process code Whether with any standard URL address matching;If so, thening follow the steps S422;
Step S422 determines that the address URL in the page data load request is matched with the unrestricted list.
As long as can be the address any standard URL in unrestricted list it is consistent with the address URL in request when, it is believed that ask The address URL in asking is matched with unrestricted list.It can also be that the address URL in request includes the mark in any unrestricted list When the quasi- address URL, it is believed that the URL address matching in request is matched with unrestricted list.Conversely, if the judging result of step S421 When for "No", when the address URL that can be in request does not include all standard addresses URL in all unrestricted lists, really It is not trusted to recognize the address URL, page data can be not loaded with or seeks the progress certification authentication of Third Party Authentication mechanism.
In Fig. 5, the step S42 be may comprise steps of:
Step S423 is judged in all digital certificates by calling the new process code with the presence or absence of any number The address URL in certificate and the page data load request corresponds;If so, thening follow the steps S424;
Step S424 determines that the address URL in the page data load request is matched with the unrestricted list.
If the judging result of step S423 is "No", it is equivalent in unrestricted list and any digital certificate is not present and asks The address URL in asking corresponds, and the address URL in the request is not trusted at this time.
Further, referring to Fig. 6, based on the present invention is based on the implementations of the second of the page data display methods of UIwebview Example proposes that the present invention is based on the 3rd embodiments of the page data display methods of UIwebview, in the present embodiment, the step S42 includes:
Step S425, when getting multiple page data load requests in preset time, by calling the new stream Range code obtains the corresponding address URL of the multiple page data load request in the preset time;
The setting of preset time should be as short as possible, such as 5 seconds.If user has sent more in the shortest possible time A page data load request, it is believed that the corresponding address URL of multiple page data load requests has association.It is obtaining When taking the address URL of multiple requests, it can unify to obtain each of multiple requests in preset time again after preset time The corresponding address URL is requested, specific acquisition methods are similar with individually obtaining, herein without repeating.
Step S426 judges that the multiple page data load request is right respectively by calling the new process code It is matched with the presence or absence of any address URL with the unrestricted list in the address URL answered;If so, thening follow the steps S427;
Step S427 confirms that all addresses URL are matched with the unrestricted list in the preset time.
Simply by the presence of at least one address URL and unrestricted list in multiple page data load requests in preset time Match, for example, at least address URL and digital certificate correspond or at least one address URL includes any standard URL Location, it is considered that the equal trust in the address URL all in preset time.Further, can also will except confirm matching in addition to it is pre- If other addresses URL in the multiple page data load requests obtained in the time are also updated in unrestricted list.This implementation Example is conducive to increase the capacity of unrestricted list, promotes configuration and the debugging efficiency of user.
Further, referring to Fig. 7, based on the present invention is based on the implementations of the second of the page data display methods of UIwebview Example proposes that the present invention is based on the fourth embodiments of the page data display methods of UIwebview, in the present embodiment, the step S42 includes:
Step S425, when getting multiple page data load requests in preset time, by calling the new stream Range code obtains the corresponding address URL of the multiple page data load request in the preset time;
It should be noted that the same 3rd embodiment of the implementation of step S425, herein without repeating.
Step S428, it is random or suitable according to the acquisition of page data load request by calling the new process code Sequence successively selects the address URL, and judges whether the address URL of selection matches with the unrestricted list;If it is not, then executing Step S431;If so, thening follow the steps S429;
It should be noted that the acquisition sequence of page data load request can be by more in processor acquisition preset time The sending time of a page data load request is carried out according to sending time from the sequence of evening to early sequence or from morning to night The selection of the address URL, then judges whether the address URL of selection matches with unrestricted list one by one.Alternatively, can also select at random It takes.
Step S429 judges whether is similarity between the address URL adjacent with sending time of the matched address URL More than or equal to preset threshold;Wherein, when the sending time is the transmission of the corresponding page data load request in the address URL Between;If so, thening follow the steps S430;If it is not, then entering step S431;
Step S430 determines that the adjacent address URL of the sending time is matched with the unrestricted list, and enters step S431;
Step S431 selects next address URL, until having selected all addresses URL.
When the address URL of selection is matched with unrestricted list, can also quickly judge to send using the matched address URL Whether the temporally adjacent address URL matches, wherein the adjacent address the URL corresponding page data load request of referring to of sending time Sending time is adjacent.Judge the whether matched method in the adjacent address URL of sending time can be calculate the matched address URL with The similarity of the adjacent address URL of sending time, if similarity is greater than or equal to preset threshold, then it is assumed that sending time is adjacent The address URL exist with the matched address URL and be associated with, then the adjacent address URL of sending time also with unrestricted list Match., whereas if similarity is less than preset threshold, then the adjacent address URL of sending time is not matched with unrestricted list, can be with The judgement that the address URL does not carry out unrestricted list to it is skipped, judges the time to save;Or can also to it again into The matching judgment of the unrestricted list of row, to be further confirmed that.
It should be noted that the address URL that the matched address URL is adjacent generally there are two sending times, one is phase To the address URL of sending time morning, one be opposite sending time evening the address URL, can thus be judged.
Further, it is non-can also to will confirm that matched all addresses URL are updated to after having selected all addresses URL It limits in list, or can be directly adjacent by sending time after the matching by adjacent sending time and similarity The address URL increases in unrestricted list.It is understood that the address URL and unrestricted list relatively early starts possibility It mismatches, but by being associated with confirmation with the similarity between the address URL of current matching, can also increase newly in unrestricted list. The present embodiment help quickly carry out preset time in the address URL association and preset time in all addresses URL with it is unrestricted The matching of list increases the content of unrestricted list under the premise of ensureing unrestricted list safety.
The present invention also proposes that a kind of display terminal, the display terminal are based on UIwebview progress page data and show, join See that Fig. 8, the display terminal include:
Module 10 is obtained, for obtaining process code used in the UIwebview loading page data;
It is embedded in module 20, for being embedded in the uniform resource locator for intercepting user's transmission in the process code The address URL and whether verify the address URL trusted towards tangent plane programming AOP program, to form new process code;
The acquisition module 10 is also used to obtain the page data load request that the user sends;
Confirmation module 30, for confirming in the page data load request by calling the new process code The address URL whether trust;
Loading module 40, for when the address the URL trust in the page data load request, by described UIwebview loads the corresponding page data in the address URL.
In another embodiment, the confirmation module 30 includes:
Acquiring unit 31, for obtaining the unrestricted list of the UIwebview from preset database;
Judging unit 32, for judging that the address URL in the page data load request is with the unrestricted list No matching;
Determination unit 33, for being matched when the address URL in the page data load request with the unrestricted list When, determine the address the URL trust in the page data load request.
In another embodiment, the judging unit 32 includes:
Subelement 321 is obtained, for obtaining described pre- when getting multiple page data load requests in preset time If the corresponding address URL of the multiple page data load request in the time;
Judgment sub-unit 322, for judge the corresponding address URL of the multiple page data load request with it is described Whether unrestricted list matches;
Confirm subelement 323, be used for when the address URL any in the preset time is matched with the unrestricted list, Confirm that all addresses URL are matched with the unrestricted list in the preset time.
In another embodiment, the judging unit 32 includes:
Subelement 321 is obtained, for obtaining described pre- when getting multiple page data load requests in preset time If the corresponding address URL of the multiple page data load request in the time;
Judgment sub-unit 322, with successively selecting URL for random or acquisition sequence according to page data load request Location, and judge whether the address URL of selection matches with the unrestricted list;
Subelement 324 is selected, when the address URL of selection and unrestricted list mismatch, is selected next The address URL, until having selected all addresses URL;
The judgment sub-unit 322 is also used to sentence when the address URL of selection is matched with the unrestricted list Whether the similarity broken between the address URL adjacent with sending time of the matched address URL is greater than or equal to preset threshold; Wherein, the sending time is the sending time of the corresponding page data load request in the address URL
It determines subelement 323, is also used to when between the address URL adjacent with sending time of the matched address URL When similarity is greater than or equal to the preset threshold, the adjacent address URL of the sending time and the unrestricted list are determined Matching, and trigger the selection subelement 324 and execute the step of selecting next address URL;When the matched address URL When similarity between the address URL adjacent with sending time is less than the preset threshold, triggers the selection subelement 324 and execute The step of selecting next address URL.
In another embodiment, the judging unit 32 further include:
Increase subelement 325, for determining that the adjacent address URL of the sending time matches with the unrestricted list Afterwards, the adjacent address URL of the sending time is increased in the unrestricted list.
In another embodiment, the non-limiting list includes the address standard URL;
The judgment sub-unit 322, be also used to judge the address URL in the page data load request whether with it is any The standard URL address matching;
The determining subelement 323 is also used to work as the address URL in the page data load request and any mark When quasi- URL address matching, determine that the address URL in the page data load request is matched with the unrestricted list.
In another embodiment, the preset unrestricted list includes digital certificate;
The judgment sub-unit 322, be also used to judge in all digital certificates with the presence or absence of any digital certificate with it is described The address URL in page data load request corresponds;
The determining subelement 323 is also used to when there are in any digital certificate and the page data load request When the address URL corresponds, determine that the address URL in the page data load request is matched with the unrestricted list.
The present invention also proposes a kind of computer readable storage medium, is stored thereon with computer program, the computer journey It realizes when sequence is executed by processor such as the step of the above-mentioned page data display methods based on UIwebview.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the server-side that include a series of elements not only include those elements, It but also including other elements that are not explicitly listed, or further include for this process, method, article or server-side institute Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wrapping Include in process, method, article or the server-side of the element that there is also other identical elements.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above Storage medium (such as ROM (Read-Only Memory, read-only memory)/RAM (Random Access Memory, arbitrary access Memory), magnetic disk, CD) in, including some instructions are used so that terminal device (can be mobile phone, computer, service Device or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of page data display methods based on UIwebview, which is characterized in that comprising steps of
Obtain process code used in the UIwebview loading page data;
It is embedded in the uniform resource position mark URL address for intercepting user's transmission in the process code and verifies the URL Whether address is trusted towards tangent plane programming AOP program, to form new process code;
Obtain the page data load request that the user sends;
By calling the new process code, confirm the address URL in the page data load request whether trust;
When the address the URL trust in the page data load request, which is loaded by the UIwebview Corresponding page data.
2. the page data display methods based on UIwebview as described in claim 1, which is characterized in that the confirmation institute Stating the whether trusted step in the address URL in page data load request includes:
The unrestricted list of the UIwebview is obtained from preset database;
Judge whether the address URL in the page data load request matches with the unrestricted list;
When the address URL in the page data load request is matched with the unrestricted list, the page data is determined The address URL trust in load request.
3. the page data display methods based on UIwebview as claimed in claim 2, which is characterized in that the judgement institute State that the step of whether address URL in page data load request matches with the unrestricted list includes:
When getting multiple page data load requests in preset time, the multiple page number in the preset time is obtained According to the corresponding address URL of load request;
Judge whether the corresponding address URL of the multiple page data load request matches with the unrestricted list;
When the address URL any in the preset time is matched with the unrestricted list, confirms in the preset time and own The address URL is matched with the unrestricted list.
4. the page data display methods based on UIwebview as claimed in claim 2, which is characterized in that the judgement institute State that the step of whether address URL in page data load request matches with the unrestricted list includes:
When getting multiple page data load requests in preset time, the multiple page number in the preset time is obtained According to the corresponding address URL of load request;
Random or acquisition sequence according to page data load request successively selects the address URL, and with judging the URL of selection Whether location matches with the unrestricted list;
When the address URL of selection and the unrestricted list mismatch, next address URL is selected, until having selected All addresses URL;
When the address URL of selection is matched with the unrestricted list, when judging the matched address URL and sending Between similarity between the adjacent address URL whether be greater than or equal to preset threshold, wherein the sending time is the address pair URL The sending time for the page data load request answered;
When the similarity between the address URL adjacent with sending time of the matched address URL is greater than or equal to described preset It when threshold value, determines that the adjacent address URL of the sending time is matched with the unrestricted list, and executes the next URL of selection The step of address;
When similarity between the address URL adjacent with sending time when the matched address URL is less than the preset threshold, Execute the step of selecting next address URL.
5. the page data display methods based on UIwebview as claimed in claim 4, which is characterized in that the determining institute Before stating the step of adjacent address URL of sending time is matched with the unrestricted list further include:
The adjacent address URL of the sending time is increased in the unrestricted list.
6. such as the described in any item page data display methods based on UIwebview of claim 2-5, which is characterized in that institute Stating non-limiting list includes the address standard URL;
The step of whether address URL judged in the page data load request matches with unrestricted list packet It includes:
Judge the address URL in the page data load request whether with any standard URL address matching;
When the address URL in the page data load request is with any standard URL address matching, the page is determined The address URL in data load requests is matched with the unrestricted list.
7. such as the described in any item page data display methods based on UIwebview of claim 2-5, which is characterized in that institute Stating preset unrestricted list includes digital certificate;
The step of whether address URL judged in the page data load request matches with unrestricted list packet It includes:
Judge in all digital certificates with the presence or absence of the address URL one in any digital certificate and the page data load request One is corresponding;
When corresponding there are the address URL in any digital certificate and the page data load request, the page is determined The address URL in face data load request is matched with the unrestricted list.
8. a kind of display terminal, the display terminal is based on UIwebview progress page data and shows, which is characterized in that described Display terminal includes:
Module is obtained, for obtaining process code used in the UIwebview loading page data;
It is embedded in module, for being embedded in the uniform resource position mark URL address for intercepting user's transmission in the process code And whether verify the address URL trusted towards tangent plane programming AOP program, to form new process code;
The acquisition module is also used to obtain the page data load request that the user sends;
Confirmation module, for confirming the address URL in the page data load request by calling the new process code Whether trust;
Loading module, for passing through the UIwebview when the address the URL trust in the page data load request Load the corresponding page data in the address URL.
9. a kind of display terminal, which is characterized in that the display terminal includes: display module, communication module, memory, processing Device and it is stored in the computer program that can be run on the memory and on the processor, the computer program is described Realizing the page data display methods based on UIwebview as described in any one of claims 1 to 7 when processor executes Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, when the computer program is executed by processor realize as described in any one of claims 1 to 7 based on The step of page data display methods of UIwebview.
CN201810463798.1A 2018-05-15 2018-05-15 Page data display methods, display terminal and storage medium Pending CN109729137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810463798.1A CN109729137A (en) 2018-05-15 2018-05-15 Page data display methods, display terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810463798.1A CN109729137A (en) 2018-05-15 2018-05-15 Page data display methods, display terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109729137A true CN109729137A (en) 2019-05-07

Family

ID=66293787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810463798.1A Pending CN109729137A (en) 2018-05-15 2018-05-15 Page data display methods, display terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109729137A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026648A (en) * 2019-11-21 2020-04-17 汉海信息技术(上海)有限公司 Application program page testing method and device, electronic equipment and storage medium
CN112306591A (en) * 2019-07-31 2021-02-02 腾讯科技(深圳)有限公司 Remote debugging method and device based on page
CN113051017A (en) * 2021-03-30 2021-06-29 北京字节跳动网络技术有限公司 Gesture processing method, device and equipment on application program page and storage medium
CN113709094A (en) * 2020-05-22 2021-11-26 辉达公司 User-perceptible marking for network address identifiers

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116723A (en) * 2013-02-06 2013-05-22 北京奇虎科技有限公司 Method, device and system of web site interception process
CN103607385A (en) * 2013-11-14 2014-02-26 北京奇虎科技有限公司 Method and apparatus for security detection based on browser
US20140317482A1 (en) * 2013-04-19 2014-10-23 Alibaba Group Holding Limited Client side page processing
CN104391880A (en) * 2014-10-31 2015-03-04 北京奇虎科技有限公司 Method for intercepting business object and client
US20150244738A1 (en) * 2012-11-21 2015-08-27 Tencent Technology (Shenzhen) Company Limited Method and Apparatus for Monitoring Malicious Link Injection Into Website Source Code
CN105100119A (en) * 2015-08-31 2015-11-25 百度在线网络技术(北京)有限公司 URL detection method and device
CN107483488A (en) * 2017-09-18 2017-12-15 济南互信软件有限公司 A kind of malice Http detection methods and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150244738A1 (en) * 2012-11-21 2015-08-27 Tencent Technology (Shenzhen) Company Limited Method and Apparatus for Monitoring Malicious Link Injection Into Website Source Code
CN103116723A (en) * 2013-02-06 2013-05-22 北京奇虎科技有限公司 Method, device and system of web site interception process
US20150381645A1 (en) * 2013-02-06 2015-12-31 Beijing Qihoo Technology Company Limited Method, Device And System For Intercepting Web Address
US20140317482A1 (en) * 2013-04-19 2014-10-23 Alibaba Group Holding Limited Client side page processing
CN103607385A (en) * 2013-11-14 2014-02-26 北京奇虎科技有限公司 Method and apparatus for security detection based on browser
CN104391880A (en) * 2014-10-31 2015-03-04 北京奇虎科技有限公司 Method for intercepting business object and client
CN105100119A (en) * 2015-08-31 2015-11-25 百度在线网络技术(北京)有限公司 URL detection method and device
CN107483488A (en) * 2017-09-18 2017-12-15 济南互信软件有限公司 A kind of malice Http detection methods and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306591A (en) * 2019-07-31 2021-02-02 腾讯科技(深圳)有限公司 Remote debugging method and device based on page
CN112306591B (en) * 2019-07-31 2022-07-22 腾讯科技(深圳)有限公司 Remote debugging method and device based on page
CN111026648A (en) * 2019-11-21 2020-04-17 汉海信息技术(上海)有限公司 Application program page testing method and device, electronic equipment and storage medium
CN113709094A (en) * 2020-05-22 2021-11-26 辉达公司 User-perceptible marking for network address identifiers
CN113051017A (en) * 2021-03-30 2021-06-29 北京字节跳动网络技术有限公司 Gesture processing method, device and equipment on application program page and storage medium
CN113051017B (en) * 2021-03-30 2024-03-15 北京字节跳动网络技术有限公司 Gesture processing method, device and equipment on application program page and storage medium

Similar Documents

Publication Publication Date Title
CN109729137A (en) Page data display methods, display terminal and storage medium
CN110442524B (en) Method and device for testing web service interface with authentication authorization
EP2589179B1 (en) Apparatus and method for controlling access to multiple services
US8966446B1 (en) Systems and methods of live experimentation on content provided by a web site
US11983546B2 (en) Rendering content of service providers via web page having dynamically-loaded plugins
CN104584011A (en) Methods and systems for secure in-network insertion of WEB content and WEB services
CN103888408B (en) Upload the data to method and the device of social platform
CN106230977B (en) A kind of client functionality loading method, system, client and server-side
CN104346198A (en) Information processing apparatus, server apparatus, information processing method, and program
CN101771993A (en) System and method thereof for realizing polymerization application based on mobile network
JP2017501517A (en) Method, apparatus, and system for pushing an application program, and device
CN112954717B (en) Household appliance network distribution method and device based on H5 page
CN112764751A (en) Interface generation method and device, interface request method and device and storage medium
CN104615598A (en) Migration processing method and device of metadata server
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
CN113064685A (en) H5 page loading method and device
CN112235767A (en) Connection management method, device and medium
CN104378428A (en) Method and device for downloading files
WO2020199597A1 (en) Blockchain node management agent service installation method, electronic apparatus and storage medium
CN112769798B (en) Login method and device
CN110493644A (en) TV applications upgrade method, television terminal and server
CN103561417A (en) Method for improving response quality of mobile client products to user request
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN105245535A (en) Multi-client uniform management method and system
CN113467776B (en) Method and device for accessing equipment, storage medium and electronic device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190507