CN102646055A - Method for data interaction between systems - Google Patents
Method for data interaction between systems Download PDFInfo
- Publication number
- CN102646055A CN102646055A CN2012100473650A CN201210047365A CN102646055A CN 102646055 A CN102646055 A CN 102646055A CN 2012100473650 A CN2012100473650 A CN 2012100473650A CN 201210047365 A CN201210047365 A CN 201210047365A CN 102646055 A CN102646055 A CN 102646055A
- Authority
- CN
- China
- Prior art keywords
- present
- page
- data system
- instruction
- giving
- 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
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for data interaction between systems, which is suitable for a framework comprising at least one data system and a gift system; and the method comprises the following steps that: after a gift giving command sent by a visitor through a current browsing page is received by the data system, a first page of an embedded gift system interface is automatically established; after a submitting command corresponding to the first page is received by the gift system, a second page of an embedded current data system interface is automatically established; and a preset JAVASCRIPT function relevant to gift giving is also invoked by the second page so as to give a gift corresponding to the submitting command to a visited person corresponding to the current browsing page by the JAVASCRIPT function relevant to gift giving. By utilizing the scheme provided by the invention, the aim that the self interface and page of the gift system are effectively invoked by the data system can be realized.
Description
Technical field
The present invention relates to technical field of data processing, particularly relate to the mutual method of a kind of inter-system data.
Background technology
The present system, it is widely used on the electronic business transaction platform, and it can let the user after the consumption net site commodity, reach the effect interactive with other online friends easily.It is thus clear that in virtual network, the same role of gold coin system is playing the part of in the present system; For example: the user can give presents such as fresh flower or integration to the bloger when browsing blog; With the gratitude of representing oneself freely to browse, perhaps, browse bloger's piece article right with exchange.
Wherein, the present system itself has the interface and the page of giving present, and still, general present system and other data systems with present demand are not under same domain name; And according to modern main browser standard; Two pages that use IFRAME to comprise are if two pages can not call the JAVASCRIPT function mutually not under same domain name; Therefore, this will cause other data systems can't call the interface and the page of present system self effectively.And if other data systems are all developed displayed page alone; And the calling interface of oneself is set; Can damage the extensibility and the maintainability of present system greatly, same function (function relevant with present) can occur has different versions between different system, if the present system need increase a new function like this; Perhaps need revise some literal etc.; All use the other system of present system, all need make corresponding adjustment, and this has increased the difficulty of the exploitation and the maintenance of project undoubtedly greatly.
So, how solving data system and can't call the interface of present system self and the problem of the page effectively, is a focus that merits attention.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of inter-system data mutual method, effectively calls the purpose of the present system its own interfaces and the page to realize data system, and technical scheme is following:
The method that a kind of inter-system data is mutual is applicable in the framework that is made up of at least one data system and present system; Said method comprises:
Data system is receiving after present that the visitor sends through the current browsing page gives instruction, creates first page of an embedded present system interface automatically;
Second page of an embedded current data system interface is created automatically by the present system after receiving the corresponding submission instruction of said first page; And give relevant JAVASCRIPT function through the preset present of said second page invocation, to give relevant JAVASCRIPT function through said present, to the present that the corresponding interviewee of the said current browsing page gives and said submission instruction is corresponding;
Required editor's page when wherein, said first page is given present for the visitor; Said second page is to comprise the corresponding page of giving present information of said submission instruction.
Wherein, said method also comprises:
Data system is after receiving a browse request; Whether the ID of judging in the browse request to be comprised is in logging status; And be under the situation of logging status, the Query Information of browsing address and present demand parameter that will comprise in ID, the browse request sends to the present system;
The present system is after receiving Query Information; Judge whether giving of self exists in the record and satisfy the record of giving give present demand parameter in the information; If then send and allow the instruction browsed, with indication current data system demonstration browse request corresponding page to the current data system; Otherwise, send the instruction have no right to visit to the current data system, and then the current data system sends the indication of giving present after receiving the instruction of having no right to visit, and, carries out the operation of giving present receiving after present gives instruction.
Wherein, said method also comprises: when the ID that in judging browse request, is comprised was not in logging status, the visitor that said browse request is sent in indication logined.
The technical scheme that the embodiment of the invention provided, data system are then created first page of an embedded present system interface automatically after the present that receives the visitor is given instruction; And the present system is after receiving the corresponding submission instruction of first page; Automatically create second page of an embedded current data system interface; And give relevant JAVASCRIPT function by the preset present of said second page invocation; To give relevant JAVASCRIPT function through said present, give and the corresponding present of said submission instruction to the corresponding interviewee of the said current browsing page.Compared with prior art; Carry out in the mutual process at data system and present system; The mode of the page through embedding the corresponding system interface; The win page and each page of current data system, second page and each page of present system are under the same domain name, can't call the interface of present system self and the problem of the page effectively thereby solved data system.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do simple the introduction to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is mutual first kind of process flow diagram of method of a kind of inter-system data that the embodiment of the invention provided;
Fig. 2 is second kind of process flow diagram of the mutual method of a kind of inter-system data that the embodiment of the invention provided.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Can't call the interface of present system self and the problem of the page effectively in order to solve data system, the embodiment of the invention provides a kind of inter-system data mutual method.
Need to prove that the mutual method of the inter-system data that the embodiment of the invention provided is applicable in the framework that is made up of at least one data system and present system.Wherein, data system can be blog system, purchase system, community system etc.; The present system is the system with self stand-alone interface and page.
Giving present with the visitor to the data system interviewee below is to represent that the gratitude of freely browsing is example, to the mutual method introduction of a kind of inter-system data that the embodiment of the invention provided.
Method as shown in Figure 1, that a kind of inter-system data is mutual can comprise:
S101, the current data system receives the visitor and gives instruction through the present that the current browsing page sends;
When the visitor logins a data system; For example: blog system, shopping electronic system etc.; It wants to give certain present to the corresponding interviewee of the current browsing page; For example: gold coin, fresh flower etc., during with the gratitude representing oneself freely to browse, then can send a present to the current data system through the current browsing page and give instruction.
S102, current data system create first page of an embedded present system interface automatically;
Required editor's page when wherein, this first page is given present for the visitor.
Specific JAVASCRIPT function then can call receiving after this present gives instruction in the current data system, is embedded with first page of present system interface with automatic establishment one.Because first page is by the current data system constructing, then it uses same domain name with each page of current data system, and therefore, first page can call the JAVASCRIPT function of each page correspondence of current data system.
S103, present system create second page of an embedded current data system interface automatically after receiving the corresponding submission instruction of this first page;
Wherein, this second page is to comprise the corresponding page of giving present information of this submission instruction.
Because first page is embedded with the present system interface, therefore, edit in first page the visitor that present is given information and when submitting to, the present system can receive the corresponding submission instruction of this first page.
After the present system receives this submission instruction, then can create second page of an embedded current data system interface automatically.Because second page is by this present system creation, then it uses same domain name with each page of present system, and therefore, second page can call the JAVASCRIPT function of each page correspondence of present system.
S104; The present system gives relevant JAVASCRIPT function through what this second page invocation was preset with present; To give relevant JAVASCRIPT function through this and present, give and the corresponding present of this submission instruction to the corresponding interviewee of the current browsing page.
The present system gives relevant JAVASCRIPT function through what second page invocation was preset with present; To give relevant JAVASCRIPT function through this and present; Give and corresponding present is instructed in this submissions to the corresponding interviewee of the current browsing page, realized that finally the current data system effectively calls the interface and the page of present system.
The technical scheme that the embodiment of the invention provided, data system are then created first page of an embedded present system interface automatically after the present that receives the visitor is given instruction; And the present system is after receiving the corresponding submission instruction of first page; Automatically create second page of an embedded current data system interface; And give relevant JAVASCRIPT function by the preset present of said second page invocation; To give relevant JAVASCRIPT function through said present, give and the corresponding present of said submission instruction to the corresponding interviewee of the said current browsing page.Compared with prior art; Carry out in the mutual process at data system and present system; The mode of the page through embedding the corresponding system interface; The win page and each page of current data system, second page and each page of present system are under the same domain name, can't call the interface of present system self and the problem of the page effectively thereby solved data system.
In practical application, the information that the visitor browsed not all is free also, and it need provide corresponding present to the interviewee, browses right accordingly to exchange.For this situation, the embodiment of the invention also provides a kind of inter-system data mutual method.
Same, the mutual method of the inter-system data that the embodiment of the invention provided is applicable in the framework that is made up of at least one data system and present system.Wherein, data system can be blog system, purchase system, community system etc.; The present system is the system with self stand-alone interface and page.
Method as shown in Figure 2, that a kind of inter-system data is mutual can comprise:
S201, the current data system receives a browse request,
S202 judges whether the ID that is comprised in this browse request is in logging status, if not, and execution in step S203 then; Otherwise, execution in step S204;
When the visitor wants to browse a certain when needing information that present exchanges right, then click when opening this information corresponding page as the visitor, understand and send a browse request to the current data system simultaneously.Wherein, comprise at least in this browse request: ID, this information are corresponding browses address, present demand parameter.
The current data system judges at first then whether the ID that comprises in this browse request is in logging status, if be not in logging status, then needs execution in step S202 after receiving this browse request, login with the indication visitor; If be in logging status, then need execution in step S203, to carry out the judgement of authority.
S203; The visitor that this browse request is sent in indication logins;
When the current data system judges the visitor who sends browse request and is not in logging status, then can show the corresponding page, login to indicate this visitor.
S204, the Query Information of browsing address and present demand parameter that will comprise in ID, the browse request sends to the present system;
The current data system can continue then to judge whether it enjoys browse right when judging the visitor and be in logging status, at this moment, the Query Information of browsing address and present demand parameter that then needs will comprise in ID, the browse request sends to the present system.
S205 after the present system receives this Query Information, judges whether giving of self exists the record of giving that satisfies present demand parameter in the Query Information in the record, if, execution in step S206; Otherwise, execution in step S207;
The present system then judges self to give whether have the record of giving that satisfies present demand parameter in the Query Information in the record after receiving this Query Information, and according to Query Result to the different instruction of current data system feedback.Wherein, Corresponding with Query Information give record can for: the visitor is not less than the record of giving of present demand to the present quantity that the interviewee gave; Perhaps, the visitor is not less than present demand and the time of giving to the present quantity that the interviewee gave and in effective time, gives record.For example:
The condition that the visitor can read one piece of article of current bloger is: the visitor need give 100 fresh flowers to the bloger, and at this moment, the present system need judge whether giving of self has the visitor and gave the bloger record of 100 fresh flowers in the record.
S206 sends to the current data system and to allow the instruction browsed, with indication current data system demonstration browse request corresponding page;
If the visitor has given satisfactory present to the interviewee, then the present system sends to the current data system and allows the instruction browsed, with indication current data system demonstration browse request corresponding page.
S207, present system send the instruction of having no right to visit to the current data system;
If the visitor did not give satisfactory present to the interviewee, then the present system sends the instruction of having no right to visit to the current data system, and system carries out the operation that the subsequent alerts visitor gives present with the indication current data.
S208, current data system send the indication of giving present after receiving the instruction of having no right to visit;
The current data system then can send the indication of giving present after receiving the instruction of having no right to visit that the present system sends, and receiving after present gives instruction, carries out follow-up operation of giving present.
S209, the current data system in conjunction with the present system, carries out giving to the interviewee process of present receiving after present that the visitor sends through the current browsing page gives instruction.
In the present embodiment, it is similar with the foregoing description step S101-S104 to give the process of present to the interviewee among the step S209, repeats no more at this.Need to prove that in the present embodiment, present is given and included the present demand parameter in the instruction, so that the final present of giving meets the present demand parameter.
In the present embodiment; When need exchanging with present, the visitor browses under the situation of right; Data system is at first judged visitor's browse right under the cooperation of present system, and under the situation that does not have browse right; The indication visitor gives corresponding present, and then realizes that data system effectively calls the interface and the page of present system.
The above only is an embodiment of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.
Claims (3)
1. the method that inter-system data is mutual is characterized in that, is applicable in the framework that is made up of at least one data system and present system; Said method comprises:
Data system is receiving after present that the visitor sends through the current browsing page gives instruction, creates first page of an embedded present system interface automatically;
Second page of an embedded current data system interface is created automatically by the present system after receiving the corresponding submission instruction of said first page; And give relevant JAVASCRIPT function through the preset present of said second page invocation, to give relevant JAVASCRIPT function through said present, to the present that the corresponding interviewee of the said current browsing page gives and said submission instruction is corresponding;
Required editor's page when wherein, said first page is given present for the visitor; Said second page is to comprise the corresponding page of giving present information of said submission instruction.
2. method according to claim 1 is characterized in that, said method also comprises:
Data system is after receiving a browse request; Whether the ID of judging in the browse request to be comprised is in logging status; And be under the situation of logging status, the Query Information of browsing address and present demand parameter that will comprise in ID, the browse request sends to the present system;
The present system is after receiving Query Information; Judge whether giving of self exists in the record and satisfy the record of giving give present demand parameter in the information; If then send and allow the instruction browsed, with indication current data system demonstration browse request corresponding page to the current data system; Otherwise, send the instruction have no right to visit to the current data system, and then the current data system sends the indication of giving present after receiving the instruction of having no right to visit, and, carries out the operation of giving present receiving after present gives instruction.
3. method according to claim 2 is characterized in that, said method also comprises: when the ID that in judging browse request, is comprised was not in logging status, the visitor that said browse request is sent in indication logined.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210047365.0A CN102646055B (en) | 2012-02-27 | 2012-02-27 | Method for data interaction between systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210047365.0A CN102646055B (en) | 2012-02-27 | 2012-02-27 | Method for data interaction between systems |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102646055A true CN102646055A (en) | 2012-08-22 |
CN102646055B CN102646055B (en) | 2014-01-01 |
Family
ID=46658884
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210047365.0A Active CN102646055B (en) | 2012-02-27 | 2012-02-27 | Method for data interaction between systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102646055B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243463A (en) * | 2014-09-09 | 2014-12-24 | 广州华多网络科技有限公司 | Method and device for displaying virtual items |
CN104537549A (en) * | 2014-12-17 | 2015-04-22 | 广州酷狗计算机科技有限公司 | Presentation method and device for virtual currency |
CN104572263A (en) * | 2014-12-30 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Page data interaction method, related device and system |
CN104965690A (en) * | 2014-04-18 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for processing data |
WO2016161913A1 (en) * | 2015-04-09 | 2016-10-13 | 腾讯科技(深圳)有限公司 | Resource transfer system and method |
CN106254910A (en) * | 2016-07-29 | 2016-12-21 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus recording image |
CN106911968A (en) * | 2017-03-17 | 2017-06-30 | 武汉斗鱼网络科技有限公司 | A kind of live middle realization method and system for obtaining privilege information |
CN107038065A (en) * | 2017-03-01 | 2017-08-11 | 武汉斗鱼网络科技有限公司 | Information processing method and device |
CN112491955A (en) * | 2020-10-23 | 2021-03-12 | 北京思特奇信息技术股份有限公司 | Method and system for realizing data exchange of iframe system based on proxy server |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499443A (en) * | 2002-10-31 | 2004-05-26 | Passive embodded interactive coding | |
CN1519722A (en) * | 2003-01-20 | 2004-08-11 | 鼎新电脑股份有限公司 | System and method for processing events on java web page |
EP1627506A1 (en) * | 2003-05-29 | 2006-02-22 | International Business Machines Corporation | Method and system for multimedia message service communication |
CN101504748A (en) * | 2009-03-16 | 2009-08-12 | 陈金水 | Method for real-time donating and satisfying personalized received blessing gift based on network platform interaction |
CN101630392A (en) * | 2008-07-18 | 2010-01-20 | 翁仁滉 | System and method for simulating virtual passenger flow |
-
2012
- 2012-02-27 CN CN201210047365.0A patent/CN102646055B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499443A (en) * | 2002-10-31 | 2004-05-26 | Passive embodded interactive coding | |
CN1519722A (en) * | 2003-01-20 | 2004-08-11 | 鼎新电脑股份有限公司 | System and method for processing events on java web page |
EP1627506A1 (en) * | 2003-05-29 | 2006-02-22 | International Business Machines Corporation | Method and system for multimedia message service communication |
CN101630392A (en) * | 2008-07-18 | 2010-01-20 | 翁仁滉 | System and method for simulating virtual passenger flow |
CN101504748A (en) * | 2009-03-16 | 2009-08-12 | 陈金水 | Method for real-time donating and satisfying personalized received blessing gift based on network platform interaction |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965690A (en) * | 2014-04-18 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for processing data |
US11455365B2 (en) | 2014-04-18 | 2022-09-27 | Tencent Technology (Shenzhen) Company Limited | Data processing method and apparatus |
CN104965690B (en) * | 2014-04-18 | 2018-07-06 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN104243463B (en) * | 2014-09-09 | 2017-09-15 | 广州华多网络科技有限公司 | A kind of method and apparatus for showing virtual objects |
CN104243463A (en) * | 2014-09-09 | 2014-12-24 | 广州华多网络科技有限公司 | Method and device for displaying virtual items |
CN104537549A (en) * | 2014-12-17 | 2015-04-22 | 广州酷狗计算机科技有限公司 | Presentation method and device for virtual currency |
CN104572263A (en) * | 2014-12-30 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Page data interaction method, related device and system |
WO2016161913A1 (en) * | 2015-04-09 | 2016-10-13 | 腾讯科技(深圳)有限公司 | Resource transfer system and method |
US10580092B2 (en) | 2015-04-09 | 2020-03-03 | Tencent Technology (Shenzhen) Company Limited | Resource transfer system and method |
CN106254910B (en) * | 2016-07-29 | 2020-02-21 | 广州酷狗计算机科技有限公司 | Method and device for recording image |
CN106254910A (en) * | 2016-07-29 | 2016-12-21 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus recording image |
CN107038065A (en) * | 2017-03-01 | 2017-08-11 | 武汉斗鱼网络科技有限公司 | Information processing method and device |
CN106911968A (en) * | 2017-03-17 | 2017-06-30 | 武汉斗鱼网络科技有限公司 | A kind of live middle realization method and system for obtaining privilege information |
CN106911968B (en) * | 2017-03-17 | 2020-10-16 | 武汉斗鱼网络科技有限公司 | Method and system for realizing privilege information acquisition in live broadcast |
CN112491955A (en) * | 2020-10-23 | 2021-03-12 | 北京思特奇信息技术股份有限公司 | Method and system for realizing data exchange of iframe system based on proxy server |
CN112491955B (en) * | 2020-10-23 | 2023-07-07 | 北京思特奇信息技术股份有限公司 | Method and system for realizing iframe system data exchange based on proxy server |
Also Published As
Publication number | Publication date |
---|---|
CN102646055B (en) | 2014-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102646055B (en) | Method for data interaction between systems | |
Carvalho et al. | Effects of the COVID‐19 pandemic on the Brazilian electricity consumption patterns | |
US9122380B2 (en) | Updating assets rendered in a virtual world environment based on detected user interactions in another world | |
US20120192050A1 (en) | Representation of people in a spreadsheet | |
CN105635063B (en) | Internet of Things communication protocol configuration method and device | |
CN104205086A (en) | Method of modifying access control for WEB services using query languages | |
CN103049858A (en) | E-commerce service system and implementation method thereof | |
CN105765621A (en) | Electronic goal monitoring | |
CN104239543A (en) | Life service searching platform based on mobile internet technology | |
CN105207989B (en) | A kind of work system and its control method of various dimensions user | |
CN109074543A (en) | Promote the system and method for shopping | |
CN104200371A (en) | Sharing system based on social network tasks and implementation method | |
CN204790977U (en) | APP automatic compilation system and management platform based on cloud calculates | |
CN107133245A (en) | Presence information management system, method and electronic equipment | |
CN106897393A (en) | Taking care of books method and user terminal | |
CN102024235A (en) | Business process generation system and application service provision system | |
KR102198577B1 (en) | Server providing solar energy business investment service and method thereof | |
CN102420853A (en) | Multichannel cloud service publishing system used for digital network newspaper | |
CN205721934U (en) | A kind of furniture enterprise quality control platform | |
Sharma et al. | People and protected areas in South Asia | |
KR102108574B1 (en) | System and method for providing image file containing copyright information | |
US10097399B1 (en) | Distributed computing management links | |
KR101870417B1 (en) | Method of managing contact list of electronic device using mutual dependence of network relation | |
KR101737878B1 (en) | Method of managing contact list using mutual dependence of network relation | |
KR20060109233A (en) | Forwarding system and method for internet a literary work |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20120822 Assignee: Fujian gold online Network Inc Assignor: Shen Wence Contract record no.: 2014350000071 Denomination of invention: Method for data interaction between systems Granted publication date: 20140101 License type: Exclusive License Record date: 20140704 |
|
LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model |