CN109814868A - Network transmission analogy method, device, computer equipment and storage medium - Google Patents

Network transmission analogy method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109814868A
CN109814868A CN201811526535.7A CN201811526535A CN109814868A CN 109814868 A CN109814868 A CN 109814868A CN 201811526535 A CN201811526535 A CN 201811526535A CN 109814868 A CN109814868 A CN 109814868A
Authority
CN
China
Prior art keywords
target
target data
terminal
store path
network address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811526535.7A
Other languages
Chinese (zh)
Other versions
CN109814868B (en
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 CN201811526535.7A priority Critical patent/CN109814868B/en
Publication of CN109814868A publication Critical patent/CN109814868A/en
Priority to PCT/CN2019/122937 priority patent/WO2020119544A1/en
Application granted granted Critical
Publication of CN109814868B publication Critical patent/CN109814868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention discloses a kind of network transmission analogy method, device, computer equipment and storage mediums, it include: the access request for obtaining terminal and sending, the store path that there are mapping relations with the target network address is searched in preset map listing, wherein, the store path is that path is locally stored, and the storage location that the store path is directed toward stores the target data;The target data is called according to the store path, and carries out parsing and shows.Due to, it is still all consistent from the result that network server obtains for terminal from local data base, request this document is mainly the process simulated actual use user terminal and obtain target data, therefore, virtual local data base can satisfy terminal from sending access request, to the process for obtaining the corresponding content of the request, but and be not take up Internet resources, the data loss problem that data are likely to occur in webpage transmission process can be reduced, and the occupancy to Internet resources can be reduced.

Description

Network transmission analogy method, device, computer equipment and storage medium
Technical field
The present embodiments relate to field of information processing, especially a kind of network transmission analogy method, device, computer are set Standby and storage medium.
Background technique
Front end exploitation is the process that the front-end interfaces such as creation of web face or app are presented to the user.Front end exploitation passes through HTML, CSS and JavaScript and various technologies, frame, the solution being derived, the use of Lai Shixian internet product Family interface alternation.It is evolved from webpage making, nominally there is apparent characteristics of the times.Evolution process in internet In, webpage making is Web1.0 product of the time, and early stage website main contents are all static state, based on picture and text, user Using the behavior of website also based on browsing.With the development of internet technology with the application of HTML5, CSS3, modern webpage is more Add beauty, interaction effect is significant, and function is more powerful.
In the prior art, after front end page exploitation, to verify the true display effect of the page.Front end developer It needs to have developed the page data finished to be packaged, and the page packaging file is uploaded to corresponding server system System.Then, the page packaging file then by terminal to server system request is obtained, and is presented after being parsed at the terminal Content of pages, and then check the actual display effect of front end page.
The inventor of the invention has found under study for action, in the prior art for the authentication of front end page bandwagon effect Formula is cumbersome, and the packaged data of the page will appear packet loss problem in network development process, and front end page is caused not show normally.And it is anti- Carry out data transmission and remote storage again, it is larger for the consumption of Internet resources, it is not easy to save the cost.
Summary of the invention
The embodiment of the present invention provides one kind and can simulate in the network transmission of local analog network data acquisition transmission process Method, apparatus, computer equipment and storage medium.
In order to solve the above technical problems, the technical solution that the embodiment of the invention uses is: providing a kind of net Network transmits analogy method, comprising:
Obtain the access request that terminal is sent, wherein the access request includes the target network address of target data storage;
The store path that there are mapping relations with the target network address is searched in preset map listing, wherein described Store path is that path is locally stored, and the storage location that the store path is directed toward stores the target data;
The target data is called according to the store path, and carries out parsing and shows.
Optionally, before the access request for obtaining terminal transmission, further includes:
Obtain target source code;
Being converted the target source code to according to preset transformation rule can be by the program in machine code of browser execution;
The program in machine code be packaged and generates the target data.
It is optionally, described that the program in machine code be packaged after the generation target data, further includes:
Obtain the target network address that there are mapping relations with the target data;
The IP address of the target terminal is revised as the target network address;
The store path in the terminal local of the target data is obtained, and by the store path and the IP Location is associated, and when so that the terminal being requested access to according to the target network address, is locally calling the target data.
Optionally, the target data is front end page, described to call the target data according to the store path, and It carries out after parsing shows, further includes:
Obtain the page screenshot of the front end page;
The page screenshot is input in preset first evaluation model, wherein first evaluation model is preparatory Training is used for the neural network model evaluated image aesthetics to convergence state;
Obtain the classification results of the aesthetics of the page screenshot of the first evaluation model output.
Optionally, the classification results of the aesthetics of the page screenshot for obtaining first evaluation model output it Afterwards, further includes:
The classification results are compared with preset first threshold;
When the classification results are less than the first threshold, Xiang Suoshu terminal sends preset information warning, wherein institute Information warning is stated for prompting user front end page needs to modify.
Optionally, described when the classification results are less than the first threshold, Xiang Suoshu terminal sends preset warning After information, further includes:
The page screenshot is input in preset second evaluation model, wherein second evaluation model is preparatory Training is used for the neural network model extracted to the image pixel for influencing image aesthetics to convergence state;
The extraction image of the page screenshot of second evaluation model output is shown.
Optionally, described that the store path that there are mapping relations with the target network address is searched in preset map listing Include:
It calls in preset map listing;
The store path that there are mapping relations with the target network address is searched in the map listing, if the mapping arranges There is the store path in table, then confirm and call the target data;Otherwise, then it is addressed according to the target network address, To access the server end of the target network address characterization.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of network transmission simulator, comprising:
Module is obtained, for obtaining the access request of terminal transmission, wherein the access request includes target data storage Target network address;
Processing module, for searching the storage road that there are mapping relations with the target network address in preset map listing Diameter, wherein the store path is that path is locally stored, and the storage location that the store path is directed toward stores the target money Material;
Execution module for calling the target data according to the store path, and carries out parsing and shows.
Optionally, the network transmission simulator further include:
First acquisition submodule, for obtaining target source code;
First processing submodule, for according to preset transformation rule converting the target source code to can be browsed The program in machine code of device operation;
First implementation sub-module generates the target data for be packaged to the program in machine code.
Optionally, the network transmission simulator further include:
Second acquisition submodule, for obtaining the target network address that there are mapping relations with the target data;
Second processing submodule, for the IP address of the target terminal to be revised as the target network address;
Second implementation sub-module, for obtaining the store path in the terminal local of the target data, and by institute It states store path to be associated with the IP address, when so that the terminal being requested access to according to the target network address, in local Call the target data.
Optionally, the target data is front end page, the network transmission simulator further include:
Third acquisition submodule, for obtaining the page screenshot of the front end page;
Third handles submodule, for the page screenshot to be input in preset first evaluation model, wherein described First evaluation model is that training is used for the neural network model evaluated image aesthetics to convergence state in advance;
Third implementation sub-module, point of the aesthetics of the page screenshot for obtaining the first evaluation model output Class result.
Optionally, the network transmission simulator further include:
First compares submodule, for the classification results to be compared with preset first threshold;
4th implementation sub-module, for when the classification results are less than the first threshold, Xiang Suoshu terminal to send pre- If information warning, wherein the information warning for prompt the user front end page needs modify.
Optionally, the network transmission simulator further include:
Fourth process submodule, for the page screenshot to be input in preset second evaluation model, wherein described Second evaluation model is that training is used for the nerve extracted to the image pixel for influencing image aesthetics to convergence state in advance Network model;
The extraction image of 5th implementation sub-module, the page screenshot for exporting second evaluation model carries out It shows.
Optionally, the network transmission simulator further include:
First calls submodule, for calling in preset map listing;
5th processing submodule, has depositing for mapping relations with the target network address for searching in the map listing Path is stored up, if having the store path in the map listing, confirms and calls the target data;Otherwise, then according to institute It states target network address to be addressed, to access the server end of the target network address characterization.
In order to solve the above technical problems, the present embodiment also provides a kind of computer equipment, including memory and processor, institute It states and is stored with computer-readable instruction in memory, when the computer-readable instruction is executed by the processor, so that described Processor executes the step of network transmission analogy method as described above.
In order to solve the above technical problems, the present embodiment also provides a kind of storage medium for being stored with computer-readable instruction, When the computer-readable instruction is executed by one or more processors, so that one or more processors execution is as described above The step of network transmission analogy method.
The beneficial effect of the embodiment of the present invention is: terminal is when sending access request, according to the target network in access request Location searches in local map listing and path is locally stored with corresponding relationship with map listing, then, calls directly this Target data in ground store path completes simulation and sends access request, to the process for calling corresponding target data.By In, for terminal from local data base still from network server obtain result be all consistent, request this article Part is mainly the process simulated actual use user terminal and obtain target data, and therefore, virtual local data base can expire Sufficient terminal is from access request is issued, to the process for obtaining the corresponding content of the request, but and be not take up Internet resources, can subtract The data loss problem that a small number of evidences are likely to occur in webpage transmission process, and the occupancy to Internet resources can be reduced, effectively Control cost.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the basic procedure schematic diagram of network transmission of embodiment of the present invention analogy method;
Fig. 2 is converted into flow diagram for target data of the embodiment of the present invention;
The associated flow diagram in path is locally stored by modification IP address realization for the embodiment of the present invention in Fig. 3;
Fig. 4 is the flow diagram that the embodiment of the present invention evaluates front end page by nerve channel network model;
Fig. 5 is the flow diagram that the embodiment of the present invention carries out early warning to front end page aesthetics;
Fig. 6 is the flow diagram for the extraction image that the embodiment of the present invention obtains page screenshot;
Fig. 7 is the flow diagram that switching of the embodiment of the present invention obtains form;
Fig. 8 is network transmission of embodiment of the present invention simulator basic structure schematic diagram;
Fig. 9 is computer equipment of embodiment of the present invention basic structure block diagram.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its Sequence is executed or is executed parallel, and serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, serial number It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can With combine voice, data processing, fax and/or communication ability;PDA (PersonalDigital Assistant, it is personal Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
It is the basic procedure schematic diagram of the present embodiment network transmission analogy method referring specifically to Fig. 1, Fig. 1.
As shown in Figure 1, a kind of network transmission analogy method, comprising:
S1100, the access request that terminal is sent is obtained, wherein the access request includes the target of target data storage Network address;
During terminal simulation obtains corresponding content from server end.Terminal creates an access request, the access After the processing that request passes through terminal CPU, distributes to the network interface card of terminal and be addressed to access.And it is carried out in the present embodiment by local The process of virtual network data acquisition is also to have to start at this time.But not limited to this, according to the difference of concrete application scene, one In a little selectivity embodiments, CPU sends the access request after generating the access request, with regard to directly carrying out simulation, without passing through Network interface card accesses the transmission of request.
Include the target network address of target data in access request, i.e., includes the network address of http type in access request, according to The network address is addressed that access request, acquisition target data can be sent to corresponding server end.
S1200, the store path that there are mapping relations with the target network address is searched in preset map listing, In, the store path is that path is locally stored, and the storage location that the store path is directed toward stores the target data;
Network interface card calls the map listing of pre-selection storage first, is mapping after the access request task for getting CPU distribution The store path that there are mapping relations with the target network address is searched in list, which is local store path, and should The storage location that local path is directed toward is stored with target data.In present embodiment, target data is the front end webpage of browser, But not limited to this, and according to the difference of concrete application scene, in some selective embodiments, target data can be any net Network data, including but not limited to: text, audio, video and pictorial information.
In some embodiments, by modifying the IP address of terminal, to complete to search the process that path is locally stored.Modification Mode are as follows: configuration host (host) be the address this terminal i p, it is assumed that the address terminal i p are as follows: http (i.e. target network address).host Expression can be the same as the local computer that other machines accesses mutually.One local has unique designation code, with netmask one Composition IP address is played, if accessing internet by ISP by peer-peer protocol, will be possessed during the connection unique IP address, in this period, your host is exactly a host.
It is then to be generated according to front end page that the IP address of terminal, which is set to http mapping relations corresponding with the IP, Target data is in local store path.That is, when the machine needs to carry out the verifying of front end page bandwagon effect, as corresponding Server end send request front end page data packet request when, network card equipment parsing server end access address its It is pointing directly at the target data being locally stored in fact.
In the terminal for the visual angle with CPU, CPU handles the access request that an application program generates, by the access Request is sent to network interface card and is handled, and network card equipment then passes through addressing and finds corresponding server end, and the access request is sent out It send to server end, server end responds the access request, returns corresponding target data to network interface card, network interface card receives the target After data, CPU is then parsed and is shown to the target data.Therefore, the process of target data is obtained for terminal CPU It is divided into two steps, the first step distributes request task to network interface card;Second step reads the corresponding target data of the request task from network interface card It is shown.Therefore, by the setting of local data base, all processes that CPU obtains target data similarly also be can satisfy.
S1300, the target data is called according to the store path, and carries out parsing and shows.
Terminal directly reads target data by the path after determining the store path of target data.By to the mesh After mark data carries out load operating, finally the target data is shown.
For example, front end page is as a kind of target data.The developer of front end page has designed in front end page Cheng Hou needs the content memory once complete simulation loading displaying to front end page, to observe the final displaying of front end page Effect.The developer of front end page can simulate from network according to the analogy method and obtain the front end page data, and carry out It shows.And check the design of front end page in actual application from showing in result, if to reach expected design mesh Mark.
In above embodiment, terminal, according to the target network address in access request, is reflected when sending access request locally It penetrates in list to search and path is locally stored with corresponding relationship with map listing, then, call directly this and path is locally stored In target data, complete simulation and send access request, to the process for calling corresponding target data.Due to for terminal For from local data base still from network server obtain result be all consistent, request this document mainly simulate The process that user terminal obtains target data is actually used, therefore, virtual local data base can satisfy terminal from sending Access request, to the process for obtaining the corresponding content of the request, but and be not take up Internet resources, data can be reduced in webpage The data loss problem being likely to occur in transmission process, and the occupancy to Internet resources can be reduced, it is effectively controlled cost.
In some embodiments, in the development process of front end page, it will use different programming languages and carry out source code Programming, the source code can not directly by terminal browser memory parse and operation.Therefore, it is necessary to the target source code It is converted.Referring to Fig. 2, Fig. 2 is converted into flow diagram for the present embodiment target data.
As shown in Fig. 2, before step S1100 further include:
S1011, target source code is obtained;
In present embodiment, target data is front end page.When simulation obtains the process of front end page, front end is obtained first The target source code of the page.
S1012, converted the target source code to according to preset transformation rule can be by the code of browser execution Program;
In present embodiment, target source code is converted using webpack scaffold.Webpack can regard as The working method of module baler, webpack is: assigning your project as an entirety, passes through a given master file (such as: index.js), webpack will find all dependent files of your project since this file, use loaders (compiler) handles them, is finally packaged as the identifiable JavaScript file of browser.
What JavaScript file, that is, finally obtained target data, i.e. front end page were formed can be by browser execution File.
S1013, the program in machine code is carried out to be packaged the generation target data.
Webpack scaffold after the conversion for completing target source code, by the JavaScript file being converted into Row is packaged compression, generates the data packet for being suitble to server end to be stored.
By building webpack scaffold at the terminal, and webpack service is opened, will can completed at the terminal Front end page be converted into the identifiable JavaScript file of browser in real time.By virtual or modification IP for terminal Location virtual server provides most basic data and supports.
In some embodiments, by modifying the IP address of terminal, the acquisition of analog network data is realized.Please refer to figure 3, Fig. 3 are locally stored the associated flow diagram in path to realize by modification IP address.
As shown in figure 3, after step S1013 further include:
S1021, the target network address that there are mapping relations with the target data is obtained;
In present embodiment, target data is front end page.Before the network analog for carrying out front end page obtains, pass through Read the target network address with front end page binding.Since front end page is shown by browser, in leading portion page When face is developed, a target network address can be bound according to the practical application after front end page.
S1022, the IP address of the target terminal is revised as the target network address;
By modifying the IP address of terminal, to complete to search the process that path is locally stored.The mode of modification are as follows: configuration Host (host) is the address this terminal i p, it is assumed that the address terminal i p are as follows: http (i.e. target network address).Host expression can be the same as other The local computer that machine accesses mutually.One local has unique designation code, forms IP address together with netmask, such as Fruit accesses internet by ISP by peer-peer protocol, then will possess unique IP address, this period during the connection Interior, your host is exactly a host.
S1023, the store path in the terminal local for obtaining the target data, and by the store path and institute It states IP address to be associated, when so that the terminal being requested access to according to the target network address, is locally calling the target money Material.
It is then to be generated according to front end page that the IP address of terminal, which is set to http mapping relations corresponding with the IP, Target data is in local store path.That is, when the machine needs to carry out the verifying of front end page bandwagon effect, as corresponding Server end send request front end page data packet request when, network card equipment parsing server end access address its It is pointing directly at the target data being locally stored in fact.
By the modification to IP address of terminal, terminal can be made when simulation obtains data, it is more life-like to obtaining Cheng Jinhang simulation, simulation effect are more excellent.
In some embodiments, target data is front end page.Terminal needs after obtaining the front end page to front end Page actual displayed effect is evaluated, and evaluation is carried out by neural network model.Referring to Fig. 4, Fig. 4 passes through for the present embodiment The flow diagram that nerve channel network model evaluates front end page.
As shown in figure 4, after step S1300 further include:
S1411, the page screenshot for obtaining the front end page;
Terminal is after showing front end page, by carrying out the page screenshot that screen shot obtains display to display content. But not limited to this, according to the difference of concrete application scene, in some way of example, the acquisition of page screenshot passes through reading Frequency in video card shows data and obtains.
S1412, the page screenshot is input in preset first evaluation model, wherein first evaluation model To train the neural network model for being used to evaluate image aesthetics to convergence state in advance;
Above-mentioned page screenshot is input in preset first evaluation model.Wherein the first evaluation model be it is trained extremely Convergence state, for identification neural network model of page screenshot aesthetics.The first evaluation model is convolution in present embodiment Neural network model (CNN), but the first evaluation model can also be: deep neural network model (DNN), Recognition with Recurrent Neural Network The distorted pattern of model (RNN) or above-mentioned three kinds of network models.
In present embodiment, aesthetics is scoring of first evaluation model to page screenshot.Wherein, score value is hundred-mark system. But not limited to this, the difference given according to concrete application scene, point system can be one point of system, ten point system or thousand points of systems.This embodiment party In formula, the class categories of the first evaluation model are respectively as follows: 0-20,21-40,41-60,61-80,81-100.
The classification results of the aesthetics for the page screenshot that S1413, acquisition first evaluation model export.
In present embodiment, the first evaluation model output classification results when, accounting calculate classification results in each score area Between confidence level, the value range of confidence level is between 0-1.Confidence level characterization classification results are located at the general of each score value section Rate, i.e., confidence level of each classification value interval in classification is higher, then final classification results are that as the confidence level is corresponding Value interval.The quantile and quartile of the tens of the middle upper limit value of value interval and the product of confidence level as final score value Number.And tens of the tens average value as final score value in value interval.For example: it is located at 61- in judging result The confidence level of 80 value intervals is 0.8, then final score value is 76.4 points, and ten values are 7, and the value of a position and score is 8* 0.8=6.4.The final fractional value i.e. page screenshot ground aesthetics of first evaluation model output.
By neural network model aesthetics evaluation can be carried out to the page screenshot of front end page, it can be preferably more quasi- The aesthetics of true front end page is evaluated, and keeps front end page more beautiful, easy to read.
In some embodiments, after evaluating the aesthetics of front end page, need to measure the beauty of front end page Whether degree reaches certain standard, and then determines whether to modify to front end page.Referring to Fig. 5, Fig. 5 is the present embodiment pair The flow diagram of front end page aesthetics progress early warning.
As shown in figure 5, including: after step S1413
S1421, the classification results are compared with preset first threshold;
It is compared with preset first threshold after obtaining classification results.First threshold is the measurement conversion page of authorization Whether the aesthetics in face reaches the threshold value of the esthetic requirement of setting.In some embodiments, first threshold is 60 points.But first The setting of threshold value is not limited to this, the setting of the numerical value of first threshold, depending on the requirement rank in application scenarios for aesthetics, Rank is higher, then the value of first threshold is higher, otherwise, then lower.
S1422, when the classification results are less than the first threshold, Xiang Suoshu terminal sends preset information warning, Wherein, the information warning is for prompting user front end page needs to modify.
When comparison result is that classification results are less than first threshold, terminal calls preset warning information to be shown.In advance Alert information be for prompting user front end page needs to modify, such as: the front end page of current presentation does not meet aesthetics Demand please be checked and be modified accordingly.
It by the setting of first threshold, can judge whether the aesthetics of front end page meets general aesthetical standard, be The aesthetics setting of front end page provides unified measurement standard, is conducive to the optimization design of front end page.
In some embodiments, for confirming the aesthetics of front end page in the aesthetics review process of front end page When existing defects, need further to confirm the image pixel that front end page aesthetics is influenced in page screenshot.Referring to Fig. 6, Fig. 6 is the flow diagram for the extraction image that the present embodiment obtains page screenshot.
As shown in fig. 6, after step S1422 further include:
S1431, the page screenshot is input in preset second evaluation model, wherein second evaluation model To train the neural network model for being used to extract the image pixel for influencing image aesthetics to convergence state in advance;
Screen shot is input in the second evaluation model set.Wherein the second evaluation model is trained to convergence shape State, the neural network model for being extracted to the image pixel for influencing image aesthetics.It is carried out to the second evaluation model When training, when demarcating to training sample, the image pixel for influencing sample image overall aesthetic degree is demarcated in sample image Profile, then sample image is trained until the profile diagram of model extraction consistent or accuracy rate is higher with the profile of calibration When, model training is completed.
The second evaluation model is convolutional neural networks model (CNN) in present embodiment, but the second evaluation model can also Enough it is: the distorted pattern of deep neural network model (DNN), Recognition with Recurrent Neural Network model (RNN) or above-mentioned three kinds of network models Type.
S1432, the extraction image of the page screenshot of second evaluation model output is shown.
The image pixel for influencing image aesthetics is extracted in present embodiment, it is obtaining the result is that page screenshot Extract image.Wherein, extract in image evident from image, the influence image aesthetics that as the second evaluation model extracts Image pixel.In present embodiment, the image that the convolutional layer that image is the second evaluation model exports is extracted.
In some embodiments, terminal is able to carry out network analog and obtains target data, also can normally access clothes Business device end obtains information.Referring to Fig. 7, Fig. 7 is the flow diagram that the present embodiment switching obtains form.
As shown in fig. 7, step S1200 includes:
S1211, it calls in preset map listing;
Map listing is to record target network address and the tables of data that map paths relationship is locally stored, map listing note in terminal Family is employed to set the target network address of all target datas for capableing of the acquisition of dredging collateral analog network acquisition modes and path is locally stored Mapping relations.
After obtaining access task, the map listing of storage is called first.
S1212, the store path that there are mapping relations with the target network address is searched in the map listing, if described There is the store path in map listing, then confirm and call the target data;Otherwise, then it is carried out according to the target network address Addressing, to access the server end of the target network address characterization.
Network interface card calls the map listing of pre-selection storage first, is mapping after the access request task for getting CPU distribution The store path that there are mapping relations with the target network address is searched in list, which is local store path, and should The storage location that local path is directed toward is stored with target data.Terminal IP is repaired at this point, executing step S1011-S1023 Change, in present embodiment, the IP address of terminal is in the state of dynamic modification.
When not finding the store path for having mapping relations with the target network address in map listing, network card equipment then leads to The gateway for crossing external connection is addressed to access corresponding server end.
In present embodiment, the presence or absence of target network address and store path are detected by map listing, and then realize IP address Switching at runtime, terminal can be made freely to convert between normal access and network analog obtaining mode, improved work efficiency.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of network transmission simulator.
It is the present embodiment network transmission simulator basic structure schematic diagram referring specifically to Fig. 8, Fig. 8.
As shown in figure 8, a kind of network transmission simulator, comprising: obtain module 2100, processing module 2200 and execute mould Block 2300.Wherein, mould is obtained, 2100 for obtaining the access request of terminal transmission, wherein access request includes that target data is deposited The target network address of storage;Processing module 2200 has depositing for mapping relations with target network address for searching in preset map listing Store up path, wherein store path is that path is locally stored, and the storage location that store path is directed toward stores target data;Execute mould Block 2300 is used for according to store path invocation target data, and is carried out parsing and shown.
In some selective embodiments, network transmission simulator further include: the first acquisition submodule, the first processing Module and the first implementation sub-module.Wherein, the first acquisition submodule is for obtaining target source code;First processing submodule is used for Being converted target source code to according to preset transformation rule can be by the program in machine code of browser execution;First implementation sub-module Target data is generated for be packaged to program in machine code.
In some selective embodiments, network transmission simulator further include: the second acquisition submodule, second processing Module and the second implementation sub-module.Wherein, the second acquisition submodule is used to obtain the target for having mapping relations with target data Network address;Second processing submodule is used to the IP address of target terminal being revised as target network address;Second implementation sub-module is for obtaining The store path in terminal local of target data is taken, and store path and IP address are associated, so that terminal is according to mesh When marking website address request access, in local invocation target data.
In some selective embodiments, target data is front end page, network transmission simulator further include: third obtains Take submodule, third processing submodule and third implementation sub-module.Wherein, third acquisition submodule is for obtaining front end page Page screenshot;Third processing submodule is for page screenshot to be input in preset first evaluation model, wherein the first evaluation Model is that training is used for the neural network model evaluated image aesthetics to convergence state in advance;Third implementation sub-module For obtaining the classification results of the aesthetics of the page screenshot of the first evaluation model output.
In some selective embodiments, network transmission simulator further include: first, which compares submodule and the 4th, executes Submodule.Wherein, the first comparison submodule is for classification results to be compared with preset first threshold;4th executes submodule Block is used to send preset information warning to terminal, wherein information warning is for prompting when classification results are less than first threshold User front end page needs are modified.
In some selective embodiments, network transmission simulator further include: fourth process submodule and the 5th executes Submodule.Wherein, fourth process submodule is for page screenshot to be input in preset second evaluation model, wherein second Evaluation model is that training is used for the neural network extracted to the image pixel for influencing image aesthetics to convergence state in advance Model;5th implementation sub-module is for the extraction image for the page screenshot that the second evaluation model exports to be shown.
In some selective embodiments, network transmission simulator further include: first calls submodule and the 5th processing Submodule.Wherein, the first calling submodule is for calling in preset map listing;5th processing submodule is used to arrange in mapping The store path that there are mapping relations with target network address is searched in table, if having store path in map listing, confirms calling Target data;Otherwise, then it is addressed according to target network address, the server end characterized with access target network address.
In order to solve the above technical problems, the embodiment of the present invention also provides computer equipment.It is this referring specifically to Fig. 9, Fig. 9 Embodiment computer equipment basic structure block diagram.
As shown in figure 9, the schematic diagram of internal structure of computer equipment.The computer equipment includes being connected by system bus Processor, non-volatile memory medium, memory and network interface.Wherein, the non-volatile memories of the computer equipment are situated between Matter is stored with operating system, database and computer-readable instruction, can be stored with control information sequence in database, the computer When readable instruction is executed by processor, processor may make to realize a kind of network transmission analogy method.The place of the computer equipment Device is managed for providing calculating and control ability, supports the operation of entire computer equipment.It can in the memory of the computer equipment It is stored with computer-readable instruction, when which is executed by processor, processor may make to execute a kind of network Transmit analogy method.The network interface of the computer equipment is used for and terminal connection communication.It will be understood by those skilled in the art that Structure shown in Fig. 9, only the block diagram of part-structure relevant to application scheme, is not constituted to application scheme institute The restriction for the computer equipment being applied thereon, specific computer equipment may include than more or fewer portions as shown in the figure Part perhaps combines certain components or with different component layouts.
Processor obtains module 2100, processing module 2200 and execution module for executing in present embodiment in Fig. 8 2300 concrete function, program code and Various types of data needed for memory is stored with the above-mentioned module of execution.Network interface is used for To the data transmission between user terminal or server.Memory in present embodiment is stored with facial image critical point detection Program code needed for executing all submodules in device and data, server are capable of the program code and data of invoking server Execute the function of all submodules.
Computer equipment in locally mapping by according to the target network address in access request, arranging when sending access request It is searched in table and path is locally stored with corresponding relationship with map listing, then, called directly this and be locally stored in path Target data, complete simulation and send access request, to the process for calling corresponding target data.Due to for terminal It is still all consistent from the result that network server obtains from local data base, request this document is mainly simulated practical The process of target data is obtained using user terminal, therefore, virtual local data base can satisfy terminal and access from sending Request, to the process for obtaining the corresponding content of the request, but and be not take up Internet resources, data can be reduced and transmitted in webpage The data loss problem being likely to occur in the process, and the occupancy to Internet resources can be reduced, it is effectively controlled cost.
The present invention also provides a kind of storage medium for being stored with computer-readable instruction, computer-readable instruction by one or When multiple processors execute, so that one or more processors execute the step of any of the above-described embodiment network transmission analogy method Suddenly.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note Recall body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.

Claims (10)

1. a kind of network transmission analogy method characterized by comprising
Obtain the access request that terminal is sent, wherein the access request includes the target network address of target data storage;
The store path that there are mapping relations with the target network address is searched in preset map listing, wherein the storage Path is that path is locally stored, and the storage location that the store path is directed toward stores the target data;
The target data is called according to the store path, and carries out parsing and shows.
2. network transmission analogy method according to claim 1, which is characterized in that the access for obtaining terminal transmission is asked Before asking, further includes:
Obtain target source code;
Being converted the target source code to according to preset transformation rule can be by the program in machine code of browser execution;
The program in machine code be packaged and generates the target data.
3. network transmission analogy method according to claim 2, which is characterized in that described to beat the program in machine code Packet generates after the target data, further includes:
Obtain the target network address that there are mapping relations with the target data;
The IP address of the target terminal is revised as the target network address;
Obtain the store path in the terminal local of the target data, and by the store path and the IP address into Row association when so that the terminal being requested access to according to the target network address, is locally calling the target data.
4. network transmission analogy method according to claim 1, which is characterized in that the target data is front end page, It is described that the target data is called according to the store path, and carry out after parsing shows, further includes:
Obtain the page screenshot of the front end page;
The page screenshot is input in preset first evaluation model, wherein first evaluation model is training in advance The neural network model evaluated image aesthetics is used for convergence state;
Obtain the classification results of the aesthetics of the page screenshot of the first evaluation model output.
5. network transmission analogy method according to claim 4, which is characterized in that described to obtain first evaluation model After the classification results of the aesthetics of the page screenshot of output, further includes:
The classification results are compared with preset first threshold;
When the classification results are less than the first threshold, Xiang Suoshu terminal sends preset information warning, wherein the police Show information for prompting user front end page needs to modify.
6. network transmission analogy method according to claim 5, which is characterized in that described when the classification results are less than institute When stating first threshold, Xiang Suoshu terminal is sent after preset information warning, further includes:
The page screenshot is input in preset second evaluation model, wherein second evaluation model is training in advance The neural network model extracted to the image pixel for influencing image aesthetics is used for convergence state;
The extraction image of the page screenshot of second evaluation model output is shown.
7. network transmission analogy method according to claim 1, which is characterized in that described to be looked into preset map listing Look for the target network address have mapping relations store path include:
It calls in preset map listing;
The store path that there are mapping relations with the target network address is searched in the map listing, if in the map listing With the store path, then confirms and call the target data;Otherwise, then it is addressed according to the target network address, to visit Ask the server end of the target network address characterization.
8. a kind of network transmission simulator characterized by comprising
Module is obtained, for obtaining the access request of terminal transmission, wherein the access request includes the mesh of target data storage Mark network address;
Processing module, for searching the store path that there are mapping relations with the target network address in preset map listing, Wherein, the store path is that path is locally stored, and the storage location that the store path is directed toward stores the target data;
Execution module for calling the target data according to the store path, and carries out parsing and shows.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right It is required that the step of network transmission analogy method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the network transmission mould as described in any one of claims 1 to 7 claim The step of quasi- method.
CN201811526535.7A 2018-12-13 2018-12-13 Network transmission simulation method and device, computer equipment and storage medium Active CN109814868B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811526535.7A CN109814868B (en) 2018-12-13 2018-12-13 Network transmission simulation method and device, computer equipment and storage medium
PCT/CN2019/122937 WO2020119544A1 (en) 2018-12-13 2019-12-04 Network transmission simulation method and apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811526535.7A CN109814868B (en) 2018-12-13 2018-12-13 Network transmission simulation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109814868A true CN109814868A (en) 2019-05-28
CN109814868B CN109814868B (en) 2022-07-08

Family

ID=66602925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811526535.7A Active CN109814868B (en) 2018-12-13 2018-12-13 Network transmission simulation method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109814868B (en)
WO (1) WO2020119544A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119544A1 (en) * 2018-12-13 2020-06-18 深圳壹账通智能科技有限公司 Network transmission simulation method and apparatus, computer device and storage medium
CN112733892A (en) * 2020-12-28 2021-04-30 北京聚云科技有限公司 Data interaction method and device for model training
CN112836148A (en) * 2021-02-26 2021-05-25 腾讯科技(深圳)有限公司 Report display method and device, storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115202748A (en) * 2022-06-10 2022-10-18 杨正 Data reading method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133685A (en) * 2014-08-05 2014-11-05 广州唯品会网络技术有限公司 Method and system for front-end development of website
CN104202309A (en) * 2014-08-18 2014-12-10 深圳市江波龙电子有限公司 Data transmission control method and apparatus
US20170046254A1 (en) * 2015-08-13 2017-02-16 Spirent Communications, Inc. Method to configure monitoring thresholds using output of load or resource loadings
CN108563426A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 A kind of iOS requests simulation strategy
CN108961245A (en) * 2018-07-06 2018-12-07 西安电子科技大学 Picture quality classification method based on binary channels depth parallel-convolution network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034661A (en) * 2011-10-10 2013-04-10 富泰华工业(深圳)有限公司 Electronic device and method for rapidly opening webpage by electronic device
CN105025068B (en) * 2014-04-30 2019-04-12 腾讯科技(深圳)有限公司 Network data method for down loading and device
CN109814868B (en) * 2018-12-13 2022-07-08 深圳壹账通智能科技有限公司 Network transmission simulation method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133685A (en) * 2014-08-05 2014-11-05 广州唯品会网络技术有限公司 Method and system for front-end development of website
CN104202309A (en) * 2014-08-18 2014-12-10 深圳市江波龙电子有限公司 Data transmission control method and apparatus
US20170046254A1 (en) * 2015-08-13 2017-02-16 Spirent Communications, Inc. Method to configure monitoring thresholds using output of load or resource loadings
CN108563426A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 A kind of iOS requests simulation strategy
CN108961245A (en) * 2018-07-06 2018-12-07 西安电子科技大学 Picture quality classification method based on binary channels depth parallel-convolution network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一木_QINTB: "为什么有时我们需要配置hosts来本地测试?", 《HTTPS://WWW.JIANSHU.COM/P/F2E219FB1CED》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119544A1 (en) * 2018-12-13 2020-06-18 深圳壹账通智能科技有限公司 Network transmission simulation method and apparatus, computer device and storage medium
CN112733892A (en) * 2020-12-28 2021-04-30 北京聚云科技有限公司 Data interaction method and device for model training
CN112836148A (en) * 2021-02-26 2021-05-25 腾讯科技(深圳)有限公司 Report display method and device, storage medium and electronic equipment
CN112836148B (en) * 2021-02-26 2023-12-12 腾讯科技(深圳)有限公司 Report display method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109814868B (en) 2022-07-08
WO2020119544A1 (en) 2020-06-18

Similar Documents

Publication Publication Date Title
KR102436987B1 (en) Method and terminal device for extracting web page content
CN109814868A (en) Network transmission analogy method, device, computer equipment and storage medium
US10656907B2 (en) Translation of natural language into user interface actions
CN108829885A (en) Page generation method, device, server, electronic equipment and storage medium
CN104866522A (en) Method and device for providing answer information for questioner
CN110798501B (en) Data processing method and device and readable storage medium
CN110119294A (en) The generation method of menu page, apparatus and system
CN109634605B (en) Simulation data generation method and system for web front end
CN107203470B (en) Page adjustment method and device
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN102929971A (en) Multimedia information playing method and system
CN107818046A (en) The A/B method of testings and device of the application program page
CN109597929A (en) Methods of exhibiting, device, terminal and the readable medium of search result
CN108959087A (en) test method and device
CN107315833A (en) Method and apparatus of the retrieval with downloading based on application program
CN109684565A (en) The generation of Webpage correlation video and methods of exhibiting, device, system and electronic equipment
CN108241689A (en) Page resource acquisition methods, device and client device
US10210001B2 (en) Automatic execution of objects in a user interface
WO2021104387A1 (en) Method for automatically identifying valid data acquisition module and system
CN114647412A (en) Content display method and terminal equipment
CN104573120A (en) Recommendation information obtaining method and device for terminal
CN108062401A (en) Using recommendation method, apparatus and storage medium
CN115061785A (en) Information issuing method and device, storage medium and server
CN111885139B (en) Content sharing method, device and system, mobile terminal and server
CN110088750A (en) The method and system of context function is provided in static Web page

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
GR01 Patent grant
GR01 Patent grant