Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of social interaction method and relevant device, can effectively prevent strange user from adding comment to picture, that avoids causing comment spreads unchecked propagation.Below be described in detail respectively.
In order to better understand a kind of social interaction method and relevant device disclosed in the embodiment of the present invention, first the social networks framework that the embodiment of the present invention is suitable for is described below.Refer to Fig. 1, Fig. 1 is a kind of social networks framework schematic diagram disclosed in the embodiment of the present invention.In the social networks framework shown in Fig. 1, can comprise service equipment and the social client of multiple online picture, wherein, the social client of each online picture can be communicated to connect by the Internet and service equipment.In the social networks framework shown in Fig. 1, the social client of picture may operate in various terminal equipment, such as, the social client of picture may operate in cell phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA), mobile internet device (Mobile Internet Device, etc. MID), in terminal equipment, the embodiment of the present invention is not construed as limiting.By implementing the social networks framework shown in Fig. 1, can effectively prevent strange user from adding comment to picture, thus can avoid causing comment spread unchecked propagation.
Based on the social networks framework shown in Fig. 1, a kind of social interaction method that the embodiment of the invention discloses.Refer to Fig. 2, Fig. 2 is the schematic flow sheet of a kind of social interaction method disclosed in the embodiment of the present invention.As shown in Figure 2, this social interaction method can comprise the following steps.
S201, service equipment obtain the comment instruction for arbitrary issue picture that the social client of arbitrary online picture sends, and wherein, above-mentioned issue picture is pushed to the social client of picture of particular range in advance by service equipment; Above-mentioned comment instruction comprises mark, the comment original position and comment text of above-mentioned issue picture.
In the embodiment of the present invention, the social client of picture can detect comment user pushes arbitrary issue picture of coming comment enabled instruction for service equipment, such as, the social client of picture can detect comment user and push for service equipment the comment enabled instruction that arbitrary issue picture of coming carries out picture click input, or, the social client of picture can detect comment user carries out clicking input comment enabled instruction for the review button that arbitrary issue picture that service equipment propelling movement is come associates, correspondingly, the social client of picture can respond comment enabled instruction, export comment text frame, further, the social client of picture and can be packaged into the mark of above-mentioned issue picture, comment original position comment instruction by comment text frame input comment text and sends to service equipment.
In the embodiment of the present invention, when the social client of picture detect comment user for service equipment pushes arbitrary issue picture of coming carry out picture click the comment enabled instruction of input time, above-mentioned comment original position can be the picture click location of issue picture; And when the social client of picture detects that the review button of arbitrary issue picture association that comment user comes for service equipment propelling movement carries out the comment enabled instruction clicking input, above-mentioned comment original position can be the comment original position of the social client acquiescence of picture, or, can be the comment original position of the social client Random assignment of picture.In actual applications, above-mentioned comment original position can adopt the pixel coordinate relative to issuing the picture upper left corner to represent usually.
In the embodiment of the present invention, above-mentioned comment instruction can also comprise the comment user account of the social client of above-mentioned picture, and wherein, above-mentioned comment user account refers to the social account of comment user from login service equipment the social client of picture.
In the embodiment of the present invention, the social client of picture of above-mentioned particular range can comprise the social client of all online pictures, also can comprise the social client of the online picture of part, can also comprise the social client of the picture being positioned at a certain appointed area, the embodiment of the present invention is not construed as limiting.Wherein, the social client of above-mentioned arbitrary online picture can belong to the social client of any one picture of above-mentioned particular range.
S202, service equipment judge whether the comment user account of the social client of above-mentioned picture belongs to the concern account of the issue user account belonging to above-mentioned issue picture, if so, above-mentioned comment text is superimposed to above-mentioned issue picture to obtain comment picture according to above-mentioned comment original position by service equipment.
In actual applications, when service equipment detects that some user accounts operate the concern of targeted customer's account, service equipment can record the concern relation between this user account and targeted customer's account, now, service equipment can think that this user account belongs to the concern account of targeted customer's account, in other words, this user account and targeted customer's account belong to a customer group.Correspondingly, in above-mentioned steps S202, service equipment can judge whether the social comment user account of client of above-mentioned picture and the issue user account belonging to above-mentioned issue picture exist concern relation, if there is concern relation, then can determine that the comment user account of the social client of above-mentioned picture belongs to the concern account of the issue user account belonging to above-mentioned issue picture, in other words, can determine that the social comment user account of client of above-mentioned picture and the issue user account belonging to above-mentioned issue picture belong to a customer group, otherwise, can determine that the comment user account of the social client of above-mentioned picture does not belong to the concern account of the issue user account belonging to above-mentioned issue picture, in other words, that can determine the social comment user account of client of above-mentioned picture and the issue user account belonging to above-mentioned issue picture does not belong to a customer group.
In one embodiment, after service equipment judges that the comment user account of the social client of above-mentioned picture belongs to the concern account of the issue user account belonging to above-mentioned issue picture, can also judge whether above-mentioned comment text comprises the illegal keyword (as relating to Huang, Concern Mafia keyword) in default illegal set of keywords further, if do not comprised, what service equipment execution was above-mentioned is superimposed to above-mentioned issue picture to obtain the step of comment picture according to above-mentioned comment original position by above-mentioned comment text.
S203, service equipment are to the picture social client push comment picture of particular range.
In the embodiment of the present invention, issue picture corresponding for the comment picture pushed before service equipment can be updated to described comment picture after receiving the comment picture of service equipment propelling movement by the social client of picture.
In the method described by Fig. 2, when service equipment judges that the comment user account of the social client of picture belongs to the concern account of the issue user account issued belonging to picture, the comment user that the social client of picture is described is relation chain user with the issue user issuing picture, in other words, now the comment user of the social client of picture is not strange user for issuing the issue user of picture, further, comment instruction comment text can be added to issue picture to obtain comment picture and to be pushed to the social client of all online pictures according to comment original position by service equipment.Visible, by implementing the method described by Fig. 2, can effectively prevent strange user from adding comment to picture, thus can avoid causing comment spread unchecked propagation.
Based on the social networks framework shown in Fig. 1, a kind of social interaction method that the embodiment of the invention discloses.Refer to Fig. 3, Fig. 3 is the schematic flow sheet of a kind of social interaction method disclosed in the embodiment of the present invention.As shown in Figure 3, this social interaction method can comprise the following steps.
S301, service equipment obtain the comment instruction for arbitrary issue picture that the social client of arbitrary online picture sends, and wherein, above-mentioned issue picture is pushed to the social client of all online pictures in advance by service equipment; Above-mentioned comment instruction comprises mark, the comment original position and comment text of above-mentioned issue picture.
In the embodiment of the present invention, the mode that the social client of picture sends above-mentioned comment instruction to service equipment is described in preceding embodiment, repeats no more here.
Whether what S302, service equipment judged the social comment user account of client of above-mentioned picture and the issue user account belonging to above-mentioned issue picture belongs to a customer group, if not, and process ends; If so, step S303 is performed.
In the embodiment of the present invention, when service equipment judges that the social comment user account of client of above-mentioned picture and the issue user account belonging to above-mentioned issue picture belong to a customer group, illustrate that the social comment user of client of above-mentioned picture and the issue user of above-mentioned issue picture are relation chain users, in other words, now the comment user of the social client of above-mentioned picture is not strange user for the issue user of above-mentioned issue picture; Otherwise, if when service equipment judges that the social comment user account of client of above-mentioned picture and the issue user account belonging to above-mentioned issue picture do not belong to a customer group, illustrate that the social comment user of client of above-mentioned picture and the issue user of above-mentioned issue picture are not relation chain users, in other words, now the comment user of the social client of above-mentioned picture is strange user for the issue user of above-mentioned issue picture.
In one embodiment, after service equipment judges that the social comment user account of client of above-mentioned picture and the issue user account belonging to above-mentioned issue picture belong to a customer group, can also judge whether above-mentioned comment text comprises the illegal keyword (as relating to Huang, Concern Mafia keyword) in default illegal set of keywords further, if do not comprised, perform step S303.
S303, service equipment judge whether above-mentioned comment user account and the cohesion issued between user account exceed predetermined threshold value, if not, and process ends; If so, step S304 is performed.
In the embodiment of the present invention, the frequency of interaction that above-mentioned comment user account is directly proportional between above-mentioned comment user account and issue user account to the cohesion issued between user account.In other words, the frequency of interaction between above-mentioned comment user account and issue user account is larger, and the cohesion between above-mentioned comment user account and issue user account is larger; Otherwise the frequency of interaction between above-mentioned comment user account and issue user account is less, the cohesion between above-mentioned comment user account and issue user account is less.In the embodiment of the present invention, above-mentioned comment user account and issue and comprise that action (as point is praised) is mutual, information (as text, virtual gift) is mutual alternately between user account, the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, by implementing above-mentioned steps 303, the user that can prevent cohesion lower to deeper degree adds issue picture and comments on, thus can avoid to deeper degree causing comment spread unchecked propagation.
Above-mentioned comment text is superimposed to above-mentioned issue picture to obtain comment picture according to above-mentioned comment original position by S304, service equipment.
In the embodiment of the present invention, above-mentioned issue picture can comprise picture viewing area and comment show area.Refer to Fig. 4, Fig. 4 is a kind of interface schematic diagram issuing picture disclosed in the embodiment of the present invention.As shown in Figure 4, above-mentioned issue picture can comprise picture viewing area and comment show area, and further, above-mentioned issue picture can also comprise user ID (as head portrait) viewing area and button area.Wherein, above-mentioned picture viewing area is mainly used in display and issues picture and comment text, and above-mentioned comment show area is mainly used in showing comment style, wherein, the comment style shown of above-mentioned comment show area, except comprising the comment text that shows in above-mentioned picture viewing area, can also comprise the comment text of history display in above-mentioned picture viewing area; And above-mentioned user ID viewing area is mainly used in the mark of the comment user of the predetermined number (as 16) showing up-to-date interpolation comment text, and above-mentioned button area can comprise and to make point, paste an individual bar (i.e. review button), chats and other buttons (as hiding comment text, pay close attention to, share and the button such as report).
See also Fig. 5, Fig. 5 is a kind of interface schematic diagram commenting on picture disclosed in the embodiment of the present invention.Wherein, the comment picture shown in Fig. 5 is the comment picture being performed above-mentioned steps S304 acquisition by service equipment based on the issue picture shown in Fig. 4.Wherein, above-mentioned comment text to be superimposed to above-mentioned issue picture according to above-mentioned comment original position and can to comprise to obtain comment picture by service equipment:
Comment text, on above-mentioned picture viewing area, to be superimposed to according to above-mentioned comment original position on the picture shown in above-mentioned picture viewing area by service equipment; And above-mentioned comment text is added into above-mentioned comment show area by service equipment, to obtain comment picture.
For example, as shown in Figure 5, service equipment can on above-mentioned picture viewing area, to be superimposed to by comment text " my large dotey " on the picture shown in above-mentioned picture viewing area according to above-mentioned comment original position; And above-mentioned comment text " my large dotey " can be added into above-mentioned comment show area, to obtain comment picture by service equipment.
For example, as shown in Figure 5, service equipment can on above-mentioned picture viewing area, " to be sprouted well " by comment text on the picture being superimposed to and showing in above-mentioned picture viewing area according to above-mentioned comment original position; And above-mentioned comment text " can be sprouted well " and be added into above-mentioned comment show area, to obtain comment picture by service equipment.
In the embodiment of the present invention, the target comment text in above-mentioned picture viewing area can also carry out hiding process by service equipment, and wherein, the superposition duration of target comment text exceedes preset duration.
In one embodiment, above-mentioned comment text, on above-mentioned picture viewing area, to be superimposed to according to above-mentioned comment original position on the picture shown in above-mentioned picture viewing area and can to comprise by service equipment:
Service equipment with above-mentioned cohesion for foundation, from preset cohesion and textcolor mapping relations, determine the target text color that above-mentioned cohesion is corresponding;
The color of above-mentioned comment text is adjusted to target text color by service equipment;
The comment text being adjusted to above-mentioned target text color, on above-mentioned picture viewing area, to be superimposed on the picture shown in above-mentioned picture viewing area according to above-mentioned comment original position by service equipment.
Wherein, by implementing above-mentioned execution mode, significantly can promote comment text and being superimposed upon the visual effect issued on picture, reducing visual fatigue.
In another embodiment, above-mentioned comment text, on above-mentioned picture viewing area, to be superimposed to according to above-mentioned comment original position on the picture shown in above-mentioned picture viewing area and can to comprise by service equipment:
Service equipment with above-mentioned cohesion for foundation, from preset cohesion and background color mapping relations, determine the target background color that above-mentioned cohesion is corresponding;
Above-mentioned comment text is added into text box by service equipment, obtains comment text frame;
The background color of above-mentioned comment text frame is adjusted to above-mentioned target background color by service equipment;
The comment text frame being adjusted to above-mentioned target background color, on above-mentioned picture viewing area, to be superimposed on the picture shown in above-mentioned picture viewing area according to above-mentioned comment original position by service equipment.
Wherein, by implementing above-mentioned execution mode, significantly can promote comment text and being superimposed upon the visual effect issued on picture, reducing visual fatigue.
S305, service equipment are to all online pictures social client push comment picture.
In the method described by Fig. 3, when service equipment judges that the comment user account of the social client of picture belongs to a customer group with the issue user account issued belonging to picture, the comment user that the social client of picture is described is relation chain user with the issue user issuing picture, in other words, now the comment user of the social client of picture is not strange user for issuing the issue user of picture, further, after service equipment judges that above-mentioned comment user account and the cohesion issued between user account exceed predetermined threshold value, according to comment original position, comment instruction comment text can be added to issue picture to obtain comment picture and to be pushed to the social client of all online pictures.Visible, by implementing the method described by Fig. 2, not only can effectively prevent strange user from adding comment to picture, the relation chain user that cohesion can also be prevented lower adds comment to picture, thus can avoid causing comment spread unchecked propagation.
Based on the social networks framework shown in Fig. 1, a kind of service equipment that the embodiment of the invention discloses, for performing above-mentioned social interaction method.Refer to Fig. 6, Fig. 6 is the structural representation of a kind of service equipment disclosed in the embodiment of the present invention.As shown in Figure 6, this service equipment 600 can comprise:
Acquiring unit 601, for obtaining the comment instruction for arbitrary issue picture that the social client of arbitrary online picture sends, above-mentioned issue picture is pushed to the social client of picture of particular range in advance by service equipment 600; Above-mentioned comment instruction comprises mark, the comment original position and comment text of above-mentioned issue picture;
First judging unit 602, for judging whether the comment user account of the social client of above-mentioned picture belongs to the concern account of the issue user account belonging to above-mentioned issue picture;
Superpositing unit 603, for when the judged result of the first judging unit 602 is for being, is superimposed to above-mentioned issue picture to obtain comment picture according to above-mentioned comment original position by above-mentioned comment text;
Push unit 604, for the above-mentioned comment picture of the social client push of picture to particular range.
In one embodiment, the service equipment 600 shown in Fig. 6 can also comprise:
Second judging unit 605, for when the judged result of the first judging unit 602 is for being, judge whether the cohesion between above-mentioned comment user account and above-mentioned issue user account exceedes predetermined threshold value, if exceeded, that triggers superpositing unit 603 execution is superimposed to above-mentioned issue picture to obtain the step of comment picture according to above-mentioned comment original position by above-mentioned comment text.
In the embodiment of the present invention, the cohesion between above-mentioned comment user account to above-mentioned issue user account is directly proportional the frequency of interaction between above-mentioned comment user account and above-mentioned issue user account.
In the embodiment of the present invention, the frequency of interaction that above-mentioned comment user account is directly proportional between above-mentioned comment user account and issue user account to the cohesion issued between user account.In other words, the frequency of interaction between above-mentioned comment user account and issue user account is larger, and the cohesion between above-mentioned comment user account and issue user account is larger; Otherwise the frequency of interaction between above-mentioned comment user account and issue user account is less, the cohesion between above-mentioned comment user account and issue user account is less.In the embodiment of the present invention, above-mentioned comment user account and issue and comprise that action (as point is praised) is mutual, information (as text, virtual gift) is mutual alternately between user account, the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, above-mentioned issue picture can comprise picture viewing area and comment show area, and further, above-mentioned issue picture can also comprise user ID (as head portrait) viewing area and button area.Wherein, above-mentioned picture viewing area is mainly used in display and issues picture and comment text, and above-mentioned comment show area is mainly used in showing comment style, wherein, the comment style shown of above-mentioned comment show area, except comprising the comment text that shows in above-mentioned picture viewing area, can also comprise the comment text of history display in above-mentioned picture viewing area; And above-mentioned user ID viewing area is mainly used in the mark of the comment user of the predetermined number (as 16) showing up-to-date interpolation comment text, and above-mentioned button area can comprise and to make point, paste an individual bar (i.e. review button), chats and other buttons (as hiding comment text, pay close attention to, share and the button such as report).Correspondingly, above-mentioned comment text, specifically on above-mentioned picture viewing area, to be superimposed to according to above-mentioned comment original position on the picture shown in above-mentioned picture viewing area by superpositing unit 603; And, above-mentioned comment text is added into above-mentioned comment show area, to obtain comment picture.
In the embodiment of the present invention, superpositing unit 603 also hides process for being carried out by the target comment text in above-mentioned picture viewing area, and wherein, the superposition duration of target comment text exceedes preset duration.
In one embodiment, superpositing unit 603 is on above-mentioned picture viewing area, and according to above-mentioned comment original position, the mode be superimposed to by above-mentioned comment text on the picture shown in above-mentioned picture viewing area is specially:
Superpositing unit 603 with above-mentioned cohesion for foundation, from preset cohesion and textcolor mapping relations, determine the target text color that above-mentioned cohesion is corresponding;
The color of above-mentioned comment text is adjusted to above-mentioned target text color by superpositing unit 603;
The comment text being adjusted to above-mentioned target text color, on above-mentioned picture viewing area, to be superimposed on the picture shown in above-mentioned picture viewing area according to above-mentioned comment original position by superpositing unit 603.
Wherein, by implementing above-mentioned execution mode, significantly can promote comment text and being superimposed upon the visual effect issued on picture, reducing visual fatigue.
In another embodiment, superpositing unit 603 is on above-mentioned picture viewing area, and according to above-mentioned comment original position, the mode be superimposed to by above-mentioned comment text on the picture shown in above-mentioned picture viewing area is specially:
Superpositing unit 603 with above-mentioned cohesion for foundation, from preset cohesion and background color mapping relations, determine the target background color that above-mentioned cohesion is corresponding;
Above-mentioned comment text is added into text box by superpositing unit 603, obtains comment text frame;
The background color of above-mentioned comment text frame is adjusted to above-mentioned target background color by superpositing unit 603;
The comment text frame being adjusted to above-mentioned target background color, on above-mentioned picture viewing area, to be superimposed on the picture shown in above-mentioned picture viewing area according to above-mentioned comment original position by superpositing unit 603.
Wherein, by implementing above-mentioned execution mode, significantly can promote comment text and being superimposed upon the visual effect issued on picture, reducing visual fatigue.
In one embodiment, first judging unit 602 can also judge whether above-mentioned comment text does not comprise the illegal keyword (as relating to Huang, Concern Mafia keyword) in default illegal set of keywords after judging that the comment user account of the social client of above-mentioned picture belongs to the concern account of the issue user account belonging to above-mentioned issue picture further; Correspondingly, superpositing unit 603, for judging that at the first judging unit 602 the comment user account of the social client of above-mentioned picture belongs to the concern account of the issue user account belonging to above-mentioned issue picture, and when judging the illegal keyword that above-mentioned comment text do not comprise in default illegal set of keywords, according to above-mentioned comment original position, above-mentioned comment text is superimposed to above-mentioned issue picture to obtain comment picture.
Visible, by implementing the service equipment described by Fig. 6, not only can effectively prevent strange user from adding comment to picture, the relation chain user that cohesion can also be prevented lower adds comment to picture, thus can avoid causing comment spread unchecked propagation.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium comprises read-only memory (Read-Only Memory, ROM), random asccess memory (Random Access Memory, RAM), programmable read only memory (ProgrammableRead-only Memory, PROM), Erasable Programmable Read Only Memory EPROM (ErasableProgrammable Read Only Memory, EPROM), disposable programmable read-only memory (One-time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, or other disk storages CD-ROM), magnetic disc store, magnetic tape storage, or can be used in any other medium computer-readable carrying or store data.
Above a kind of social interaction method disclosed in the embodiment of the present invention and relevant device are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.