CN109885412A - Data interactive method, device, computer equipment and storage medium based on H5 - Google Patents
Data interactive method, device, computer equipment and storage medium based on H5 Download PDFInfo
- Publication number
- CN109885412A CN109885412A CN201910061844.XA CN201910061844A CN109885412A CN 109885412 A CN109885412 A CN 109885412A CN 201910061844 A CN201910061844 A CN 201910061844A CN 109885412 A CN109885412 A CN 109885412A
- Authority
- CN
- China
- Prior art keywords
- app
- data
- native
- communication data
- interactive
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000002452 interceptive effect Effects 0.000 title claims abstract description 81
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000004891 communication Methods 0.000 claims abstract description 105
- 230000003993 interaction Effects 0.000 claims abstract description 26
- 230000007246 mechanism Effects 0.000 claims abstract description 19
- 230000005540 biological transmission Effects 0.000 claims abstract description 9
- 238000004422 calculation algorithm Methods 0.000 claims description 23
- 230000001960 triggered effect Effects 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 5
- 238000012545 processing Methods 0.000 abstract description 3
- 230000008901 benefit Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 239000003550 marker Substances 0.000 description 3
- 230000008569 process Effects 0.000 description 2
- BQCADISMDOOEFD-UHFFFAOYSA-N Silver Chemical compound [Ag] BQCADISMDOOEFD-UHFFFAOYSA-N 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 229910052709 silver Inorganic materials 0.000 description 1
- 239000004332 silver Substances 0.000 description 1
Landscapes
- Storage Device Security (AREA)
Abstract
The present invention relates to technical field of data processing more particularly to a kind of data interactive method based on H5, device, computer equipment and storage mediums.This method comprises: hypertext markup language application software H5 APP and primary software APP native establish communication mechanism;H5 APP obtains customer interaction information by preset interactive interface, carries out service logic calculating to the interactive information of acquisition, obtains calculated result, set communication data for calculated result and be sent to APP native;After APP native receives communication data, after communication data is encrypted, stored.The present invention had both greatly reduced exploitation maintenance work in such a way that H5 APP and APP native are combined, and saves human resources, in turn ensures the safe handling and transmission of data.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data interactive methods based on H5, device, calculating
Machine equipment and storage medium.
Background technique
APP, i.e. cell phone software refer mainly to be mounted on the software on smart phone, with being widely used for mobile phone business, silver
Capable or finance class APP also comes into being, and user can easily carry out the financial business such as fund, insurance using cell phone application.
User usually requires to carry out open an account registration, purchase or redemption using financial class APP when carrying out financial business
The functions such as fund product, insurance products enter in existing APP in order to which these functions are embedded, and current way is with primary
The mode of method native produces Software Development Kit sdk.This mode heavy workload is unfavorable for safeguarding and update.
Summary of the invention
In view of this, it is necessary to heavy workload when producing sdk for the mode of Native method native, be unfavorable for maintenance and
Update the problem of, a kind of data interactive method based on H5, device, computer equipment and storage medium are provided.
A kind of data interactive method based on H5, comprising:
Hypertext markup language application software H5APP and primary software APP native establish communication mechanism;
The H5APP obtains customer interaction information by preset interactive interface, carries out to the interactive information of acquisition
Service logic calculates, and obtains calculated result, sets communication data for the calculated result and be sent to the APP native;
After the APP native receives the communication data, after the communication data is encrypted, carry out
Storage.
The hypertext markup language application software H5APP and primary software APPnative in one of the embodiments,
Establish communication mechanism, comprising:
The H5APP is by carrying out data communication between JavaScript layers and APP native layers, wherein described
H5APP uses scripting language JavaScript, and JavaScript layers of the button is using prompting alert method, the H5APP
By the alert method to user show include communication data and the button alert box;
When the button is triggered, described APP native layers intercept the alert by browser component webview
Method obtains the communication data of the JavaScript layers of transmission;
The described APP native layers method by calling the JavaScript feeds back to communication data described
JavaScript layers.
The hypertext markup language application software H5APP and primary software APPnative in one of the embodiments,
Establish communication mechanism, comprising:
The H5APP is by carrying out data communication between JavaScript layers and APP native layers, wherein described
H5APP uses scripting language JavaScript, and JavaScript layers of the button uses label iFrame element, described
H5APP by the iFrame element to user show include communication data and the button inline frame;
When the button is triggered, described APP native layers by described in browser component webview interception
The click event of iFrame element obtains the communication data of the JavaScript layers of transmission;
The described APP native layers method by calling the JavaScript feeds back to communication data described
JavaScript layers.
The H5APP obtains customer interaction information by preset interactive interface in one of the embodiments, to acquisition
The interactive information carry out service logic calculating, obtain calculated result, comprising:
The interactive interface includes but is not limited to manage money matters details displayed page, financing list displayed page, fund purchase circle
Face or fund redeem at least one of interface, and the H5APP is preset with a service logic to each interactive interface
Calculate script;
The H5APP obtains the interactive information of user's input by the interactive interface, according to the interactive interface, calls
The corresponding service logic calculates script, carries out service logic calculating to the interactive information, obtains the calculated result.
In one of the embodiments, further include:
The H5APP, which is preset with, updates interface, and the update interface includes uploading interface or code input window, described
H5APP calculates script by the service logic that the upload interface or code input window obtain user's input, by the business
Logic calculation script is updated.
After the APP native receives the communication data in one of the embodiments, by the communication data
After being encrypted, stored, comprising:
After the APP native receives the communication data, preset Encryption Algorithm is called, to the communication data
After being encrypted, stored, the Encryption Algorithm include but is not limited to symmetric encipherment algorithm, rivest, shamir, adelman or
Message Digest 5.
After the APP native receives the communication data in one of the embodiments, by the communication data
After being encrypted, after being stored, further includes:
The APP native judges whether to return to corresponding feedback data, if desired instead according to preset data type
Data are presented, then after the feedback data of storage being decrypted, return to the H5APP;
Feedback data after the decryption is shown by the H5APP by the interactive interface.
A kind of data interaction device based on H5, comprising:
Communication module is established, hypertext markup language application software H5APP and primary software APPnative is set as and establishes
Communication mechanism;
Communication data module is sent, the H5APP is set as by preset interactive interface and obtains customer interaction information, it is right
The interactive information obtained carries out service logic calculating, obtains calculated result, sets communication data for the calculated result
It is sent to the APP native;
Encryption and memory module are set as after the APP native receives the communication data, by the communication number
After being encrypted, stored.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute
When stating computer-readable instruction and being executed by the processor, so that the processor executes the above-mentioned data interactive method based on H5
The step of.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more
When device executes, so that the step of one or more processors execute the above-mentioned data interactive method based on H5.
The above-mentioned data interactive method based on H5, device, computer equipment and storage medium, including hypertext markup language
Application software H5APP and primary software APP native establish communication mechanism;The H5APP is obtained by preset interactive interface
Customer interaction information carries out service logic calculating to the interactive information of acquisition, calculated result is obtained, by the calculated result
It is set as communication data and is sent to the APP native;It, will be described after the APP native receives the communication data
After communication data is encrypted, stored.The present invention in such a way that H5APP and APP native is combined,
The end H5APP carries out business logic development and user interface, can be encrypted and be protected in APP native with flexible Application service logic
Deposit data has the characteristics that safe and secret, the mode of this combination, has both greatly reduced exploitation maintenance work, saves manpower money
Source in turn ensures the safe handling and transmission of data.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.
Fig. 1 is the flow chart of the data interactive method based on H5 in one embodiment of the invention;
Fig. 2 is a kind of flow chart that communication mechanism is established in one embodiment;
Fig. 3 is another flow chart that communication mechanism is established in one embodiment;
Fig. 4 is the flow chart of step S4 in one embodiment;
Fig. 5 is the structure chart of the data interaction device based on H5 in one embodiment of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is the flow chart of the data interactive method based on H5 in one embodiment of the invention, as shown in Figure 1, a kind of
Data interactive method based on H5, comprising the following steps:
Step S1, establish communication: hypertext markup language application software H5APP and primary software APP native establishes logical
Letter mechanism.
Hypertext markup language H5 is that the 5th revised edition of hypertext markup language is referred to as " HTML5 ", referred to as " H5 ".It is super
Grade text mark up language is one under standard generalized markup language application and a kind of specification or standard, it passes through marker character
Number mark the various pieces in webpage to be shown.Web page files itself are a kind of text files, by text file
Marker character is added, can tell how browser shows content therein, such as: how text is handled, and how picture arranges, picture
How to show.Browser reads web page files in order, then explains and show the content of its label according to marker character.Due to
HyperText Markup Language document compiling is simple, scalability is strong, the file of data format powerful, support is different is embedding
Enter, therefore this step develops interaction page using H5APP in front end, carries out user's displaying and human-computer interaction.
Primary software APP native is generally used for based on smart phone native operating sys-tern such as iOS, Android, WP simultaneously
The third party application that operation is write using primary formula, the language generally developed are Java, C++ etc..APP native energy
Optimal user experience, top quality user interface, smooth interaction are provided;Accessible local resource can call mobile hard
Part equipment, such as camera, microphone etc., but its development cost is high, is transplanted to more troublesome in different platform.Therefore this step
Suddenly the processing and storage of data are carried out at the end APP native.
In this step, the communication data transmitted between H5APP and APP native includes user information, finance product information
Deng.Wherein, user information includes user account information, subscriber identity information, the anti-risk type of user etc., finance product packet
Include the details, lower forms data, data of holding position etc. of product.
The communication established between H5APP and APP native be it is two-way, i.e. H5APP to APP native send communication number
According to APP native also returns to feedback data to H5APP, and the communication mode of H5APP and APP native between the two includes such as
Lower two ways:
In one embodiment, as shown in Fig. 2, hypertext markup language application software H5APP and primary software APP
Native establishes communication mechanism, comprising:
Step S101, button are reminded: H5APP is logical by carrying out data between JavaScript layers and APP native layers
Letter, wherein H5APP uses scripting language JavaScript, and JavaScript layers of button is using prompting alert method, H5APP
By alert method to user show include communication data and button alert box.
Scripting language JavaScript is a kind of scripting language for belonging to network, has been widely used for Web application and development,
It is commonly used to add miscellaneous dynamic function for webpage, provides the result of browse of more smooth beauty for user, this step is used for
Interbehavior is added to interaction page.
Prompting alert is a kind of scripting language used in HTML DOM, and Chinese means " prompting ".Alert method
It is generally used for the alert box that display has a specified message and an OK button.When the button in interactive interface uses above-mentioned side
When formula, H5APP shows alert box to user by triggering this alert method, once user's button press, then by APP native
Layer intercepts.
Step S102, hold-up interception method simultaneously obtain communication data: when button is triggered, native layers of APP pass through browser
Component webview intercepts alert method, obtains the communication data of JavaScript layers of transmission.
Before native layers of interception alert method of APP, alert method can be encapsulated, due to passing through webpage control
The network request that part webview is initiated can be intercepted and notify at native layers of APP, therefore native layers of this step APP
Alert method is intercepted by webview, obtains communication data.
Step S103, data feedback: native layers of the APP method by calling JavaScript feeds back communication data
To JavaScript layers.
The mode that this step is called can be with are as follows:
StringByEvaluatingJavaScriptFromString: one section of js script is executed, and returns and executes knot
Fruit, i.e. feedback communication data.
The present embodiment is when JavaScript layers of button uses alert method, respectively by intercepting alert method and tune
Communication mechanism as above is established with the method for JavaScript, H5APP and APP native is made to realize two-way high-speed traffic.
In one embodiment, as shown in figure 3, hypertext markup language application software H5APP and primary software APP
Native establishes communication mechanism, comprising:
Step S111, button label: H5APP is logical by carrying out data between JavaScript layers and APP native layers
Letter, wherein H5APP uses scripting language JavaScript, and JavaScript layers of button uses label iFrame element,
H5APP by iFrame element to user show include communication data and button inline frame.
Label iFrame element is H5 label, and effect is the document in document, or the frame (FRAME) to float,
Inline frame of the iframe element commonly used in creation comprising another document.When the button in interactive interface uses above-mentioned side
When formula, H5APP shows communication data to user by triggering this iFrame element, once user's button press, then by APP
Native layers of interception.
Step S112, interception event simultaneously obtain communication data: when the button is triggered, native layers of APP by clear
The device assembly webview that lookes at intercepts the click event of iFrame element, obtains the communication data of JavaScript layers of transmission.
Before the click event that native layers of APP intercept iFrame element, one is bound to the button of interactive interface
IFrame element.Once user's trigger button, i.e. wake-up iFrame element, native layers of acquisition communication data of APP.Due to logical
The network request of webpage control webview initiation is crossed, can be intercepted and notify at native layers of APP, therefore this step APP
The native layers of click event also by webview interception iFrame element obtains communication data.
Step S113, data feedback: native layers of the APP method by calling JavaScript feeds back communication data
To JavaScript layers.
This step implementation method identical with step S103, communication data is fed back.
The present embodiment is when JavaScript layers of button uses iFrame element, respectively by intercepting iFrame element
Click event and the method for calling JavaScript establish communication mechanism as above, realize H5APP and APPnative two-way quick
Communication.
Step S2, send communication data: H5APP obtains customer interaction information by preset interactive interface, to acquisition
Interactive information carries out service logic calculating, obtains calculated result, sets communication data for calculated result and be sent to APP
native。
This step carries out the exploitation and maintenance of service logic, interactive interface at the end H5APP, and user shows and human-computer interaction.
Service logic includes placing an order, buy and redeeming.
In one embodiment, H5APP obtains customer interaction information by preset interactive interface, believes the interaction of acquisition
Breath carries out service logic calculating, obtains calculated result, comprising: interactive interface includes but is not limited to manage money matters details displayed page, reason
Wealth list displayed page, fund purchase interface or fund redeem at least one of interface, and H5APP is pre- to each interactive interface
Script is calculated equipped with a service logic.H5APP obtains the interactive information of user's input by interactive interface, according to interaction circle
Face calls corresponding service logic to calculate script, carries out service logic calculating to interactive information, obtains calculated result.
Interactive interface obtains user's input or triggering interactive information for showing and carrying out human-computer interaction.H5APP root
Different interactive information is got according to different interactive interfaces, it is corresponding to be calculated containing different service logics, including buy, redeem
Deng.Specifically such as: when fund buys interface acquisition purchase information, the corresponding service logic in interface is bought by fund and calculates script,
The logic calculation of purchase data is carried out, purchase calculated result is generated.
When needing to update service logic, only corresponding service logic need to be calculated script and be updated, realization is opened
Send out that maintenance workload is small, labor-saving purpose.Specific update method is as follows:
H5APP, which is preset with, updates interface, and updating interface includes that upload interface or code input window, H5APP pass through upload
The service logic that interface or code input window obtain user's input calculates script, and service logic calculating script is updated.
The present embodiment obtains different interactive information for different interactive interfaces, and to default pair of kind of interactive interface
The service logic answered calculates script, realizes the purpose for flexibly calculating and updating service logic.
Step S3, encryption and storage: after APP native receives communication data, communication data is encrypted
Afterwards, it is stored.
In one embodiment, this step, comprising:
After APP native receives communication data, preset Encryption Algorithm is called, communication data is encrypted
Afterwards, it is stored, Encryption Algorithm includes but is not limited to symmetric encipherment algorithm, rivest, shamir, adelman or Message Digest 5.
Symmetric encipherment algorithm can select DES symmetric encipherment algorithm, and the typical variant of DES symmetric encipherment algorithm is triple
DES carries out a kind of mechanism of Tertiary infilling using 168 key pair data, using the both sides user of this encryption method
Formula is encrypted and decrypted with same key, and DES symmetric encipherment algorithm can provide extremely powerful safety.Due to itself plus solution
Close speed is very fast, the use when message sender needs to encrypt mass data of DES symmetric encipherment algorithm.
Rivest, shamir, adelman can select RSA rivest, shamir, adelman, and RSA rivest, shamir, adelman needs two are close
Key: public-key cryptography (publickey) and private cipher key (privatekey).Public-key cryptography and private cipher key are a pair of, if with
Public-key cryptography encrypts data, could only be decrypted with corresponding private cipher key, if carried out with private cipher key pair data
Encryption, then could only be decrypted with corresponding public-key cryptography.The confidentiality of RSA rivest, shamir, adelman is relatively good, it is eliminated
End user exchanges the needs of key, but encrypts and decryption spends that the time is long, speed is slow, it be not suitable for file encryption and
It is only applicable to encrypt low volume data.
Message Digest 5 can select MD5 Message Digest 5, and MD5 Message Digest 5 is usually used in wanting verify data
Integrality is the core algorithm of Digital Signature Algorithm.MD5 Message Digest 5 be mainly characterized by ciphering process do not need it is close
Key, and the data by encryption can not be decrypted, and only input identical clear data by identical Message Digest 5
Identical ciphertext can just be obtained.
There are respective advantage and disadvantage based on above-mentioned Encryption Algorithm, therefore the present embodiment is encrypted to communication data
When, it can be not limited to a certain Encryption Algorithm, but corresponding Encryption Algorithm can be obtained automatically according to encryption rule, it encrypts
Rule is the data source according to communication data, is corresponding with a kind of Encryption Algorithm.A certain Encryption Algorithm is obtained according to encryption rule
Interactive information is encrypted, such as when the communication data obtained for interactive interface is subscriber identity information, due to for peace
Full property is higher, therefore stores after being encrypted using Message Digest 5.
The present embodiment, due to H5APP page code be easy attacked, this step after receiving communication data,
It is not the encryption method for directly being stored, but applying the prior art, and ciphering process is realized at native layers of APP.
After native layers of APP to data encryption, the safe handling and transmission of data ensure that.
In one embodiment, after step S3, as shown in figure 4, further including step S4:
Step S401, decrypt simultaneously feedback data: APP native judges whether to return to correspondence according to preset data type
Feedback data, if desired feedback data returns to H5APP after then the feedback data of storage is decrypted.
Data type in the present embodiment includes that need to only carry out saving the storage-type data type of communication data and need anti-
Present the interactive data type of corresponding feedback data.For example, the interactive interface by H5APP obtains subscriber identity information, then belong to
In storage-type data type, APP native only needs to save, and is not necessarily to H5APP feedback information.It is obtained by H5APP interactive interface
Information is bought, then belongs to interactive data type, APPnative needs will buy the corresponding feedback data of information using encryption pair
The decipherment algorithm answered after being decrypted, feeds back to H5APP.
Step S402, is shown feedback data: H5APP is opened up the feedback data after decryption by interactive interface
Show.
After H5APP receives the feedback data after APP native decryption, by feedback data by interactive interface, to user
It is shown.The end H5APP only carries out interacting with user, reception and display data.
Present embodiment ensure that the data that H5APP is obtained, are by transmitting after the decryption of the end APP native, into one
Step ensures the safety of data.
Data interactive method of the embodiment of the present invention based on H5, the communication at the end H5APP and the end APP native according to
The different application of JavaScript layers of button, using different communication modes, communication mode flexibility and reliability.The end H5APP only into
Capable and the interaction of user and the displaying of data, the end APP native guarantee the safe handling and storage of data.The present embodiment uses
The mode that the end H5APP and the end APP native combine, respectively independent and data interaction again realize interaction flexibly, data safety
Reliable purpose.
In one embodiment it is proposed that a kind of data interaction device based on H5, as shown in figure 5, including following module:
Communication module is established, hypertext markup language application software H5APP and primary software APPnative is set as and establishes
Communication mechanism;
Communication data module is sent, H5APP is set as by preset interactive interface and obtains customer interaction information, to acquisition
Interactive information carry out service logic calculating, obtain calculated result, set communication data for calculated result and be sent to APP
native;
Encryption and memory module are set as after APP native receives communication data, communication data are carried out at encryption
After reason, stored.
In one embodiment it is proposed that a kind of computer equipment, including memory and processor, it is stored in memory
Computer-readable instruction, when computer-readable instruction is executed by processor, so that reality when processor executes computer-readable instruction
Step in the data interactive method based on H5 of existing the various embodiments described above.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, computer-readable finger
When order is executed by one or more processors, so that one or more processors execute the data based on H5 of the various embodiments described above
Step in exchange method.Wherein, storage medium can be non-volatile memory medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but
It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field
For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention
Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of data interactive method based on H5 characterized by comprising
Hypertext markup language application software H5 APP and primary software APP native establish communication mechanism;
The H5 APP obtains customer interaction information by preset interactive interface, carries out business to the interactive information of acquisition
Logic calculation obtains calculated result, sets communication data for the calculated result and is sent to the APP native;
After the APP native receives the communication data, after the communication data is encrypted, stored.
2. the data interactive method according to claim 1 based on H5, which is characterized in that the hypertext markup language is answered
Communication mechanism is established with software H5 APP and primary software APP native, comprising:
The H5 APP is by carrying out data communication between JavaScript layers and APP native layers, wherein the H5 APP
Using scripting language JavaScript, using alert method is reminded, the H5 APP passes through JavaScript layers of the button
The alert method to user show include communication data and the button alert box;
When the button is triggered, described APP native layers intercept the side alert by browser component webview
Method obtains the communication data of the JavaScript layers of transmission;
The described APP native layers method by calling the JavaScript feeds back to communication data described
JavaScript layers.
3. the data interactive method according to claim 1 based on H5, which is characterized in that the hypertext markup language is answered
Communication mechanism is established with software H5 APP and primary software APP native, comprising:
The H5 APP is by carrying out data communication between JavaScript layers and APP native layers, wherein the H5 APP
Using scripting language JavaScript, JavaScript layers of the button uses label iFrame element, and the H5 APP is logical
Cross the iFrame element to user show include communication data and the button inline frame;
When the button is triggered, described APP native layers intercept the iFrame member by browser component webview
The click event of element obtains the communication data of the JavaScript layers of transmission;
The described APP native layers method by calling the JavaScript feeds back to communication data described
JavaScript layers.
4. the data interactive method according to claim 1 based on H5, which is characterized in that the H5 APP passes through preset
Interactive interface obtains customer interaction information, carries out service logic calculating to the interactive information of acquisition, obtains calculated result, wrap
It includes:
The interactive interface include but is not limited to manage money matters details displayed page, financing list displayed page, fund purchase interface or
Fund redeems at least one of interface, and the H5 APP is preset with a service logic to each interactive interface and calculates
Script;
The H5 APP obtains the interactive information of user's input by the interactive interface, according to the interactive interface, calling pair
The service logic answered calculates script, carries out service logic calculating to the interactive information, obtains the calculated result.
5. the data interactive method according to claim 4 based on H5, which is characterized in that further include:
The H5 APP, which is preset with, updates interface, and the update interface includes uploading interface or code input window, the H5
APP calculates script by the service logic that the upload interface or code input window obtain user's input, and the business is patrolled
Calculating script is collected to be updated.
6. the data interactive method according to claim 1 based on H5, which is characterized in that the APP native is received
After the communication data, after the communication data is encrypted, stored, comprising:
After the APP native receives the communication data, preset Encryption Algorithm is called, the communication data is carried out
It after encryption, is stored, the Encryption Algorithm includes but is not limited to symmetric encipherment algorithm, rivest, shamir, adelman or message
Digest algorithm.
7. the data interactive method according to claim 1 based on H5, which is characterized in that the APP native is received
After the communication data, after the communication data is encrypted, after being stored, further includes:
The APP native judges whether to return to corresponding feedback data, if desired feedback coefficient according to preset data type
According to returning to the H5 APP after then the feedback data of storage is decrypted;
Feedback data after the decryption is shown by the H5 APP by the interactive interface.
8. a kind of data interaction device based on H5 characterized by comprising
Communication module is established, it is logical to be set as hypertext markup language application software H5 APP and primary software APP native foundation
Letter mechanism;
Communication data module is sent, the H5 APP is set as by preset interactive interface and obtains customer interaction information, to obtaining
The interactive information taken carries out service logic calculating, obtains calculated result, sets communication data hair for the calculated result
Give the APP native;
Encryption and memory module are set as after the APP native receives the communication data, by the communication data into
After row encryption, stored.
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 data interactive method based on H5.
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 are executed as described in any one of claims 1 to 7 claim based on the number of H5
The step of according to exchange method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910061844.XA CN109885412A (en) | 2019-01-23 | 2019-01-23 | Data interactive method, device, computer equipment and storage medium based on H5 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910061844.XA CN109885412A (en) | 2019-01-23 | 2019-01-23 | Data interactive method, device, computer equipment and storage medium based on H5 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109885412A true CN109885412A (en) | 2019-06-14 |
Family
ID=66926614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910061844.XA Pending CN109885412A (en) | 2019-01-23 | 2019-01-23 | Data interactive method, device, computer equipment and storage medium based on H5 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109885412A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569133A (en) * | 2019-08-29 | 2019-12-13 | 五八有限公司 | Method and device for realizing business fusion between APPs, electronic equipment and storage medium |
CN110928955A (en) * | 2019-12-09 | 2020-03-27 | 北京锐安科技有限公司 | Data interaction method and device, computer equipment and storage medium |
CN111159748A (en) * | 2019-12-31 | 2020-05-15 | 中国银行股份有限公司 | Front-end information encryption method and device |
CN111753240A (en) * | 2020-06-30 | 2020-10-09 | 上海二三四五网络科技有限公司 | Control method and device for automatically providing matching information based on H5 page |
CN112988408A (en) * | 2019-12-17 | 2021-06-18 | 北京沃东天骏信息技术有限公司 | Multi-terminal interaction method and device |
CN114356452A (en) * | 2021-12-31 | 2022-04-15 | 必要鸿源(北京)科技有限公司 | Method and device for acquiring positioning result information, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463387A (en) * | 2017-09-12 | 2017-12-12 | 中国农业大学 | A kind of cross-platform rural tourism APP implementation method and device |
-
2019
- 2019-01-23 CN CN201910061844.XA patent/CN109885412A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463387A (en) * | 2017-09-12 | 2017-12-12 | 中国农业大学 | A kind of cross-platform rural tourism APP implementation method and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569133A (en) * | 2019-08-29 | 2019-12-13 | 五八有限公司 | Method and device for realizing business fusion between APPs, electronic equipment and storage medium |
CN110928955A (en) * | 2019-12-09 | 2020-03-27 | 北京锐安科技有限公司 | Data interaction method and device, computer equipment and storage medium |
CN110928955B (en) * | 2019-12-09 | 2022-11-15 | 北京锐安科技有限公司 | Data interaction method and device, computer equipment and storage medium |
CN112988408A (en) * | 2019-12-17 | 2021-06-18 | 北京沃东天骏信息技术有限公司 | Multi-terminal interaction method and device |
CN111159748A (en) * | 2019-12-31 | 2020-05-15 | 中国银行股份有限公司 | Front-end information encryption method and device |
CN111753240A (en) * | 2020-06-30 | 2020-10-09 | 上海二三四五网络科技有限公司 | Control method and device for automatically providing matching information based on H5 page |
CN114356452A (en) * | 2021-12-31 | 2022-04-15 | 必要鸿源(北京)科技有限公司 | Method and device for acquiring positioning result information, electronic equipment and storage medium |
CN114356452B (en) * | 2021-12-31 | 2024-03-19 | 必要鸿源(北京)科技有限公司 | Method and device for acquiring positioning result information, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109885412A (en) | Data interactive method, device, computer equipment and storage medium based on H5 | |
EP3556073B1 (en) | Secure data distribution of sensitive data across content delivery networks | |
US10387873B2 (en) | Systems, methods, and computer program products for integrating third party services with a mobile wallet | |
CN113516256B (en) | Third-party-free federal learning method and system based on secret sharing and homomorphic encryption | |
Beato et al. | Scramble! your social network data | |
US20180176192A1 (en) | Secure data egress for sensitive data across networks | |
WO2017128869A1 (en) | Information processing method, first terminal, second terminal, and server | |
CN104040933B (en) | The difference client-side encryption of the information from client | |
CN109067528B (en) | Password operation method, work key creation method, password service platform and equipment | |
EP3556074A1 (en) | Secure data ingestion for sensitive data across networks | |
CN102469080B (en) | Method for pass user to realize safety login application client and system thereof | |
CN105516157B (en) | Network information security input system and method based on independent encryption | |
JP2019503533A5 (en) | ||
CN106529938A (en) | Virtual card issuing method, device and terminal | |
JP2017534991A (en) | Method and apparatus for calling local keyboard on HTML page of user terminal device | |
WO2016188127A1 (en) | Virtual keyboard-based encryption method and apparatus | |
KR20140144069A (en) | System for encoding information using optical character recognition and method thereof | |
US20220150228A1 (en) | Computer systems and methods including html browser authorisation approaches | |
CN111242768B (en) | Credit card information security acquisition method, device and system | |
CN114338055A (en) | Identity authentication method and device | |
CN105592033B (en) | trusted service management system and method | |
CN106779645A (en) | Information ciphering method and device | |
JP7144659B2 (en) | Guidance system, authentication device for the guidance system, guidance method, and program for the authentication device | |
CN102799836B (en) | A kind of method that software is promoted | |
CN112583602A (en) | Information code data transmission method, device, system, computer device and medium |
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 |