CN109657176A - Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing - Google Patents

Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109657176A
CN109657176A CN201811206496.2A CN201811206496A CN109657176A CN 109657176 A CN109657176 A CN 109657176A CN 201811206496 A CN201811206496 A CN 201811206496A CN 109657176 A CN109657176 A CN 109657176A
Authority
CN
China
Prior art keywords
user terminal
vector graphic
web vector
router
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
CN201811206496.2A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811206496.2A priority Critical patent/CN109657176A/en
Publication of CN109657176A publication Critical patent/CN109657176A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing, the described method includes: when detecting load request of the user terminal to the server end request of loading H5 page resource of application, judge whether the user terminal is the server end request of loading H5 page resource to application for the first time;If so, receiving the acquisition program segment that obtains the user terminal router default management address of the server end of the application based on the load request for the first time H5 page resource fed back and synchronous feedback;The acquisition program segment is read, to obtain the user terminal router default management address, to obtain the Web vector graphic state of the user terminal based on the default management address;Determine whether to play the dynamic picture in the H5 page resource automatically based on the Web vector graphic state.The present invention solves the technical issues of existing specific H5 page cannot accurately identify the network state of corresponding user terminal.

Description

Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to field of computer technology more particularly to a kind of Web vector graphic state identification method, device, equipment and Readable storage medium storing program for executing.
Background technique
It is available user's current network use state for browser, such as safety Pu Hui, one account of safety Logical, wechat application etc. can identify that user terminal is currently using mobile network or WIFI network, but in browser For the specific H5 page, currently, being difficult to realize obtain the use state of user terminal network, for example, from the logical middle entrance of one account of safety Taobao's webpage, Taobao's webpage be difficult to obtain active user Web vector graphic state be using mobile network or WIFI network, Due to the specific H5 page, the network state of corresponding user terminal can not be accurately identified, thus the H5 page cannot accurately basis work as The network state of preceding user terminal carries out the processing such as corresponding video playing, caching, reduces user experience.
Summary of the invention
The main purpose of the present invention is to provide a kind of Web vector graphic state identification method, device, equipment and readable storages Medium, it is intended to which the network state of corresponding user terminal cannot be accurately identified by solving the existing specific H5 page, and user experience is caused to reduce The technical issues of.
To achieve the above object, the present invention provides a kind of Web vector graphic state identification method, and the Web vector graphic state is known Other method includes:
When detecting load request of the user terminal to the server end request of loading H5 page resource of application, judgement Whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
If the user terminal is the server end request of loading H5 page resource to the application for the first time, receive described in answer Server end of the server end based on the load request for the first time H5 page resource fed back and the application is same The acquisition program segment of the acquisition user terminal router default management address of step feedback;
The acquisition program segment is read, to obtain the user terminal router default management address, to be based on the user End router default management address obtains the Web vector graphic state of the user terminal;
Web vector graphic state based on the user terminal determines whether to play the Dynamic Graph in the H5 page resource automatically Piece.
Optionally, the Web vector graphic shape that the user terminal is obtained based on the user terminal router default management address State step includes:
Based on the acquisition program segment, the routing to be identified of predetermined number is obtained from the router default management address The address of device, to obtain the address list of router to be identified;
Successively each router to be identified into the address list of the router to be identified sends Web vector graphic State recognition request, and judge that whether receive any router to be identified within a preset period of time is made based on the network Fed back answer code is requested with state recognition, wherein the router to be identified is when being in WIFI connected state, if receiving It is requested to the Web vector graphic state recognition, then answer code described in Real-time Feedback;
Institute is requested if receiving the router to be identified within a preset period of time and being based on the Web vector graphic state recognition The answer code of feedback, it is determined that the Web vector graphic state of the user terminal is WIFI use state.
Optionally, described to be based on the acquisition program segment, predetermined number is obtained from the router default management address Router to be identified address, include: to obtain the address list step of router to be identified
Based on the acquisition program segment, access times are obtained from the router default management address and are greater than preset value The number of router to be identified;
Judge whether the access times are greater than the predetermined number greater than the number of the router to be identified of preset value, if The number that the access times are greater than the router to be identified of preset value is less than the predetermined number, then obtains the access times Greater than the address of the router to be identified of preset value, to obtain the address list of router to be identified;
If the number that the access times are greater than the router to be identified of preset value is greater than the predetermined number, institute is obtained The address of the router to be identified of predetermined number is stated, to obtain the address list of router to be identified.
Optionally, the Web vector graphic state based on the user terminal determines whether to play the H5 page resource automatically In dynamic picture step after include:
The acquisition program segment is saved, and generates and keeps records of, if detecting service of the user terminal to application again When the load request again of device end request of loading H5 page resource, based on the load request again, the acquisition is read automatically Program segment, to obtain the user terminal router default management address, to be based on the user terminal router default management address Obtain the Web vector graphic state of the user terminal.
Optionally, described in the load for detecting server end request of loading H5 page resource of the user terminal to application When request, judge whether the user terminal is the server end request of loading H5 page resource step packet to the application for the first time It includes:
When detecting load request of the user terminal to the server end request of loading H5 page resource of application, inquiry Whether the user terminal has the address of the corresponding near point server of server end of the application, wherein the clothes of the application There are preset association relationships for business device end and the address of the near point server;
If the user terminal has the address of the corresponding near point server of server end of the application, it is determined that the use Family end is not the server end for accessing the application for the first time;
If the user terminal does not have the address of the corresponding near point server of server end of the application, pass through inquiry The user terminal determines whether the user terminal is to answer described in access for the first time with the presence or absence of the insertion record for obtaining program segment Server end.
The present invention also provides a kind of Web vector graphic state identification method, the Web vector graphic state identification method is answered Server end, the Web vector graphic state identification method include:
When receiving the load request of user terminal request of loading H5 page resource, obtain and by the load request Request mark judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
If the user terminal is the server end request of loading H5 page resource to the application for the first time, it is based on the head Secondary load request feeds back the H5 page resource, and synchronous feedback obtains obtaining for the user terminal router default management address Program fetch section, so that the user terminal receives and realizes the Web vector graphic state of the user terminal of obtaining.
The present invention also provides a kind of Web vector graphic status identification means, the Web vector graphic status identification means include:
Judgment module, for detect server end request of loading H5 page resource from the user terminal to application plus When carrying request, judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
Receiving module, if being to be provided for the first time to the server end request of loading H5 page of the application for the user terminal Source then receives H5 page resource that the server end of the application is fed back based on the load request for the first time and described The acquisition program segment of the acquisition user terminal router default management address of the server end synchronous feedback of application;
Read module, for reading the acquisition program segment, to obtain the user terminal router default management address, with The Web vector graphic state of the user terminal is obtained based on the user terminal router default management address;
Determining module determines whether to play the H5 page money automatically for the Web vector graphic state based on the user terminal Dynamic picture in source.
Optionally, the read module includes:
Acquiring unit obtains default for being based on the acquisition program segment from the router default management address The address of several routers to be identified, to obtain the address list of router to be identified;
Transmission unit, for each router to be identified successively into the address list of the router to be identified Web vector graphic state recognition request is sent, and judges whether receive any router base to be identified within a preset period of time Fed back answer code is requested in the Web vector graphic state recognition, wherein the router to be identified is connected in WIFI When state, if receiving the Web vector graphic state recognition request, answer code described in Real-time Feedback;
Receiving unit, if being based on the Web vector graphic shape for receiving the router to be identified within a preset period of time Fed back answer code is requested in state identification, it is determined that the Web vector graphic state of the user terminal is WIFI use state.
Optionally, the first acquisition unit further include:
First obtains subelement, for being based on the acquisition program segment, obtains from the router default management address Access times are greater than the number of the router to be identified of preset value;
Judgment sub-unit, for judging whether the access times are greater than greater than the number of the router to be identified of preset value The predetermined number, if the number that the access times are greater than the router to be identified of preset value is less than the predetermined number, Address of the access times greater than the router to be identified of preset value is obtained, to obtain the address list of router to be identified;
Second obtains subelement, if the number for the access times to be greater than the router to be identified of preset value is greater than institute Predetermined number is stated, then obtains the address of the router to be identified of the predetermined number, to obtain the address column of router to be identified Table.
Optionally, the Web vector graphic status identification means further include:
Preserving module for saving the acquisition program segment, and is generated and is kept records of, if detecting the user terminal again To the server end request of loading H5 page resource of application load request again when, based on the load request again, automatically The acquisition program segment is read, to obtain the user terminal router default management address, to be based on the user terminal router Default management address obtains the Web vector graphic state of the user terminal.
Optionally, the judgment module includes:
Query unit, for detect server end request of loading H5 page resource from the user terminal to application plus When carrying request, the address whether user terminal has the corresponding near point server of server end of the application is inquired, wherein There are preset association relationships for the address of the server end of the application and the near point server;
First determination unit, if for the corresponding near point server of server end that the user terminal has the application Address, it is determined that the user terminal is not the server end for accessing the application for the first time;
Second determination unit, if for the corresponding near point server of server end that the user terminal does not have the application Address, then whether determine the user terminal with the presence or absence of the insertion record for obtaining program segment by inquiring the user terminal It is the server end for accessing the application for the first time.
The present invention also provides a kind of Web vector graphic status identification means, the Web vector graphic status identification means are answered Server end, the Web vector graphic status identification means include:
Module is obtained, for obtaining and passing through when receiving the load request of user terminal request of loading H5 page resource Request mark in the load request judges whether the user terminal is the server end request of loading to the application for the first time H5 page resource;
Feedback module, if being to be provided for the first time to the server end request of loading H5 page of the application for the user terminal The H5 page resource is then fed back based on the load request for the first time in source, and synchronous feedback obtains the user terminal router Default the acquisition program segment of management address, obtains the Web vector graphic shape of the user terminal so that the user terminal is received and realized State.
In addition, to achieve the above object, the present invention also provides a kind of Web vector graphic state recognition equipment, the Web vector graphics State recognition equipment includes: memory, processor, and communication bus and the Web vector graphic state being stored on the memory are known Other program,
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the Web vector graphic state recognition program, to perform the steps of
When detecting load request of the user terminal to the server end request of loading H5 page resource of application, judgement Whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
If the user terminal is the server end request of loading H5 page resource to the application for the first time, receive described in answer Server end of the server end based on the load request for the first time H5 page resource fed back and the application is same The acquisition program segment of the acquisition user terminal router default management address of step feedback;
The acquisition program segment is read, to obtain the user terminal router default management address, to be based on the user End router default management address obtains the Web vector graphic state of the user terminal;
Web vector graphic state based on the user terminal determines whether to play the Dynamic Graph in the H5 page resource automatically Piece.
In addition, to achieve the above object, the present invention also provides a kind of Web vector graphic state recognition equipment, the Web vector graphics State recognition equipment includes: memory, processor, and communication bus and the Web vector graphic state being stored on the memory are known Other program,
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the Web vector graphic state recognition program, to perform the steps of
When receiving the load request of user terminal request of loading H5 page resource, obtain and by the load request Request mark judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
If the user terminal is the server end request of loading H5 page resource to the application for the first time, it is based on the head Secondary load request feeds back the H5 page resource, and synchronous feedback obtains obtaining for the user terminal router default management address Program fetch section, so that the user terminal receives and realizes the Web vector graphic state of the user terminal of obtaining.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing storage Have one perhaps more than one program the one or more programs can be held by one or more than one processor Row is to be used for:
When detecting load request of the user terminal to the server end request of loading H5 page resource of application, judgement Whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
If the user terminal is the server end request of loading H5 page resource to the application for the first time, receive described in answer Server end of the server end based on the load request for the first time H5 page resource fed back and the application is same The acquisition program segment of the acquisition user terminal router default management address of step feedback;
The acquisition program segment is read, to obtain the user terminal router default management address, to be based on the user End router default management address obtains the Web vector graphic state of the user terminal;
Web vector graphic state based on the user terminal determines whether to play the Dynamic Graph in the H5 page resource automatically Piece.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing storage Have one perhaps more than one program the one or more programs can be held by one or more than one processor Row is to be used for:
When receiving the load request of user terminal request of loading H5 page resource, obtain and by the load request Request mark judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
If the user terminal is the server end request of loading H5 page resource to the application for the first time, it is based on the head Secondary load request feeds back the H5 page resource, and synchronous feedback obtains obtaining for the user terminal router default management address Program fetch section, so that the user terminal receives and realizes the Web vector graphic state of the user terminal of obtaining.
The present invention by detect server end request of loading H5 page resource from the user terminal to application load When request, first judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;If institute Stating user terminal is the server end request of loading H5 page resource to the application for the first time, then receives the server end of the application The acquisition of the server end synchronous feedback of the H5 page resource and the application that are fed back based on the load request for the first time The acquisition program segment of the user terminal router default management address;After the receipt, then the acquisition program segment is read, to obtain The user terminal router default management address, to obtain the user terminal based on the user terminal router default management address Web vector graphic state;Finally the Web vector graphic state based on the user terminal determines whether to play the H5 page resource automatically In dynamic picture.In this application, detecting the user terminal for the first time to the server end request of loading H5 page of application When the load request of resource, the acquisition program for the acquisition user terminal router default management address that server end is sent is received Section, so that the acquisition program segment is read in the H5 page, to obtain the user terminal router default management address, with base The Web vector graphic state of the user terminal is obtained in the user terminal router default management address, according to active user end Network state carries out the processing such as corresponding video playing, caching, finally realizes the purpose for promoting user experience.It thus solves existing The technical issues of having the specific H5 page that cannot accurately identify the network state of corresponding user terminal, user experience is caused to reduce.
Detailed description of the invention
Fig. 1 is the flow diagram of inventive network use state recognition methods first embodiment;
Fig. 2 is that the present invention is based on the Web vector graphic shapes that the user terminal router default management address obtains the user terminal The refinement flow diagram of state step;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to.
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.
The present invention provides a kind of Web vector graphic state identification method, the first of inventive network use state recognition methods In embodiment, referring to Fig.1, the Web vector graphic state identification method is applied to user terminal, the Web vector graphic state recognition side Method includes:
Step S10 is detecting that the user terminal asks to the load of the server end request of loading H5 page resource of application When asking, judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
Step S20 connects if the user terminal is the server end request of loading H5 page resource to the application for the first time Receive clothes of the server end of the application based on the load request for the first time H5 page resource fed back and the application The acquisition program segment of the acquisition user terminal router default management address for device end synchronous feedback of being engaged in;
Step S30 reads the acquisition program segment, to obtain the user terminal router default management address, to be based on The user terminal router default management address obtains the Web vector graphic state of the user terminal;
Step S40, the Web vector graphic state based on the user terminal determine whether to play automatically in the H5 page resource Dynamic picture.
Specific step is as follows:
Step S10 is detecting that the user terminal asks to the load of the server end request of loading H5 page resource of application When asking, judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
For user terminal browser, user terminal current network can be read by the operating system of user terminal and use shape State, but for user terminal browses the implement body H5 page, user terminal current network use state can not be acquired, if There are when the files such as video, dynamic picture in the current specific H5 page, the files such as the video, dynamic picture are typically in cannot be certainly The dynamic state played, or accordingly played according to the setting of browser or not playback process, if user terminal is section Flow is saved, default setting browser does not play video, and user terminal needs to click the video, dynamic picture, and triggering generates corresponding Interface whether determining broadcasting, and after user clicks and determines broadcasting, the broadcasting of the video, dynamic picture can be just carried out, thus, Although user terminal flow will not be expended when the Web vector graphic state of user terminal is WIFI state, it is desired nonetheless to the progress of user terminal Above-mentioned cumbersome fixed point really, which is hit, waits sequence of operations, and above-mentioned cumbersome fixed point really, which hits equal sequence of operations, can reduce user experience, To solve the above problems, in the present embodiment, providing a kind of convenient for specific H5 page identification active user end Web vector graphic state Method.
In the present embodiment, user terminal can be asked to the load that browser server end sends request of loading H5 page resource It asks, it is load request for the first time that browser server, which judges the load request, and then is further determined whether to user End feedback obtains program segment, so that user terminal reads the acquisition program segment and realizes the Web vector graphic state of acquisition user terminal, In, which is the program of the acquisition user terminal router default management address of the server end feedback of application Section, i.e., in the present embodiment, detect server end request of loading H5 page resource from the user terminal to application load When request, need first to judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time.
Specifically, described in the load for detecting server end request of loading H5 page resource of the user terminal to application When request, judge whether the user terminal is the server end request of loading H5 page resource step packet to the application for the first time It includes:
Step S11 is detecting that the user terminal asks to the load of the server end request of loading H5 page resource of application When asking, the address whether user terminal has the corresponding near point server of server end of the application is inquired, wherein described There are preset association relationships for the address of the server end of application and the near point server;
When detecting load request of the user terminal to the server end request of loading H5 page resource of application, inquiry The address whether user terminal has the corresponding near point server of server end of the application that is, in the present embodiment can In a manner of whether having application server end by determining user terminal and correspond near point server address, the use is judged to realize Whether family end is the server end request of loading H5 page resource to the application for the first time, if user terminal has application server end Corresponding near point server address, it is obvious that user terminal is not to provide for the first time to the server end request of loading H5 page of the application Source, if user terminal does not have application server end and corresponds near point server address, not can determine that user terminal whether for the first time to The server end request of loading H5 page resource of the application, this is because for user terminal, the application server of caching Hold corresponding near point server address that there is timeliness.Wherein, it should be noted that the server end of the application with it is described There are preset association relationship, the preset association relationships can be identified that this is pre- by user terminal for the address of near point server If the address that incidence relation can be the server end of application is identical as the address part of near point server, or the clothes of application The address at business device end and the address of near point server all carry identical identification information.
Step S12, if the user terminal has the address of the corresponding near point server of server end of the application, really The fixed user terminal is not the server end for accessing the application for the first time;
If the user terminal has the address of the corresponding near point server of server end of the application, it is determined that the use Family end is not the server end for accessing the application for the first time, and determines that the user terminal is not for the first time to the server of the application Hold request of loading H5 page resource.
Step S13, if the user terminal does not have the address of the corresponding near point server of server end of the application, Determine whether the user terminal is to visit for the first time with the presence or absence of the insertion record for obtaining program segment by inquiring the user terminal Ask the server end of the application.
In the present embodiment, due to inquiry obtain program query time than near point server address acquisition time more Long, process is more cumbersome, thus, the mode for the address for judging whether user terminal has near point server is first passed through, described in judgement Whether user terminal is the server end request of loading H5 page resource to the application for the first time, if the user terminal do not have it is described The address of the corresponding near point server of the server end of application then whether there is the acquisition program by inquiring the user terminal The insertion record of section determines whether the user terminal is the server end for accessing the application for the first time, specifically, if the user There is the insertion record for obtaining program segment at end, it is determined that the user terminal is not the server for accessing the application for the first time End, and determine that the user terminal is the server end request of loading H5 page resource to the application for the first time, if the user terminal There is not the insertion record for obtaining program segment, it is determined that the user terminal is the server end for accessing the application for the first time, And determine that the user terminal is not the server end request of loading H5 page resource to the application for the first time.
Step S20 connects if the user terminal is the server end request of loading H5 page resource to the application for the first time Receive clothes of the server end of the application based on the load request for the first time H5 page resource fed back and the application The acquisition program segment of the acquisition user terminal router default management address for device end synchronous feedback of being engaged in;
In the present embodiment, if the user terminal is to provide for the first time to the server end request of loading H5 page of the application Source, then can be added with the mark of load request for the first time in the load request that the user terminal is sent to the server end of the application Know, since the server end of the application is the mark that can identify the load request for the first time, thus the service of the application After receiving the load request for the first time, the server end of the application can realize base according to the feedback mechanism of setting at device end User terminal router default management address described in corresponding H5 page resource and synchronous feedback is fed back in the load request for the first time Acquisition program segment, wherein the acquisition program segment indicate each router default management address of user terminal acquisition logic, this is obtained Take logic for carrying out obtaining for the default management address of each router of user terminal when user terminal reads the acquisition program segment It takes.
It is illustrated to specific embodiment, in the present embodiment, is visited if party A-subscriber end is that one account of first passage safety is logical Ask Taobao's webpage, then the logical server end of one account of safety can be fed back to the party A-subscriber end obtains program segment, for the reading of party A-subscriber end And it is embedded in the acquisition program segment.
Step S30 reads the acquisition program segment, to obtain the user terminal router default management address, to be based on The user terminal router default management address obtains the Web vector graphic state of the user terminal;
In the present embodiment, the function of obtaining program segment is: the user terminal router default management address is obtained, and The Web vector graphic state of the user terminal is obtained based on the user terminal router default management address, it is specifically, described to be based on The Web vector graphic state step that the user terminal router default management address obtains the user terminal includes:
Step S31, be based on the acquisition program segment, from the router default management address obtain predetermined number to The address of router is identified, to obtain the address list of router to be identified;
After obtaining obtaining program segment, identification obtains router default management address, the WIFI connected due to user terminal May to be multiple, thus, what is managed in router default management address is the address of multiple routers, that may be present to avoid When consumption and the consumption of excess resource predetermined number is obtained from the router default management address in the present embodiment The address of router to be identified, to obtain the address list of router to be identified.
Step S32, successively each router to be identified into the address list of the router to be identified is sent Web vector graphic state recognition request, and judge that whether receiving any router to be identified within a preset period of time is based on institute It states Web vector graphic state recognition and requests fed back answer code, wherein the router to be identified is being in WIFI connected state When, if receiving the Web vector graphic state recognition request, answer code described in Real-time Feedback;
Successively each router to be identified into the address list of the router to be identified sends Web vector graphic State recognition request, wherein user terminal is in some router hair to be identified into the address list of the router to be identified After the identification request of SCN Space Cable Network use state, if not receiving the feedback of answer code in such as 0.1S within a certain period of time, it is further continued for Other routers to be identified into the address list of the router to be identified send Web vector graphic state recognition request, Other routings to be identified if receiving the feedback of answer code, no longer into the address list of the router to be identified Device sends Web vector graphic state recognition request.It should be noted that according to the built-in agreement of router to be identified, if road to be identified By device when being in WIFI connected state, when receiving Web vector graphic state recognition request, then rung described in Real-time Feedback Answer code.
Step S33 is known if receiving the router to be identified within a preset period of time based on the Web vector graphic state The answer code for asking fed back is not invited, it is determined that the Web vector graphic state of the user terminal is WIFI use state.
Institute is requested if receiving the router to be identified within a preset period of time and being based on the Web vector graphic state recognition The answer code of feedback, it is determined that the Web vector graphic state of the user terminal is WIFI use state.
Step S40, the Web vector graphic state based on the user terminal determine whether to play automatically in the H5 page resource Dynamic picture.
In the present embodiment, however, it is determined that the Web vector graphic state of the user terminal is WIFI use state, then can permit The automatic dynamic picture played in user terminal H5 page resource, if not receiving the router to be identified within a preset period of time Fed back answer code is requested based on the Web vector graphic state recognition, can not determine that user terminal is in non-WIFI completely at this time Under use state, the probability that only user terminal is under non-WIFI use state is bigger, thus, at this point it is possible to forbid broadcasting automatically Put the dynamic picture in the H5 page resource.
The present invention by detect server end request of loading H5 page resource from the user terminal to application load When request, first judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;If institute Stating user terminal is the server end request of loading H5 page resource to the application for the first time, then receives the server end of the application The acquisition of the server end synchronous feedback of the H5 page resource and the application that are fed back based on the load request for the first time The acquisition program segment of the user terminal router default management address;After the receipt, then the acquisition program segment is read, to obtain The user terminal router default management address, to obtain the user terminal based on the user terminal router default management address Web vector graphic state;Finally the Web vector graphic state based on the user terminal determines whether to play the H5 page resource automatically In dynamic picture.In this application, detecting the user terminal for the first time to the server end request of loading H5 page of application When the load request of resource, the acquisition program for the acquisition user terminal router default management address that server end is sent is received Section, so that the acquisition program segment is read in the H5 page, to obtain the user terminal router default management address, with base The Web vector graphic state of the user terminal is obtained in the user terminal router default management address, according to active user end Network state carries out the processing such as corresponding video playing, caching, finally realizes the purpose for promoting user experience.It thus solves existing The technical issues of having the specific H5 page that cannot accurately identify the network state of corresponding user terminal, user experience is caused to reduce.
Further, the present invention provides another embodiment of Web vector graphic state identification method, in this embodiment, described Based on the acquisition program segment, the ground of the router to be identified of predetermined number is obtained from the router default management address Location includes: to obtain the address list step of router to be identified
Step S311 is based on the acquisition program segment, and it is big that access times are obtained from the router default management address In the number of the router to be identified of preset value;
In the present embodiment, it when choosing the number of router to be identified, is used according to user terminal router to be identified secondary Number determines, i.e., that access times are greater than the router to be identified of preset value is first obtained from the router default management address Number.
It is described pre- to judge whether the access times are greater than greater than the number of the router to be identified of preset value by step S312 If number, if the number that the access times are greater than the router to be identified of preset value is less than the predetermined number, institute is obtained Address of the access times greater than the router to be identified of preset value is stated, to obtain the address list of router to be identified;
Step S313, if the number that the access times are greater than the router to be identified of preset value is greater than described default Number, then obtain the address of the router to be identified of the predetermined number, to obtain the address list of router to be identified.
In the present embodiment, quickly to obtain the current Web vector graphic state of user terminal as far as possible, also make described in judgement Whether it is greater than the predetermined number with the number that number is greater than the router to be identified of preset value, if the access times are greater than in advance If the number of the router to be identified of value is less than the predetermined number, then it is to be identified greater than preset value to obtain the access times The address of router obtains the address list of router to be identified, if the access times are greater than the routing to be identified of preset value The number of device is greater than the predetermined number, then the address of the router to be identified of the preset value number is obtained, to obtain wait know The address list of other router.Wherein, due to the address of the less router to be identified of selection, thus, it is possible to effectively reduce H5 The page obtains the when consumption of user terminal Web vector graphic state.
In the present embodiment, due to being based on the acquisition program segment, obtaining from the router default management address makes It is greater than the number of the router to be identified of preset value with number;Judge that the access times are greater than the router to be identified of preset value Number whether be greater than the predetermined number, if the access times be greater than preset value router to be identified number be less than institute Predetermined number is stated, then address of the access times greater than the router to be identified of preset value is obtained, to obtain routing to be identified The address list of device;If the number that the access times are greater than the router to be identified of preset value is greater than the predetermined number, The address of the router to be identified of the predetermined number is obtained, to obtain the address list of router to be identified.Thus, it is possible to subtract The identifying processing time of few user terminal Web vector graphic state, it is thus possible to promote user experience.
Further, the present invention provides another embodiment of Web vector graphic state identification method, in this embodiment, described Web vector graphic state based on the user terminal determine whether to play automatically the dynamic picture step in the H5 page resource it After include:
Step S50, saves the acquisition program segment, and generates and keep records of, if detecting the user terminal to answering again It is automatic to read based on the load request again when the load request again of server end request of loading H5 page resource The acquisition program segment, to obtain the user terminal router default management address, to be based on the user terminal router default Management address obtains the Web vector graphic state of the user terminal.
In the present embodiment, after user terminal obtains obtaining program segment, which is read, saved and is embedded in, After being saved, it also generates and keeps records of, this keeps records of the acquisition time etc. including obtaining program segment, it should be noted that by Acquisition program segment is had existed in user terminal, thus, if detecting again, the user terminal adds to the request of the server end of application When carrying the load request again of H5 page resource, based on the load request again, the acquisition program segment is read, automatically to obtain The user terminal router default management address is taken, to obtain the user based on the user terminal router default management address The Web vector graphic state at end.Without obtaining obtaining program segment again from server end.
In the present embodiment, it due to saving the acquisition program segment, and generates and keeps records of, if detecting the use again Load request again from family end to the server end request of loading H5 page resource of application when, based on the load request again, Automatically the acquisition program segment is read, to obtain the user terminal router default management address, to be based on the user terminal road The Web vector graphic state of the user terminal is obtained by device default management address.It thus can be avoided because repeating to obtain obtaining program segment Resource consumption caused by and, it is thus possible to promote user experience.
Further, the present invention also provides a kind of Web vector graphic state identification method, the Web vector graphic state recognition sides Method is applied to the server end of application, and the Web vector graphic state identification method includes:
Step S01 is obtained and is added by described when receiving the load request of user terminal request of loading H5 page resource It carries the request in request and identifies and judge whether the user terminal is the server end request of loading H5 page to the application for the first time Resource;
In the present embodiment, Web vector graphic state identification method is applied to the server end of application, the server of the application End first determines whether to whether there is in the load request when receiving the load request of user terminal request of loading H5 page resource Request mark, by judging judge whether the user terminal is for the first time to institute with the presence or absence of request mark in the load request State the server end request of loading H5 page resource of application.
Step S02, if the user terminal is the server end request of loading H5 page resource to the application for the first time, base The H5 page resource is fed back in the load request for the first time, and synchronous feedback obtains the user terminal router default management The acquisition program segment of address, so that the user terminal receives and realizes the Web vector graphic state of the user terminal of obtaining.
If the user terminal is the server end request of loading H5 page resource to the application for the first time, it is based on the head Secondary load request feeds back the H5 page resource, and synchronous feedback obtains obtaining for the user terminal router default management address Program fetch section, so that the user terminal receives and realizes the Web vector graphic state of the user terminal of obtaining, if the user terminal is not It is the server end request of loading H5 page resource for the first time to the application, then the H5 page resource is fed back based on load request When, asynchronous feedback obtains the acquisition program segment of the user terminal router default management address.
In the present embodiment, it when receiving the load request of user terminal request of loading H5 page resource, obtains and passes through Request mark in the load request judges whether the user terminal is the server end request of loading to the application for the first time H5 page resource;If the user terminal is the server end request of loading H5 page resource to the application for the first time, it is based on institute The load request stated for the first time feeds back the H5 page resource, and synchronous feedback obtains the user terminal router default management address Acquisition program segment, so that the user terminal receives and realizes the Web vector graphic state of the user terminal of obtaining.In the present embodiment In, since server end has the feedback logic with the matched acquisition program segment of user terminal, thus, it is possible to make for user terminal network It is laid the foundation with state recognition.
Referring to Fig. 3, Fig. 3 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Web vector graphic state recognition equipment of the embodiment of the present invention can be PC, be also possible to smart phone, tablet computer, electricity Philosophical works reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression Standard audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image Expert's compression standard audio level 3) ustomer premises access equipments such as player, portable computer.
As shown in figure 3, the Web vector graphic state recognition equipment may include: processor 1001, such as CPU, memory 1005, communication bus 1002.Wherein, communication bus 1002 is logical for realizing the connection between processor 1001 and memory 1005 Letter.Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), example Such as magnetic disk storage.Memory 1005 optionally can also be the storage equipment independently of aforementioned processor 1001.
Optionally, the Web vector graphic state recognition equipment can also include target user interface, network interface, camera, RF (Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..Target user interface can wrap Display screen (Display), input submodule are included, can also be wrapped for such as keyboard (Keyboard), optional target user interface Include standard wireline interface and wireless interface.Network interface optionally may include standard wireline interface and wireless interface (such as WI- FI interface).
It will be understood by those skilled in the art that Web vector graphic state recognition device structure shown in Fig. 3 is not constituted pair The restriction of Web vector graphic state recognition equipment may include components more more or fewer than diagram, or combine certain components, or The different component layout of person.
As shown in figure 3, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module and Web vector graphic state recognition program.Operating system be manage and control Web vector graphic state recognition device hardware and The program of software resource supports the operation of Web vector graphic state recognition program and other softwares and/or program.Network communication mould Block for realizing the communication between each component in the inside of memory 1005, and with other hardware in Web vector graphic state recognition equipment It is communicated between software.
In Web vector graphic state recognition equipment shown in Fig. 3, processor 1001 stores in memory 1005 for executing Web vector graphic state recognition program, the step of realizing Web vector graphic state identification method described in any of the above embodiments.
Inventive network use state identifies equipment specific embodiment and above-mentioned each reality of Web vector graphic state identification method It is essentially identical to apply example, details are not described herein.
The present invention also provides a kind of Web vector graphic status identification means, the Web vector graphic status identification means are applied to use Family end, the Web vector graphic status identification means include:
Judgment module, for detect server end request of loading H5 page resource from the user terminal to application plus When carrying request, judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
Receiving module, if being to be provided for the first time to the server end request of loading H5 page of the application for the user terminal Source then receives H5 page resource that the server end of the application is fed back based on the load request for the first time and described The acquisition program segment of the acquisition user terminal router default management address of the server end synchronous feedback of application;
Read module, for reading the acquisition program segment, to obtain the user terminal router default management address, with The Web vector graphic state of the user terminal is obtained based on the user terminal router default management address;
Determining module determines whether to play the H5 page money automatically for the Web vector graphic state based on the user terminal Dynamic picture in source.
The present invention also provides a kind of Web vector graphic status identification means, the Web vector graphic status identification means are applied to The server end of application, the Web vector graphic status identification means include:
Module is obtained, for obtaining and passing through when receiving the load request of user terminal request of loading H5 page resource Request mark in the load request judges whether the user terminal is the server end request of loading to the application for the first time H5 page resource;
Feedback module, if being to be provided for the first time to the server end request of loading H5 page of the application for the user terminal The H5 page resource is then fed back based on the load request for the first time in source, and synchronous feedback obtains the user terminal router Default the acquisition program segment of management address, obtains the Web vector graphic shape of the user terminal so that the user terminal is received and realized State.
Inventive network use state identification device specific embodiment and above-mentioned each reality of Web vector graphic state identification method It is essentially identical to apply example, details are not described herein.
The present invention provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is stored with one or more than one journey Sequence, the one or more programs can also be executed by one or more than one processor for realizing above-mentioned The step of Web vector graphic state identification method described in one.
Readable storage medium storing program for executing specific embodiment of the present invention and above-mentioned each embodiment of Web vector graphic state identification method are basic Identical, details are not described herein.
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 similarly includes in patent process range of the invention.

Claims (10)

1. a kind of Web vector graphic state identification method, which is characterized in that the Web vector graphic state identification method is applied to user End, the Web vector graphic state identification method include:
When detecting load request of the user terminal to the server end request of loading H5 page resource of application, described in judgement Whether user terminal is the server end request of loading H5 page resource to the application for the first time;
If the user terminal is the server end request of loading H5 page resource to the application for the first time, the application is received Server end is synchronized instead based on the server end of the load request for the first time H5 page resource fed back and the application The acquisition program segment of the acquisition user terminal router default management address of feedback;
The acquisition program segment is read, to obtain the user terminal router default management address, to be based on the user terminal road The Web vector graphic state of the user terminal is obtained by device default management address;
Web vector graphic state based on the user terminal determines whether to play the dynamic picture in the H5 page resource automatically.
2. Web vector graphic state identification method as described in claim 1, which is characterized in that described to be routed based on the user terminal Device default management address obtains the Web vector graphic state step of the user terminal and includes:
Based on the acquisition program segment, the router to be identified of predetermined number is obtained from the router default management address Address, to obtain the address list of router to be identified;
Successively each router to be identified into the address list of the router to be identified sends Web vector graphic state Identification request, and judge that whether receiving any router to be identified within a preset period of time is based on the Web vector graphic shape Fed back answer code is requested in state identification, wherein the router to be identified is when being in WIFI connected state, if receiving institute Web vector graphic state recognition request is stated, then answer code described in Real-time Feedback;
It is fed back if receiving the router to be identified within a preset period of time and being based on Web vector graphic state recognition request Answer code, it is determined that the Web vector graphic state of the user terminal be WIFI use state.
3. Web vector graphic state identification method as claimed in claim 2, which is characterized in that described to be based on the acquisition program Section obtains the address of the router to be identified of predetermined number, from the router default management address to obtain road to be identified Include: by the address list step of device
Based on the acquisition program segment, access times are obtained from the router default management address greater than preset value wait know The number of other router;
Judge whether the access times are greater than the predetermined number greater than the number of the router to be identified of preset value, if described The number that access times are greater than the router to be identified of preset value is less than the predetermined number, then obtains the access times and be greater than The address of the router to be identified of preset value, to obtain the address list of router to be identified;
If the number that the access times are greater than the router to be identified of preset value is greater than the predetermined number, obtain described pre- If the address of the router to be identified of number, to obtain the address list of router to be identified.
4. Web vector graphic state identification method as described in claim 1, which is characterized in that the net based on the user terminal Network use state determines whether to play the dynamic picture step in the H5 page resource automatically
The acquisition program segment is saved, and generates and keeps records of, if detecting server end of the user terminal to application again When the load request again of request of loading H5 page resource, based on the load request again, the acquisition program is read automatically Section, to obtain the user terminal router default management address, to be obtained based on the user terminal router default management address The Web vector graphic state of the user terminal.
5. Web vector graphic state identification method as described in claim 1, which is characterized in that described to detect the user terminal To the server end request of loading H5 page resource of application load request when, judge whether the user terminal is for the first time to described The server end request of loading H5 page resource step of application includes:
When detecting load request of the user terminal to the server end request of loading H5 page resource of application, described in inquiry Whether user terminal has the address of the corresponding near point server of server end of the application, wherein the server of the application There are preset association relationships for end and the address of the near point server;
If the user terminal has the address of the corresponding near point server of server end of the application, it is determined that the user terminal It is not the server end for accessing the application for the first time;
If the user terminal does not have the address of the corresponding near point server of server end of the application, by described in inquiry User terminal determines whether the user terminal is to access the application for the first time with the presence or absence of the insertion record for obtaining program segment Server end.
6. a kind of Web vector graphic state identification method, which is characterized in that the Web vector graphic state identification method is applied to application Server end, the Web vector graphic state identification method includes:
When receiving the load request of user terminal request of loading H5 page resource, obtains and pass through asking in the load request Mark is asked to judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
If the user terminal is the server end request of loading H5 page resource to the application for the first time, based on it is described for the first time Load request feeds back the H5 page resource, and synchronous feedback obtains the acquisition journey of the user terminal router default management address Sequence section, so that the user terminal receives and realizes the Web vector graphic state of the user terminal of obtaining.
7. a kind of Web vector graphic status identification means, which is characterized in that the Web vector graphic status identification means are applied to user End, the Web vector graphic status identification means include:
Judgment module, for detecting that the user terminal asks to the load of the server end request of loading H5 page resource of application When asking, judge whether the user terminal is the server end request of loading H5 page resource to the application for the first time;
Receiving module, if being the server end request of loading H5 page resource to the application for the first time for the user terminal, Receive H5 page resource that the server end of the application is fed back based on the load request for the first time and the application The acquisition program segment of the acquisition user terminal router default management address of server end synchronous feedback;
Read module, for reading the acquisition program segment, to obtain the user terminal router default management address, to be based on The user terminal router default management address obtains the Web vector graphic state of the user terminal;
Determining module determines whether to play automatically in the H5 page resource for the Web vector graphic state based on the user terminal Dynamic picture.
8. a kind of Web vector graphic status identification means, which is characterized in that the Web vector graphic status identification means are applied to application Server end, the Web vector graphic status identification means include:
Module is obtained, for obtaining when receiving the load request of user terminal request of loading H5 page resource and by described Request mark in load request judges whether the user terminal is H5 pages of the server end request of loading to the application for the first time Face resource;
Feedback module, if being the server end request of loading H5 page resource to the application for the first time for the user terminal, The H5 page resource is fed back based on the load request for the first time, and synchronous feedback obtains the user terminal router default pipe The acquisition program segment of address is managed, so that the user terminal receives and realizes the Web vector graphic state of the user terminal of obtaining.
9. a kind of Web vector graphic state recognition equipment, which is characterized in that the Web vector graphic state recognition equipment includes: storage Device, processor, communication bus and the Web vector graphic state recognition program being stored on the memory,
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the Web vector graphic state recognition program, to realize such as any one of claim 1-6 institute The step of Web vector graphic state identification method stated.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with Web vector graphic state recognition journey on the readable storage medium storing program for executing Sequence realizes such as network of any of claims 1-6 when the Web vector graphic state recognition program is executed by processor The step of use state recognition methods.
CN201811206496.2A 2018-10-16 2018-10-16 Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing Pending CN109657176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811206496.2A CN109657176A (en) 2018-10-16 2018-10-16 Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811206496.2A CN109657176A (en) 2018-10-16 2018-10-16 Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109657176A true CN109657176A (en) 2019-04-19

Family

ID=66110293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811206496.2A Pending CN109657176A (en) 2018-10-16 2018-10-16 Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109657176A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111840598A (en) * 2020-06-23 2020-10-30 珠海格力电器股份有限公司 Sterilization control method, storage medium, processor and sterilization equipment
CN112035524A (en) * 2020-09-02 2020-12-04 中国银行股份有限公司 List data query method and device, computer equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466981B1 (en) * 1998-06-30 2002-10-15 Microsoft Corporation Method using an assigned dynamic IP address and automatically restoring the static IP address
CN106874520A (en) * 2017-03-20 2017-06-20 北京猎豹移动科技有限公司 Webpage loading method, device and electronic equipment
WO2017190641A1 (en) * 2016-05-03 2017-11-09 北京京东尚科信息技术有限公司 Crawler interception method and device, server terminal and computer readable medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466981B1 (en) * 1998-06-30 2002-10-15 Microsoft Corporation Method using an assigned dynamic IP address and automatically restoring the static IP address
WO2017190641A1 (en) * 2016-05-03 2017-11-09 北京京东尚科信息技术有限公司 Crawler interception method and device, server terminal and computer readable medium
CN106874520A (en) * 2017-03-20 2017-06-20 北京猎豹移动科技有限公司 Webpage loading method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张永杰;: "Web服务器和浏览器的设计与实现", 电脑知识与技术, no. 36 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111840598A (en) * 2020-06-23 2020-10-30 珠海格力电器股份有限公司 Sterilization control method, storage medium, processor and sterilization equipment
CN112035524A (en) * 2020-09-02 2020-12-04 中国银行股份有限公司 List data query method and device, computer equipment and readable storage medium
CN112035524B (en) * 2020-09-02 2024-04-19 中国银行股份有限公司 List data query method, device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
CN110716850B (en) Page testing method, device and system and storage medium
CN104965848B (en) A kind of front end resource loading method and device
CN104978267B (en) webpage test method, terminal and server
CN108259945A (en) The method and apparatus that processing plays the playing request of multi-medium data
CN110110263A (en) Webpage display process, device, terminal and storage medium
CN106933871A (en) Short linking processing method, device and short linked server
CN107508883A (en) Information-pushing method, device, storage medium and mobile terminal
CN106851583A (en) The location information acquisition method of mobile terminal, device and mobile terminal
CN110096660A (en) Method, apparatus and electronic equipment for loading page picture
CN111478849B (en) Service access method, device and storage medium
CN110321075B (en) Data migration method, device, equipment and storage medium based on nbd equipment
CN108184143B (en) Method and device for acquiring resources
US9881317B2 (en) Information processing apparatus, information processing method, information communication system, and computer program
CN109558320A (en) System detection method, device, system, equipment and computer readable storage medium
WO2021159393A1 (en) Information pushing method and apparatus, and server and storage medium
CN104967646B (en) Document down loading method and device
CN109657176A (en) Web vector graphic state identification method, device, equipment and readable storage medium storing program for executing
EP2587844A2 (en) NFC tag location
CN106375866A (en) Page loading method and terminal
CN110347578B (en) Application testing method and device and storage medium
CN107040892A (en) Location information acquisition method, device and the mobile terminal of mobile terminal
CN113055348B (en) Cross-platform data request method and device and electronic equipment
CN113835789A (en) Rendering method, rendering device, electronic equipment and computer storage medium
CN106302002B (en) Test method and 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