CN109670328A - A kind of data processing method and device - Google Patents
A kind of data processing method and device Download PDFInfo
- Publication number
- CN109670328A CN109670328A CN201811592926.9A CN201811592926A CN109670328A CN 109670328 A CN109670328 A CN 109670328A CN 201811592926 A CN201811592926 A CN 201811592926A CN 109670328 A CN109670328 A CN 109670328A
- Authority
- CN
- China
- Prior art keywords
- data
- file
- protocol
- xml file
- interaction
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Bioethics (AREA)
- Debugging And Monitoring (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the present application discloses a kind of data processing method and device, verifies for realizing to the interaction data between front end and the end native, to guarantee the correctness and validity of interaction data.The embodiment of the present application method includes: to configure expandable mark language XML file according to rendezvous protocol, and the rendezvous protocol is by front end and the pre-set interaction protocol in the end native;Js, which is generated, according to the XML file verifies file;Interaction data according to Js verification file verification between front end and the end native.
Description
Technical field
This application involves computer field more particularly to a kind of data processing method and devices.
Background technique
Current most of application programs (Application, App) all use Hybrid development technique, i.e., are used by front end
5th version (abbreviation H5) of hypertext markup language (Hyper Text Markup Language, HTML) and
The native applications mixed developing of JavaScript and Android (android) system or ios system.At the present end android
In Hybrid frame, with the iteration of App version, Hybrid interaction protocol is more and more.
The front end App with the end native (i.e. Hybrid is interacted) interaction data is appointed according to front end and the end native at present
Json protocol format it is through by transparent transmission mode.So-called transparent transmission is exactly that front end data is transmitted to the end native and will not do any place
Reason is used as automation verification standard as correctness, validity, compliance all none reasonable specifications of data.
It not can guarantee the correctness and validity of front end Yu the end native interaction data in this way, needed so as to cause the end native
Data are done with various verifying judgements, code logic is very many and diverse, in some instances it may even be possible to the end native be caused to generate abnormal collapse.
Summary of the invention
The embodiment of the present application provides a kind of data processing method and device, for realizing to front end and the end native it
Between interaction data verified, to guarantee the correctness and validity of interaction data.
In a first aspect, the embodiment of the present application provides a kind of data processing method, specifically include: the data processing equipment root
Extensible markup language (Extensible Markup is generated according to the pre-set rendezvous protocol in front end and the end native
Language,XML);Then the data processing equipment generates Js according to the XML file and verifies file;Finally verified according to the Js
Interaction data between the file verification front end and the end native.
In technical solution provided by the embodiments of the present application, which configures XML file according to rendezvous protocol, and
Js verification file is generated according to the XML file, the interaction data between front end and the end native is verified to realize,
To ensure that the end native receives the correctness and validity of interaction data.
Optionally, which is Json data protocol, and therefore, which should according to rendezvous protocol configuration
The concrete mode of XML file can be such that
The data processing equipment configures the configuration protocol layer of the XML file according to the level of the Json data protocol
Grade, the level of the Json data protocol and the configuration protocol level of the XML file correspond;The data processing equipment root
The key of the configuration protocol level of the XML file, the Json number are configured according to the key key of the Json data protocol level
It is corresponded according to the key of the configuration protocol level of the key and XML file of protocol levels.It can guarantee the XML file in this way
It is corresponded between Json data protocol, to guarantee that the front end and the end native have been all made of same agreement.
Optionally, which can be such that this according to the detailed process that the XML file generates Js verification file
Data processing equipment parses the XML file, and the data that parsing obtains are saved as tree construction to obtain tree construction
Data, wherein the tree construction data include the data hierarchical information of the XML file, data key, data type type, number
According to description desc and data indispensable attributes required;Then the data processing equipment generates the school Js according to the tree construction data
Test the required protocol format of file;Finally the data processing equipment generates the Js according to the tree construction data and the data format
Verify file.
Optionally, the data processing equipment is in the interaction data by Js verification file verification front end and the end native
There are after exception, which can show prompt information to user, and it is different to be used to indicate the appearance of user's interaction data
Often;The data processing equipment can stop sending the interaction data simultaneously.So that the end native not will receive abnormal data.
Optionally, which verifies the interaction between the file verification front end and the end native according to the Js
When data, the interaction data can be traversed using keyPath mode in Js verification file when running Js verification file
In parameter to be verified;If then there are the parameters to be verified in the interaction data, it is determined that the interaction data is normal;If should
The data to be verified are not present in interaction data, it is determined that the interaction data is abnormal.
Second aspect, the embodiment of the present application provide a kind of data processing equipment, which has realization above-mentioned
Corresponding function in method described in first aspect.The function can also execute phase by hardware by hardware realization
The software realization answered.The hardware or software include one or more modules corresponding with above-mentioned function.
In a kind of possible implementation, which includes: configuration module, for can according to rendezvous protocol configuration
Extended-boundary-condition method file, the rendezvous protocol is by front end and the pre-set interaction protocol in the end native;Generation module,
File is verified for generating Js according to the XML file;Correction verification module, for the front end according to Js verification file verification
With the interaction data between the end native.
Optionally, the rendezvous protocol is Json data protocol, and the configuration module is specifically used for according to the Json number
The configuration protocol level of the XML file, the level and the XML file of the Json data protocol are configured according to the level of agreement
Configuration protocol level correspond;The configuration of the XML file is configured according to the key key of the Json data protocol level
The key mono- of the key of protocol levels, the configuration protocol level of the key and XML file of the Json data protocol level are a pair of
It answers.
Optionally, the generation module, specifically for parsing the XML file to tree construction and spanning tree structure number
According to the tree construction data include the data hierarchical information of the XML file, data key, data type type, data description
Desc and data indispensable attributes required;Traverse the data format that the tree construction data generate the Js verification file;Root
The Js, which is generated, according to the data format and the tree construction data verifies file.
Optionally, the correction verification module, it is described specifically for being traversed in Js verification file using keyPath mode
Parameter to be verified in interaction data;The parameter to be verified if it exists, it is determined that the interaction data is normal;Institute if it does not exist
State parameter to be verified, it is determined that the interaction data is abnormal.
In alternatively possible implementation, which includes: processor and memory, wherein the storage
There is computer-readable program in device, the processor is by running the program in the memory, to be used for above-mentioned first party
Method described in face.
In one possible implementation, when the data processing equipment be chip when, the chip include: processing module and
Transceiver module, the processing module for example can be processor, this processor is used to configure extensible markup according to rendezvous protocol
Language XML document, the rendezvous protocol is by front end and the pre-set interaction protocol in the end native;It is raw according to the XML file
File is verified at Js;Interaction data according to Js verification file verification between front end and the end native.It is described
Transceiver module for example can be input/output interface, pin or circuit on the chip etc., and the Js that processor is generated verifies text
Part is sent in other chips coupled with this chip or module.The computer that storage unit storage can be performed in the processing module is held
Row instruction, to support data processing equipment to execute the method that above-mentioned first aspect provides.Optionally, the storage unit can be
Storage unit in the chip, such as register, caching, the storage unit can also be depositing positioned at the chip exterior
Storage unit such as read-only memory (read-only memory, abbreviation ROM) or can store the other types of static information and instruction
Static storage device, random access memory (random access memory, abbreviation RAM) etc..
Wherein, the processor that any of the above-described place mentions can be a general central processor (Central
Processing Unit, abbreviation CPU), microprocessor, application-specific integrated circuit (application-specific
Integrated circuit, abbreviation ASIC), or it is one or more for controlling above-mentioned various aspects channel resource coordinated allocation
The integrated circuit that the program of method executes.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, and the computer storage medium is deposited
Computer instruction is contained, the computer instruction is for executing side described in any possible embodiment in above-mentioned first aspect
Method.
Fourth aspect, the embodiment of the present application provide a kind of computer program product comprising instruction, when its on computers
When operation, so that computer executes method described in any possible embodiment in above-mentioned first aspect.
5th aspect, this application provides a kind of chip systems, which includes processor, for supporting at data
It manages device and realizes function involved in above-mentioned aspect.In a kind of possible design, the chip system further includes memory,
The memory, it is any one in above-mentioned various aspects to realize for saving the necessary program instruction of data processing equipment and data
The function of aspect.The chip system can be made of chip, also may include chip and other discrete devices.
Detailed description of the invention
Fig. 1 is front end H5 and the end native available data transmission structure schematic diagram;
Fig. 2 is one embodiment schematic diagram of data processing method in the embodiment of the present application;
Fig. 3 is the product process schematic diagram that Js verifies file in the embodiment of the present application;
Fig. 4 is interaction data checking process schematic diagram in the embodiment of the present application;
Fig. 5 is one embodiment schematic diagram of data processing equipment in the embodiment of the present application;
Fig. 6 is another embodiment schematic diagram of data processing equipment in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of data processing method and device, for realizing to front end and the end native it
Between interaction data verified, to guarantee the correctness and validity of interaction data.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
Current most of application programs (Application, App) all use Hybrid development technique, i.e., are used by front end
5th version (abbreviation H5) of hypertext markup language (Hyper Text Markup Language, HTML) and
The native applications mixed developing of JavaScript and Android (android) system or ios system.At the present end android
In Hybrid frame, with the iteration of App version, Hybrid interaction protocol is more and more.As shown in Figure 1, at present the front end App with
The end native (i.e. Hybrid interaction) interaction data is that the Json protocol format appointed according to front end and the end native passes through thoroughly
Biography mode is through.So-called transparent transmission is exactly that front end data is transmitted to the end native and will not do any processing, as data correctness,
Validity, compliance all none reasonable specifications are as automation verification standard.Front end and native are not can guarantee in this way
The correctness and validity of interaction data are held, needs to do data various verifying judgements, code logic so as to cause the end native
It is very many and diverse, in some instances it may even be possible to the end native be caused to generate abnormal collapse.
In order to solve this problem, the embodiment of the present application provides the following technical solutions: the data processing equipment is according to front end
With the pre-set rendezvous protocol in the end native generate extensible markup language (Extensible Markup Language,
XML);Then the data processing equipment generates Js according to the XML file and verifies file;Finally verifying file verification according to the Js should
Interaction data between front end and the end native.
Referring specifically to shown in Fig. 2, one embodiment of data processing method in present specification, comprising:
201, data processing equipment configures XML file according to rendezvous protocol, which is that front end and the end native are pre-
The data protocol being first arranged.
The data processing equipment obtains the front end and the pre-set rendezvous protocol in the end native, is then assisted according to the agreement
View configures corresponding XML file.
Optionally, which can be Json data protocol.The data processing equipment is configured according to the rendezvous protocol
Corresponding XML file specifically can be such that the data processing equipment configures the XML according to the level of the Json data protocol
The configuration protocol level of file, the level of the Json data protocol and the configuration protocol level of the XML file correspond;
The data processing equipment configures the configuration protocol level of the XML file according to the key key of the Json data protocol level
Key, the key of the configuration protocol level of the key and XML file of the Json data protocol level corresponds.Assuming that
The Json data protocol appointed is as follows:
Then the XML file can configure as follows:
Seen from the above description, the protocol levels of the XML file and the Json data protocol layer are one-to-one, and
The key of each level of key and XML of each level of Json is corresponding.
202, the data processing equipment generates Js according to the XML file and verifies file.
The data processing equipment parses the XML file, and will the obtained data of parsing save as tree construction to
Obtain tree construction data, wherein the tree construction data include the data hierarchical information of the XML file, data key, data
Type type, data describe desc and data indispensable attributes required;Then the data processing equipment is according to the tree construction number
According to the required protocol format for generating Js verification file;Finally the data processing equipment is according to the tree construction data and the data
Format generates Js verification file.Wherein, which is generating Js verification file according to the tree construction data
When protocol format, it can be can be such that by ergodic algorithm, the key code of the ergodic algorithm
203, the data processing equipment verifies the interaction number between the file verification front end and the end native according to the Js
According to.
When the data processing equipment verifies the interaction data between the file verification front end and the end native according to the Js,
Can run the Js verification file when, the Js verification file in using keyPath mode traverse in the interaction data to
Checking parameter;If then there are the parameters to be verified in the interaction data, it is determined that the interaction data is normal;If the interaction number
The data to be verified are not present in, it is determined that the interaction data is abnormal.For example, if user wants to indicate that key is this number of text
According to then the keyPath of key (text) is payTypeList/#0/text;.It is to hit in this way that Js, which verifies file,
It wants the data of verification.Its specific code can be such that
Its specific meaning be selected go through keyPath be [" payTypeList ", " #0 ", " text "];Then it is looked for from obj
PayTypeList if finding payTypeList, then looks for #0, and #0 at this time indicates first of payTypeList array
Object element, i.e. { " value ": " 0 ", " text ": " give as security one pair three ".If not finding #0, prompt user data different
Often.If finding #0, continue to look for text.
The data processing method in the embodiment of the present application is illustrated with a specific process below:
Data processing method is broadly divided into two parts in the embodiment of the present application: Js verify file generating process and according to
The process of Js verification file verification interaction data.
Be illustrated in figure 3 the generating process of Js verification file: the data processing equipment is according to Json protocol configuration XML first
File;Then data processing equipment loads the XML file at the end native;Subsequently the data processing equipment parses XML text
Data in part;Subsequently the data processing equipment generates the protocol format of Js verification file;Ultimately produce Js verification file.
As shown in Figure 4 for according to the process of Js verification file verification interaction data: data processing equipment load first should
Js verifies file;Then the data processing equipment reads the Json protocol data, recalls Js verification file verification data;If number
According to legal, then data passed into the end native, if it is illegal, then prompt user.
Described above is data processing methods in the embodiment of the present application, fill below to the data processing in the embodiment of the present application
It sets and is described, referring specifically to shown in Fig. 5, one embodiment of data processing equipment in the embodiment of the present application, comprising:
Configuration module 501, for according to rendezvous protocol configure expandable mark language XML file, the rendezvous protocol by
Front end and the pre-set interaction protocol in the end native;
Generation module 502 verifies file for generating Js according to the XML file;
Correction verification module 503, for the friendship according to Js verification file verification between front end and the end native
Mutual data.
Optionally, the rendezvous protocol is Json data protocol, and the configuration module 501 is specifically used for according to
The level of Json data protocol configures the configuration protocol level of the XML file, the level of the Json data protocol with it is described
The configuration protocol level of XML file corresponds;The XML text is configured according to the key key of the Json data protocol level
The key of the configuration protocol level of part, the configuration protocol level of the key and XML file of the Json data protocol level
Key is corresponded.
Optionally, the generation module 502, specifically for parsing the XML file to tree construction and generating tree construction
Data, the tree construction data include that data hierarchical information, data key, data type type, the data of the XML file are retouched
State desc and data indispensable attributes required;Traverse the data format that the tree construction data generate the Js verification file;
The Js, which is generated, according to the data format and the tree construction data verifies file.
Optionally, the data processing equipment further includes cue module 504, if there are abnormal feelings for the interaction data
Condition then shows prompt information, and stops sending the interaction data.
Optionally, the correction verification module 503, specifically for being traversed in Js verification file using keyPath mode
Parameter to be verified in the interaction data;
The parameter to be verified if it exists, it is determined that the interaction data is normal;
The parameter to be verified if it does not exist, it is determined that the interaction data is abnormal.
Referring specifically to shown in Fig. 6, another possible structural schematic diagram of data processing equipment in the embodiment of the present application,
The device 600 may include: processor 602, computer readable storage medium/memory 603, transceiver 604, input equipment
605 and output equipment 606 and bus 601.Wherein, processor, transceiver, computer readable storage medium etc. pass through bus
Connection.The embodiment of the present application does not limit the specific connection medium between above-mentioned component.
In one example, which configures expandable mark language XML file, the agreement according to rendezvous protocol
Agreement is by front end and the pre-set interaction protocol in the end native;Js, which is generated, according to the XML file verifies file;According to described
Js verifies the interaction data described in file verification between front end and the end native.
In another example, processor 602 can run operating system, control the function between each equipment and device.
Above-mentioned Fig. 2 corresponding step in any embodiment into Fig. 4 may be implemented in the processor 602, does not do herein specifically
It repeats.
It is designed it is understood that Fig. 6 illustrate only simplifying for data processing equipment, in practical applications, at data
Reason device may include any number of transceiver, processor, memory etc., and all may be implemented at the data of the application
Manage device all within the scope of protection of this application.
Processor 602 involved in above-mentioned apparatus 600 can be general processor, such as general central processor (CPU),
Network processing unit (network processor, NP), microprocessor etc., are also possible to application-specific integrated circuit
(application-specific integrated circBIt, ASIC), or it is one or more for controlling application scheme
The integrated circuit that program executes.It can also be digital signal processor (digital signal processor, DSP), scene
Programmable gate array (field-programmable gate array, FPGA) or other programmable logic device, discrete gate
Or transistor logic, discrete hardware components.Controller/processor is also possible to realize the combination of computing function, such as
It is combined comprising one or more microprocessors, DSP and the combination of microprocessor etc..Processor is normally based on memory memory
The program instruction of storage executes logic and arithmetical operation.
The above-mentioned bus 601 being related to can be Peripheral Component Interconnect standard (peripheral component
Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industry standard
Architecture, abbreviation EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, Fig. 6, it is not intended that an only bus or a type of bus.
Above-mentioned computer readable storage medium/the memory 603 being related to can also preserve operating system and other application
Program.Specifically, program may include program code, and program code includes computer operation instruction.More specifically, above-mentioned storage
The other kinds of static state that device can be read-only memory (read-only memory, ROM), can store static information and instruction
Store equipment, random access memory (random access memory, RAM), the other types that information and instruction can be stored
Dynamic memory, magnetic disk storage etc..Memory 603 can be the combination of above-mentioned storage class.And above-mentioned calculating
Machine readable storage medium storing program for executing/memory can in the processor, can also be in the outside of processor, or is including processor or processing
The multiple of circuit are physically distributed.Above-mentioned computer readable storage medium/memory can be embodied in computer program production
In product.For example, computer program product may include the computer-readable medium in encapsulating material.
It can replace, the embodiment of the present application also provides a kind of generic processing system, such as is commonly referred to as chip, the general place
Reason system includes: to provide the one or more microprocessors of processor function;And provide at least part of of storage medium
External memory, it is all these all to be linked together by external bus architecture and other support circuits.When memory is deposited
When the instruction of storage is executed by processor, so that processor executes data of the data processing equipment in the embodiment described in Fig. 2 to Fig. 4
Step and/or other processes for technology described herein some or all of in processing method.
The step of method in conjunction with described in present disclosure or algorithm can realize in a manner of hardware, can also
It is realized in a manner of being to execute software instruction by processor.Software instruction can be made of corresponding software module, software mould
Block can be stored on RAM memory, flash memory, ROM memory, eprom memory, eeprom memory, register, hard disk,
In the storage medium of mobile hard disk, CD-ROM or any other form well known in the art.A kind of illustrative storage medium
It is coupled to processor, to enable a processor to from the read information, and information can be written to the storage medium.When
So, storage medium is also possible to the component part of processor.Pocessor and storage media can be located in ASIC.In addition, should
ASIC can be located in user equipment.Certainly, pocessor and storage media can also be used as discrete assembly and be present in user equipment
In.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (13)
1. a kind of data processing method characterized by comprising
Expandable mark language XML file is configured according to rendezvous protocol, the rendezvous protocol is set in advance by front end and the end native
The interaction protocol set;
Js, which is generated, according to the XML file verifies file;
Interaction data according to Js verification file verification between front end and the end native.
2. the method according to claim 1, wherein the rendezvous protocol is Json data protocol, the basis
Rendezvous protocol configures expandable mark language XML file
The configuration protocol level of the XML file, the Json data protocol are configured according to the level of the Json data protocol
Level and the XML file configuration protocol level correspond;
The key of the configuration protocol level of the XML file is configured according to the key key of the Json data protocol level, it is described
The key of the configuration protocol level of the key and XML file of Json data protocol level is corresponded.
3. the method according to claim 1, wherein described generate Js verification file packet according to the XML file
It includes:
The XML file is parsed to tree construction and spanning tree structured data, the tree construction data include the XML file
Data hierarchical information, data key, data type type, data describe desc and data indispensable attributes required;
Traverse the data format that the tree construction data generate the Js verification file;
The Js, which is generated, according to the data format and the tree construction data verifies file.
4. according to the method in any one of claims 1 to 3, which is characterized in that the method also includes:
If abnormal conditions occurs in the interaction data, prompt information is shown, and stop sending the interaction data.
5. according to the method in any one of claims 1 to 3, which is characterized in that described to verify file school according to the Js
The interaction data tested between the front end and the end native includes:
The parameter to be verified in the interaction data is traversed using keyPath mode in Js verification file;
The parameter to be verified if it exists, it is determined that the interaction data is normal;
The parameter to be verified if it does not exist, it is determined that the interaction data is abnormal.
6. a kind of data processing equipment characterized by comprising
Configuration module, for according to rendezvous protocol configure expandable mark language XML file, the rendezvous protocol by front end with
The pre-set interaction protocol in the end native;
Generation module verifies file for generating Js according to the XML file;
Correction verification module, for the interaction data according to Js verification file verification between front end and the end native.
7. device according to claim 6, which is characterized in that the rendezvous protocol is Json data protocol, the configuration
Module, specifically for configuring the configuration protocol level of the XML file, the Json according to the level of the Json data protocol
The configuration protocol level of the level of data protocol and the XML file corresponds;
The key of the configuration protocol level of the XML file is configured according to the key key of the Json data protocol level, it is described
The key of the configuration protocol level of the key and XML file of Json data protocol level is corresponded.
8. device according to claim 6, which is characterized in that the generation module is specifically used for the XML file solution
To tree construction and spanning tree structured data, the tree construction data include data hierarchical information, the data of the XML file for analysis
Key, data type type, data describe desc and data indispensable attributes required;
Traverse the data format that the tree construction data generate the Js verification file;
The Js, which is generated, according to the data format and the tree construction data verifies file.
9. the device according to any one of claim 6 to 8, which is characterized in that the data processing equipment further includes mentioning
Show module, if there are abnormal conditions for the interaction data, shows prompt information, and stop sending the interaction data.
10. the device according to any one of claim 6 to 8, which is characterized in that the correction verification module is specifically used for
The parameter to be verified in the interaction data is traversed using keyPath mode in the Js verification file;
The parameter to be verified if it exists, it is determined that the interaction data is normal;
The parameter to be verified if it does not exist, it is determined that the interaction data is abnormal.
11. a kind of data processing equipment, which is characterized in that including processor and memory, wherein there is meter in the memory
Calculation machine readable program, the processor is by running the program in the memory, with any for completing claim 1 to 5
Method described in.
12. a kind of computer readable storage medium, including instruction, when described instruction is run on computers, the computer
Execute the described in any item methods of the claims 1 to 5.
13. a kind of computer program product comprising instruction, described when the computer program product is run on computers
Computer executes the described in any item methods of the claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811592926.9A CN109670328B (en) | 2018-12-25 | 2018-12-25 | Data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811592926.9A CN109670328B (en) | 2018-12-25 | 2018-12-25 | Data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109670328A true CN109670328A (en) | 2019-04-23 |
CN109670328B CN109670328B (en) | 2022-04-26 |
Family
ID=66147236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811592926.9A Active CN109670328B (en) | 2018-12-25 | 2018-12-25 | Data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109670328B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737636A (en) * | 2019-09-24 | 2020-01-31 | 厦门信息集团大数据运营有限公司 | data importing method, device and equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104360937A (en) * | 2014-10-21 | 2015-02-18 | 福建富士通信息软件有限公司 | Intelligent parameter checking device |
CN105426164A (en) * | 2014-09-04 | 2016-03-23 | 北大方正集团有限公司 | Data checking method, browser and server |
CN105550016A (en) * | 2015-12-09 | 2016-05-04 | 国云科技股份有限公司 | React-native based method for quickly realizing login of mobile terminal user |
CN105700925A (en) * | 2016-01-13 | 2016-06-22 | 深圳市华讯方舟软件信息科技有限公司 | APP interface implementation method and apparatus |
CN106897220A (en) * | 2017-02-20 | 2017-06-27 | 南京国电南自电网自动化有限公司 | A kind of method of calibration of the System Object Model based on XML |
CN108462749A (en) * | 2018-03-22 | 2018-08-28 | 中国人民解放军战略支援部队信息工程大学 | A kind of Web application processing methods, apparatus and system |
US20180314722A1 (en) * | 2017-04-28 | 2018-11-01 | Microsoft Technology Licensing, Llc | Parser for Schema-Free Data Exchange Format |
-
2018
- 2018-12-25 CN CN201811592926.9A patent/CN109670328B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105426164A (en) * | 2014-09-04 | 2016-03-23 | 北大方正集团有限公司 | Data checking method, browser and server |
CN104360937A (en) * | 2014-10-21 | 2015-02-18 | 福建富士通信息软件有限公司 | Intelligent parameter checking device |
CN105550016A (en) * | 2015-12-09 | 2016-05-04 | 国云科技股份有限公司 | React-native based method for quickly realizing login of mobile terminal user |
CN105700925A (en) * | 2016-01-13 | 2016-06-22 | 深圳市华讯方舟软件信息科技有限公司 | APP interface implementation method and apparatus |
CN106897220A (en) * | 2017-02-20 | 2017-06-27 | 南京国电南自电网自动化有限公司 | A kind of method of calibration of the System Object Model based on XML |
US20180314722A1 (en) * | 2017-04-28 | 2018-11-01 | Microsoft Technology Licensing, Llc | Parser for Schema-Free Data Exchange Format |
CN108462749A (en) * | 2018-03-22 | 2018-08-28 | 中国人民解放军战略支援部队信息工程大学 | A kind of Web application processing methods, apparatus and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737636A (en) * | 2019-09-24 | 2020-01-31 | 厦门信息集团大数据运营有限公司 | data importing method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109670328B (en) | 2022-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109683953B (en) | Method and device for processing configuration file based on visual interface | |
Tao et al. | A reusable software component for integrated syntax and semantic validation for services computing | |
CN106990952B (en) | Form verification method and system based on Vue | |
US20170116350A1 (en) | Validation of schema and schema conformance verification | |
CN104866327B (en) | A kind of PHP development approaches and framework | |
CN105426164B (en) | A kind of method of calibration and browser of data | |
CN105630543A (en) | Application cold start acceleration method and apparatus | |
US11823701B2 (en) | Network operation based on domain specific language | |
CN113194004B (en) | Network topology construction method and device, and network change processing method and device | |
CN111209203B (en) | Model verification method based on source code | |
CN112528307A (en) | Service request checking method and device, electronic equipment and storage medium | |
CN105512097A (en) | File analyzing method | |
CN111400716A (en) | Security mechanism verification method based on operating system | |
CN109670328A (en) | A kind of data processing method and device | |
CN103561113B (en) | The generation method and device of Web Service interface | |
CN108228965B (en) | Simulation verification method, device and equipment for memory cell | |
US10606569B2 (en) | Declarative configuration elements | |
CN116910908A (en) | Digital aircraft construction method, device, equipment and storage medium | |
CN112099879B (en) | Configuration information management method and device, computer equipment and storage medium | |
CN109491896B (en) | WeChat applet form verification method of education system and electronic equipment | |
CN115904317A (en) | Method, device, equipment and storage medium for uniformly calling front-end interface and back-end interface | |
CN111240972B (en) | Model verification device based on source code | |
WO2024113273A1 (en) | Verification method and apparatus for communication nodes in communication model | |
KR20160080391A (en) | Apparatus and method of generating message automatically in real-time data transmission processing system | |
CN110134843A (en) | A kind of generation method and device of file destination |
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 |