Summary of the invention
In view of this, the invention provides a kind of information interactive method and system, solved the problem that can not realize carrying out between blog polymeric type website and the source blog instant information interaction in the prior art.
For achieving the above object, the invention provides following technical scheme:
A kind of information interactive method comprises:
The comment of obtaining that the reception sources blog sends is asked, and carries the sign of active blog articles in the described request;
According to the sign of the described source blog articles in the described request, inquire about service code default in the blog articles of described source;
The web page interlinkage that the described service code of foundation obtains described source blog articles;
In described blog polymeric network, inquire about and the corresponding review information of described source blog articles according to described web page interlinkage, and generate the comment file;
Described comment file is back in the blog of described source according to described web page interlinkage, and is shown in the webpage corresponding with described source blog articles.
Preferable, described web page interlinkage of obtaining described source blog articles according to described service code comprises: obtain the web page interlinkage after the encryption.
Preferable, the described web page interlinkage of described foundation is inquired about before the review information corresponding with described source blog articles in described blog polymeric network, comprises, described encryption back web page interlinkage is decrypted.
Preferable, the described web page interlinkage of described foundation is inquired about before the review information corresponding with described source blog articles in described blog polymeric network, also comprises, checks whether described review information exists with expired, if existence and not out of date then generates the comment file.
Preferable, described comment file is sent in the webpage of described source blog articles correspondence and shows with the Flash form.
Preferable, also comprise:
The return information that the bloger who receives described source blog articles imports on the described comment file that shows with the Flash form, and generate new comment file and be back in the webpage of source blog articles correspondence.
A kind of information interaction system comprises:
Receiving element is used for the comment request of obtaining that the reception sources blog sends, and carries the sign of active blog articles in the described request;
Query unit is used for after receiving described request, according to the sign of the described source blog articles in the described request, the service code in the query source blog articles;
Acquiring unit, the web page interlinkage that the described service code of foundation obtains described source blog articles;
File generating unit is inquired about in described blog polymeric network and the corresponding review information of described source blog articles according to described web page interlinkage, and generates the comment file;
Transmitting element is back to described comment file in the blog of described source according to described web page interlinkage, and is shown in the webpage corresponding with described source blog articles.
Preferable, also comprise in the described system:
Updating block is used to receive the return information that the bloger of described source blog articles imports on the described comment file that shows with the Flash form, and generates new comment file and be back in the webpage of source blog articles correspondence.
Via above-mentioned technical scheme as can be known, compared with prior art, the present invention openly provides a kind of information interactive method and system, the comment request corresponding in the blog polymeric network of obtaining by the transmission of reception sources blog with the source blog articles, inquire about and read the service code in the blog articles of source, and obtain the website links that shows this article according to this service code, utilize the website links that gets access to again, the requester network user is to this article in the blog polymeric network, and the comment that will inquire feeds back to the blog that original contents is provided, be shown in the Flash form in the webpage of source blog articles, make the bloger not need to login these blog polymeric type websites and just can see other people comment for own article, realize the information interaction between blog polymerization site and the source blog, increased interactive between blog polymeric type website and the source blog.
In addition, the bloger of source blog can deliver return information on the comment file that shows with the Flash form, by utilizing the shared object technology of Flash, the return information that the bloger who makes blog polymeric network reception sources blog articles imports on the comment file that shows with the Flash form, and generate new comment file and be sent in the webpage of source blog articles correspondence, realize the instant messages interaction between blog polymerization site and the source blog, reduced the information interaction cost between the website.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
A kind of information interactive method provided by the present invention, utilize the aggregated content (RSS of the bloger of source blog with oneself, Really Simple Syndication) subscribes to, with blog polymeric type web site url, make blog polymeric type website can collect the article in the blog of bloger source, and from blog polymeric type website, obtain accordingly the comment corresponding with the source blog articles, for realizing the information interaction between blog polymeric type website and the source blog, the embodiment of the invention discloses a kind of information interactive method, at first, the comment request corresponding in the blog polymeric network of obtaining by the transmission of reception sources blog with the source blog articles, inquire about and read the service code in the blog articles of source, and obtain the website links that shows this article according to this service code, utilize the website links that gets access to again, the requester network user is to this article in the blog polymeric network, and the comment that will inquire feeds back to the blog that original contents is provided, be shown in the Flash form in the webpage of source blog articles, make the bloger not need to login these blog polymeric type websites and just can see other people comment, realize the information interaction between blog polymerization site and the source blog for own article.In the embodiment of following discloses of the present invention, the blog polymeric network is called for short in blog polymeric type website.
See also accompanying drawing 1, be the disclosed a kind of information interactive method flow chart of first embodiment of the invention, mainly may further comprise the steps:
Step S11, the comment of obtaining that the server reception sources blog of blog polymeric network sends is asked, and carries the sign of active blog articles in this request.
Because the bloger is connected to the RSS subscription chain of source blog in the blog polymeric network, after the bloger of source blog logins the source blog, for obtain the comment that the source blog articles obtains in the blog polymeric network, when the bloger clicks article in the blog of source, the source blog has promptly sent to the blog polymeric network simultaneously and has obtained the comment request, carries the sign of active blog articles in this request.And at the relevant treatment of this request, to obtain comment corresponding in the blog polymeric network with the source blog articles.Realize the information interaction between blog polymeric network and the source blog.
Step S12, according to the sign of the source blog articles of carrying in the request of obtaining comment that receives among the step S11, default service code in the source blog articles of clicking by the server lookup bloger of blog polymeric network.
In step S12, default service code is that the source blog is when being connected to the blog polymeric network with the RSS subscription chain, the server of blog polymeric network is subscribed to the corresponding service code of each article in default and the source blog according to RSS, sets up linking between blog polymeric network and the source blog articles with this.When execution in step S11 receives the request of obtaining comment, by the above-mentioned default corresponding service code of clicking with the bloger of source blog articles of the server lookup of blog polymeric network.This service code and source blog articles are one to one, promptly at the article that shows on the blog polymeric network that reception sources blog RSS subscribes on this source blog, and when showing the source blog articles, in the program of the source of calling of blog polymeric network blog articles, add default service code, for the information interaction between blog polymeric network and the source blog is set up necessary mutual foundation.
Step S13, the server of blog polymeric network obtain the web page interlinkage of this source blog articles according to the service code that inquires among the step S12.
In step S13, according to the service code that inquires, what obtain is the link of this source blog articles shown webpage on the blog of source by the server of blog polymeric network, and what promptly obtain is the network address in the source of the source blog articles that shows on the blog polymeric network.Obtain the web page interlinkage in this blog articles source, source, even if when the same title or the article of identical content in different blogs, occurring, also can at the web page interlinkage one to one of source blog articles, determine to carry out the source blog of information interaction and the corresponding relation between the blog polymeric network.
Step S14, by the server of blog polymeric network according to the web page interlinkage that gets access among the step S13, inquiry and the corresponding review information of above-mentioned source blog articles in the blog polymeric network, and generate and comment on file.
In step S14, according to the web page interlinkage that gets access to behind the execution in step S13, inquiry at the comment of the article that shows in this web page interlinkage, and is carried out conversion process by the comment that the server of blog polymeric network will inquire in the blog polymeric network, generate the comment file.Promptly generate a swf file.So-called swf file is the abbreviation of (shock wave flash), is meant a kind of animation file form of supporting vector and dot chart.Here the swf file of Sheng Chenging will be kept at and source blog articles web page interlinkage one to one in the blog polymeric network, the md5 value of file this web page interlinkage by name.Because the md5 value of web page interlinkage all is unique, and has the effect of encryption, so names with the md5 value of this web page interlinkage and can guarantee that the swf file can arbitrarily do not distorted by illegal operation person.In addition, the form of comment file also can be the combination in any of files such as the text document that can transmit or picture.But the form of commenting on file in an embodiment of the present invention is not limited in this.
It should be noted that in the webpage that obtains connects, comprise not have the web page interlinkage of encrypting and the web page interlinkage after the encryption.After the web page interlinkage after getting access to encryption, at first the web page interlinkage of the encryption that will be received by the server of blog polymeric type website is decrypted, and then according to the web page interlinkage after the deciphering, inquiry in the blog polymeric network at the comment of the article that shows in this web page interlinkage, and carry out conversion process by the comment that the server of blog polymeric network will inquire, generate the comment file, promptly generate a swf file.
Step S15 is back to the comment file that generates among the step S14 in the blog of source according to above-mentioned web page interlinkage by the server of blog polymeric network, and will comment on file and be shown in the webpage corresponding with this source blog articles.
In step S15, the comment file that the web page interlinkage of originating according to the source blog articles will generate is back in the blog of source, and this this comment file is shown in the webpage corresponding with this source blog articles.Realize the information interaction between blog polymerization site and the source blog, increased interactive between blog polymeric type website and the source blog.Wherein, owing to the comment file that feeds back to the source blog at the source blog articles is a swf file, then the comment file shows with the Flash form in the webpage of source blog articles correspondence.See also accompanying drawing 2, be the comment file Flash schematic diagram of a kind of information interactive method feedback of the present invention, but comment file of the present invention is not limited in this with the structure that the Flash form shows.
From accompanying drawing 2 as can be seen, the user of blog polymeric network utilizes the number of the account on the blog polymeric network that the source blog articles is commented on, and can be presented at by method of the present invention on the webpage of source blog articles correspondence, main cause is that promptly the swf file that generates adopts the Flash form to show because will carry out the comment file that conversion process generates in the blog polymeric network.
Generally speaking, the log-on message of the network user in each website is to use Cookie to preserve, and Cookie can be subjected to the restriction of website domain name, if adopt the user login information in the Cookie preservation blog polymeric network, then the associative operation that login user is carried out in the blog polymeric network can't be presented in other websites.Therefore the present invention's shared object technology of having adopted Flash is kept at the user's of blog polymeric network log-on message in the blog polymeric network, not only can set up the review information of explicit user in the source blog link with the blog polymeric network, and can be in user capture when other set up article in the blog website link with the blog polymeric network, needn't login once more also and can operate.
In addition, because the comment file of feedback, promptly the swf file adopts the Flash form to show on the webpage of source blog articles correspondence, can not be subjected to the CSS (CSS of website, Cascading Style Sheet) influence can guarantee to comment on the correct demonstration of content.
It should be noted that, on the basis of above-mentioned disclosed method of the present invention, also comprise, the web page interlinkage of in foundation step S13, obtaining, and in the blog polymeric network before the inquiry review information corresponding with above-mentioned source blog articles, whether the review information that is inquired by the server inspection of blog polymeric network exists with expired, if existence and not out of date, carry out conversion process again and generate the comment file, promptly generate a swf file.If the review information that inquires exists expired or has not existed, then inquire about again by the server in the blog polymeric network, and will inquire eligible, promptly existence and not out of date review information are handled again, generate new comment file, promptly generate new swf file and preservation.
In the disclosed information interactive method of the invention described above, realized in the blog polymeric network, showing the article of source blog, and the comment at this source blog articles in the blog polymeric network fed back in the blog of source, promptly realize the information interaction between blog polymeric network and the source blog, increased interactive between blog polymeric type website and the source blog.See also accompanying drawing 3, be the flow chart of the disclosed a kind of information interactive method of second embodiment of the invention, on the basis of the disclosed information interactive method of the invention described above, also comprise step S16.
Step S16, the return information of on the comment file that shows with the Flash form, importing by the bloger of the server reception sources blog articles of blog polymeric network, and generate new comment file and be back in the webpage of source blog articles correspondence.
Performed step S15 in the disclosed information interactive method of the invention described above, the review information of feedback is shown with the Flash form, and the shared object technology that has adopted Flash by accompanying drawing 2 and the present invention as can be known, in the review information that shows with the Flash form, allow the bloger that review information is replied, execution in step S16, receive bloger's return information by the server in the blog polymeric network, and whether checking bloger's log-on message is correct, behind the correct judgment, return information is preserved in the database of blog polymeric network, transfer the user's who preserves in the blog polymeric network log-on message again by Flash, and user's review information, regenerate new comment file, promptly generate a new swf file and be back in the webpage of source blog articles correspondence.Equally, when the bloger carries out refresh operation, new comment at this source blog articles in the polymerization blog net also can regenerate a new comment file, promptly generate a new swf file and feed back in the webpage of source blog articles correspondence, not only realized the synchronous renewal of commenting between source blog and the blog polymeric network.Be the synchronous renewal of information interaction, but also reduced the information interaction cost between the website.
The above-mentioned the present invention of describing in detail is used for the processing method of the network information, can adopt the system of various ways to realize for method of the present invention, therefore, on the basis of a kind of information interactive method disclosed by the invention, also disclose a kind of information interaction system, seen also accompanying drawing 4 and be the system block diagram of the disclosed a kind of information interaction of first embodiment of the invention.Specifically comprise: receiving element 41, query unit 42, acquiring unit 43, file generating unit 44 and transmitting element 45.
Receiving element 41 is used for the comment request of obtaining that the reception sources blog sends, and carries the sign of active blog articles in this request.
Because the bloger is connected to the RSS subscription chain of source blog in the blog polymeric network, after the bloger of source blog logins the source blog, when the bloger clicks article in the blog of source, promptly simultaneously sent a request of obtaining comment to the blog polymeric network, carry the sign of active blog articles in this request.The comment request of obtaining that is sent by the server reception sources blog of blog polymeric network is to obtain comment corresponding with the source blog articles in the blog polymeric network.Realize the information interaction between blog polymeric network and the source blog.
Query unit 42 is used for after receiving element 41 receives the request of obtaining comment, according to the sign of the described source blog articles in this request, the service code in the query source blog articles.Service code in the query source blog articles.
Service code in the blog articles of source is preset, and is to subscribe to the corresponding service code of each article in default and the source blog by the server of blog polymeric network according to RSS, and this service code and source blog articles are one to one.The above-mentioned default corresponding service code of clicking with the bloger of source blog articles of query unit 42 inquiry is for the information interaction between source blog and the blog polymeric network is set up foundation.
Acquiring unit 43, the web page interlinkage that the service code that inquires according to query unit 42 obtains this source blog articles.
After query unit 42 inquires the service code corresponding with the source blog articles of bloger's click, acquiring unit 43 is according to the service code that inquires, what obtain is the link of this source blog articles shown webpage on the blog of source, and what promptly obtain is the network address in the source of the source blog articles that shows on the blog polymeric network.Obtain the web page interlinkage in this blog articles source, source, even if when the same title or the article of identical content in different blogs, occurring, also can at the web page interlinkage one to one of source blog articles, determine to carry out the source blog of information interaction and the corresponding relation between the blog polymeric network.
File generating unit 44 is inquired about in the blog polymeric network and the corresponding review information of above-mentioned source blog articles according to the web page interlinkage that acquiring unit 43 gets access to, and generates the comment file.
The web page interlinkage that gets access at foundation acquiring unit 43, inquiry in the blog polymeric network at the comment of the article that shows in this web page interlinkage, and carry out conversion process by the comment that file generating unit 44 will inquire, and generate the comment file, promptly generate a swf file.Here the swf file of Sheng Chenging will be kept at and source blog articles web page interlinkage one to one in the blog polymeric network, the md5 value of file this web page interlinkage by name.Because the md5 value of web page interlinkage all is unique, and has the effect of encryption, so names with the md5 value of this web page interlinkage and can guarantee that the swf file can arbitrarily do not distorted by illegal operation person.In addition, the form of comment file also can be the combination in any of files such as the text document that can transmit or picture.But the form of commenting on file in an embodiment of the present invention is not limited in this.
Transmitting element 45, the comment file that file generating unit 44 is generated is back in the blog of source according to above-mentioned web page interlinkage, and is shown in the webpage corresponding with this source blog articles.
Because the web page interlinkage that transmitting element 45 obtains according to above-mentioned acquiring unit 43, the comment file that file generating unit 44 is generated feeds back in the blog of source, and this comment file is shown in the webpage corresponding with this source blog articles.Realize the information interaction between blog polymerization site and the source blog, increased interactive between blog polymeric type website and the source blog.Wherein, owing to the comment file that feeds back to the source blog at the source blog articles is a swf file, then the comment file shows with the Flash form in the webpage of source blog articles correspondence.Adopt the Flash form to show that the comment content that makes feedback can not be subjected to the influence of website CSS CSS, can guarantee to comment on the correct demonstration of content.Realize the information interaction between blog polymerization site and the source blog, increased interactive between blog polymeric type website and the source blog
See also accompanying drawing 5, be the system block diagram of the disclosed a kind of information interaction of second embodiment of the invention.In the basis of the system of the above-mentioned disclosed a kind of information interaction of the present invention, comprise in the file generating unit 44: query unit 441, detecting unit 442 and generation unit 443.
Query unit 441 is inquired about in the blog polymeric network and the corresponding review information of above-mentioned source blog articles according to the web page interlinkage that acquiring unit 43 gets access to.
Whether detecting unit 442 is used to examine the review information that side query unit 441 inquires and exists with expired, if exist and not out of date, then enters generation unit 443; If there is no or out of date, then return query unit 441 and inquire about qualified review information again.
Generation unit 443 generates the comment corresponding with the source blog articles with qualified review information.
The review information that in detecting unit 442 query unit 441 is inquired detects, make qualified review information can carry out generation unit 443, and qualified review information is carried out conversion processing by generation unit 443, and generate the comment file, promptly generate the swf file.So that transmit when between blog polymeric network and source blog, carrying out information interaction.
In addition, in the system of the disclosed information interaction of the invention described above, realized in the blog polymeric network, showing the article of source blog, and the comment at this source blog articles in the blog polymeric network fed back in the blog of source, promptly realize the information interaction between blog polymeric network and the source blog, increased interactive between blog polymeric type website and the source blog.On the basis of the system of the disclosed information interaction of the invention described above, also comprise in the system of information interaction of the present invention: updating block 46.See also accompanying drawing 6, be the system block diagram of the disclosed a kind of information interaction of third embodiment of the invention.
Updating block 46, the return information that the bloger who is used for the reception sources blog articles imports on the comment file that shows with the Flash form, and generate new comment file and be back in the webpage of source blog articles correspondence.
Owing in system disclosed by the invention, adopted the shared object technology of Flash, in the review information that shows with the Flash form, allow the bloger that review information is replied, receive bloger's return information by updating block 46, and whether checking bloger's log-on message is correct, behind the correct judgment, return information is preserved in the database of blog polymeric network, transfer the user's who preserves in the blog polymeric network log-on message again by Flash, and user's review information, regenerate new comment file, promptly generate a new swf file and be back in the webpage of source blog articles correspondence.Equally, when the bloger carries out refresh operation, new comment at this source blog articles in the polymerization blog net also can regenerate a new comment file, promptly generate a new swf file and feed back in the webpage of source blog articles correspondence, not only realized the synchronous renewal of commenting between source blog and the blog polymeric network.Be the synchronous renewal of information interaction, but also reduced the information interaction cost between the website.
It should be noted that to see also accompanying drawing 7, be the system block diagram of the disclosed a kind of information interaction of fourth embodiment of the invention, between acquiring unit 43 and file generating unit 44, also comprise a decrypting device 47.
Decrypting device 47, be used for to acquiring unit 43 obtain to the encryption web page interlinkage of source blog articles be decrypted.
Owing to may have the situation of encryption in the web page interlinkage of the source blog articles that acquiring unit 43 gets access to, so between acquiring unit 43 and file generating unit 44, add a decrypting device 47, the web page interlinkage of encrypting is decrypted, and then carries out file generating unit 44.
In the embodiment of the system of a kind of information interaction disclosed by the invention, on the basis of accompanying drawing 4, added form after the correlation unit as accompanying drawing 5, the new system that accompanying drawing 6 and accompanying drawing 7 are shown, but the present invention is not limited to this.Wherein, at accompanying drawing 5, also can add the correlation unit in each new system between accompanying drawing 6 and the accompanying drawing 7 mutually, the function basically identical of the unit of each interpolation repeats no more here.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.