CN110377857A - A kind of display information processing method, device, electronic equipment and storage medium - Google Patents
A kind of display information processing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110377857A CN110377857A CN201910556063.8A CN201910556063A CN110377857A CN 110377857 A CN110377857 A CN 110377857A CN 201910556063 A CN201910556063 A CN 201910556063A CN 110377857 A CN110377857 A CN 110377857A
- Authority
- CN
- China
- Prior art keywords
- user
- information
- media information
- media
- relationship
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Abstract
The disclosure is related to multimedia technology processing technology field about a kind of display information processing method, device, electronic equipment and storage medium, not accurate enough with the media information quantity at least solving the problems, such as to count in the related technology and be shown in author individual's page.In this method, by obtaining the relationship type between access user and author, it is determined as the media information total quantity that access user shows.In this way, each access user is when checking author individual's page, it can be according to the relationship type between each access user and author, the media information quantity for enabling each access user to be shown in author individual's page is consistent with the total quantity that it is checked, so that counting and the media information quantity for being shown in author individual's page is more accurate, the experience of user is improved.
Description
Technical field
This disclosure relates to technical field of information processing more particularly to a kind of display information processing method, device, electronic equipment
And storage medium.
Background technique
The contents such as example short-sighted frequency of media information, short text can make publication (such as advertisement) with ICP,
It can be issued by common user.There is author to produce and is issuing app (Application, application program), the net of media information
Pages etc. are from media bearer, it usually needs the quantity for the media information that author issues is shown to access user.
In the related technology, it will usually which when appearance access user checks author individual's page, the media that author individual's page is shown are believed
Breath total quantity and the total quantity that it can be checked are inconsistent.So in the related technology, counting and being shown in the matchmaker of author individual's page
Body information content is not accurate enough.
Summary of the invention
The disclosure provides a kind of display information processing method, device, electronic equipment and storage medium, at least to solve correlation
The not accurate enough problem of media information quantity of author individual's page is counted and is shown in technology.The technical solution of the disclosure is such as
Under:
According to the first aspect of the embodiments of the present disclosure, a kind of display information processing method is provided, comprising:
Receive the access request of the personal page of the access second user of the first user transmission;
Based on the access request, according to the relationship type between the user of record, determine first user with it is described
Relationship type between second user;
The media information amount information browsed according to the permission of each user pre-saved determines the matchmaker of second user publication
The media information amount for allowing to be browsed by the first user in body information;Wherein, the media information that the permission of each user is browsed
Include: in amount information in relationship type between any two user and any two user user allow by another
The corresponding relationship of the media information amount of user's access;
The determining media information amount is sent to first user.
According to the second aspect of an embodiment of the present disclosure, a kind of display information processor is provided, comprising:
First receiving unit is configured as executing the access for the personal page for receiving the access second user that the first user sends
Request;
First determination unit is configured as executing based on the access request, according to the relation object between the user of record
Type determines the relationship type between first user and the second user;
Second determination unit is configured as executing the media information amount browsed according to the permission of each user pre-saved
Information determines the media information amount for allowing to be browsed by the first user in the media information of second user publication;Wherein, each use
It include: the relationship type and any two use between any two user in the media information amount information that the permission at family is browsed
The corresponding relationship for the media information amount that a user allows to be accessed by another user in family;
Transmission unit, is configured as executing the determining media information amount is sent to first user.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to described instruction is executed, to realize a kind of display information processing method;
According to a fourth aspect of embodiments of the present disclosure, a kind of storage medium is provided, when the instruction in the storage medium by
When the processor of electronic equipment executes, so that electronic equipment is able to carry out a kind of display information processing method;
According to a fifth aspect of the embodiments of the present disclosure, a kind of computer program product, including at least one processor are provided;
And the memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory
The instruction that a processor executes, described instruction is executed by least one described processor, so that at least one described processor energy
Enough execute the display information processing method that the embodiment of the present disclosure provides.
The technical scheme provided by this disclosed embodiment is at least brought following the utility model has the advantages that by obtaining access user and making
Relationship type between person is determined as the media information total quantity that access user shows.In this way, respectively access user checks work
It, can be according to the relationship type between each access user and author, so that respectively access user is shown in author when person individual's page
The media information quantity of people's page is consistent with the total quantity that it can be checked, so that counting and being shown in the matchmaker of author individual's page
Body information content is more accurate, improves the experience of user.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of application scenarios schematic diagram for showing information processing method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow diagram for showing information processing method shown according to an exemplary embodiment.
Fig. 3 is a kind of schematic diagram of display interface shown according to an exemplary embodiment.
Fig. 4 is a kind of flow diagram of determining relationship type shown according to an exemplary embodiment.
Fig. 5 is a kind of determining media information amount for allowing to be browsed by the first user shown according to an exemplary embodiment
Flow diagram.
Fig. 6 is a kind of process signal searched database table and obtain corresponding relationship shown according to an exemplary embodiment
Figure.
Fig. 7 is a kind of flow diagram for updating privacy type shown according to an exemplary embodiment.
Fig. 8 is a kind of flow diagram for deleting user record shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of display information processor shown according to an exemplary embodiment.
Figure 10 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs
The technical solution opened in embodiment is clearly and completely described.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase
Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects
The example of consistent device and method.
The technical solution of embodiment of the present disclosure offer is provided with reference to the accompanying drawing.
Currently, in media information shared platform, when the personal page of author will be accessed by accessing user, the works of display
Quantity and the works quantity that can be watched are inconsistent.It is explained by taking short-sighted frequency as an example, the meeting in the app of short Video Applications
Works number is shown in the personal homepage of author.But some privacy policies, the privacy may be arranged to certain short-sighted frequencies in author
Strategy is such as only author is visible, only author and good friend are visible, only author and bean vermicelli are visible etc..In addition, for network information peace
Entirely, the content of short-sighted frequency can just release after needing the audit by auditing system.The auditing result of short-sighted frequency is if discomfort
Disclosure is closed, then short Video Applications backstage can directly shield the short-sighted frequency of author's publication.
Therefore in the related art, the short number of videos of display is the quantity of all short-sighted frequencies that author makes and issues,
The quantity of the short number of videos and display that cause reader even author oneself to see is not consistent.As a result, by means of computer at
When reason resource and the media information quantity of network resource transmission do not conform to the actual conditions, the media information quantity of display is nonsensical
, cause to calculate computing resource spent by the media information quantity and Internet resources are wasted.
In view of this, the disclosure is more accurate for the media information quantity for showing each user, a kind of display is provided
Information processing method.In this method, the short number of videos of display can be determined according to relationship between author for access user.
For example, author has issued 5 short-sighted frequencies altogether, wherein having the privacy authority of a short-sighted frequency to be set as only author by author can
See, in this way, the short number of videos of display is 4 when the good friend of author accesses the personal page of author.In this way, making pair
The short number of videos that each access user shows is consistent with the short number of videos that can be watched, so that it is short-sighted to improve display
The accuracy of frequency amount.
It should be noted that the method that the embodiment of the present disclosure provides, is applicable not only to short video information, is also suitable other classes
The media information of type, such as the webpage information that combines of long video, song, article, text information and picture and text etc. it is any for
The media information of user's browsing.
In addition, the display information processing method that the disclosure provides, is suitable for any social platform.For example, short video sharing
Platform, content of text sharing platform, personal page even in game application sharing platform be applicable in.
For ease of understanding, technical solution provided by the present disclosure is described further with reference to the accompanying drawing.
As shown in Figure 1, for the application scenarios schematic diagram for showing information processing method a kind of in the embodiment of the present disclosure.The scene
In include the terminal device 101 of user 100, the terminal device 103 of user 102, user 104 terminal device 105 and server
106。
Wherein, user 102 is the good friend of user 100, and user 104 is the bean vermicelli of user 101.User 100 has issued 5 altogether
Media information, respectively a, b, c, d, e;And wherein media information a by user 100 is set as only author and good friend as it can be seen that media
Information c is that only author is visible by user setting;And media information b, d, e are then that owner is visible.
User 102 is accessing a of user 100 by 103 login service device 106 of terminal device, and by server 106
When people's page, server 106 can determine whether that the relationship type between user 102 and user 100 that terminal device 103 logs in is good friend,
It is then shown on terminal device 103 and media information quantity that user 102 can browse through is 4 (user 102 is unable to browsing media information
c)。
User 104 is accessing a of user 100 by 105 login service device 106 of terminal device, and by server 106
When people's page, server 106 can determine whether that the relationship type between user 104 and user 100 that terminal device 105 logs in is bean vermicelli,
It is then shown on terminal device 105 and media information quantity that user 104 can browse through is 3 (user 104 is unable to browsing media information
a、c)。
User 100 is accessing a of user 100 by 101 login service device 106 of terminal device, and by server 106
When people's page, server 106 can determine whether that the relationship type between user 100 and user 100 that terminal device 101 logs in is same
User then shows that the media information quantity that user 100 can browse through is 5 on terminal device 101.
As described above, the relationship type according to each user and accessed user is realized, so that each user is aobvious
The media information quantity shown is consistent with the media information quantity that can browse through.
In one embodiment, terminal device 101, terminal device 103, terminal device 105 can be mobile phone, plate electricity
Brain, personal computer, virtual machine or terminal device of simulator simulation etc..
In one embodiment, logical between terminal device 101, terminal device 103, terminal device 105 and server 106
Letter is wireless communication or ethernet communication etc..
Fig. 2 is a kind of flow chart for showing information processing method shown according to an exemplary embodiment, as shown in Fig. 2,
Display information processing method can be applied in server as shown in Figure 1, include the following steps.
In the step s 21, the access request of the personal page for the access second user that the first user sends is received.
Wherein, the first user here is the user for accessing other users individual page;Second user is to be visited by other users
Ask the user of the personal page of oneself.
In step S22, it is based on the access request, according to the relationship type between the user of record, determines described the
Relationship type between one user and the second user.
Wherein, in one embodiment, relationship type can include: the first user and second user are the same user, the
One user is the friend relation of second user, the first user is second user bean vermicelli relationship, the first user are second user
Tourist's relationship etc..Relationship type can be depending on the development of network and concrete application, and the disclosure is not construed as limiting this.And for such as
What determines relationship type of first user between second user, can be described in detail below, this will not be repeated here.
It in one embodiment, may include that the user identifier of the first user and the user of second user mark in access request
Know, server is after receiving access request, according to the user identifier of the first user in access request and second user
User identifier, to determine the relationship type between the first user and the second user.
In step S23, the media information amount information browsed according to the permission of each user pre-saved determines second
The media information amount for allowing to be browsed by the first user in the media information of user's publication;Wherein, the permission of each user is clear
It include: a user in relationship type and any two user between any two user in the media information amount information look at
The corresponding relationship for the media information amount for allowing to be accessed by another user.
In step s 24, the determining media information amount is sent to first user.
Wherein, determining media information amount is shown on the personal page for the second user that the first user is browsed.For example,
Second user publication has 4 media informations, and the first user can only browse 3 media informations of second user publication, such as Fig. 3 institute
Show, is 3 for the media information quantity that show of terminal and the media information quantity that can watch of the first user.
In this way, according to the relationship type between access user and accessed user, so that being shown to each access user
Short number of videos it is all consistent with the short number of videos that can be watched, to improve the accuracy for showing short number of videos.
The above-mentioned relationship type that simply describes includes the first user and second user is the same user, the first user is
The friend relation of second user, the bean vermicelli relationship that the first user is second user, tourist's relationship that the first user is second user
Deng four kinds of relationship types, below to how determining that the relationship type between two users is described in detail.
In the embodiments of the present disclosure, when the first user accesses the personal page of second user, one can be sent to server
Access request;Server determines the relationship type between the first user and second user according to access request, as shown in figure 4,
It is the flow chart for determining relationship type, is included the following steps.
In step S41, the access request of the personal page for the access second user that the first user sends is received;Wherein, it visits
Ask that request contains the user identifier of the first user and the user identifier of second user.
In step S42, whether the user identifier of the user identifier and second user that determine the first user is identical;If so,
Then follow the steps S43;If it is not, thening follow the steps S44.
In step S43, determine that the relationship type between the first user and second user is the same user.
In step S44, determine the first user whether in the buddy list of second user;If so, thening follow the steps
S45;If it is not, thening follow the steps S46.
In step S45, determine that the relationship type between the first user and second user is friend relation.
In step S46, determine the first user whether in the bean vermicelli list of second user;If so, thening follow the steps
S47;If it is not, thening follow the steps S48.
In step S47, determine that the relationship type between the first user and second user is bean vermicelli relationship.
In step S48, determine that the relationship type between the first user and second user is tourist's relationship.
It should be noted that in the above-described embodiments, being determined whether between step S42- step S47 for same user, being
It is no be friend relation and whether be bean vermicelli relationship successive execution sequence it is unrestricted.
In the embodiments of the present disclosure, second user can maintain two lists, respectively buddy list and bean vermicelli list.Its
In, the user in buddy list can be the user paid close attention to mutually with second user;User in bean vermicelli list can be to have paid close attention to
Two users but second user are not concerned with the user of the user.
In the embodiments of the present disclosure, tourist refers to the user for being not concerned with second user.
In this way, it is determined that the relationship type between access user and accessed user, so that it may according to determining relation object
Type is to access the media information amount for the second user that user shows that access user can browse through.
In the embodiments of the present disclosure, after the relationship type of the first user and second user has been determined, it is also necessary to according to true
The corresponding relationship of fixed relationship type and the first user and second user, determining allows in the media information of second user publication
The media information amount browsed by the first user.Wherein, the corresponding relationship of the first user and second user pre-saves in the buffer;
It and include following information in the corresponding relationship of first user and the second user: the media letter of the second user publication
Breath total quantity, the second user publication media information in be reviewed system mask media information the first statistic, with
And corresponding second statistic of relevant to second user kinds of relationships type, wherein every class relationship type corresponding
Two statistics indicate the statistics for the media information that the access user of such relationship type of the permission of the second user configuration browses
Amount.The information content for including in corresponding relationship for ease of understanding is here illustrated this by table 1, needs to illustrate
Be table 1 be given for example only illustrate the embodiment of the present disclosure be not used to limit the embodiment of the present disclosure.
Table 1, mapping table
Wherein, the media information amount of user publication is media information total quantity;It is reviewed the media information of system mask
Amount is the first statistic;Relationship type is that the second statistic of the same user is the only visible media information amount of author;Relationship
Type is that the second statistic of good friend is only author and the visible media information amount of good friend;Relationship type is the second statistics of bean vermicelli
Amount is only author and the visible media information amount of bean vermicelli;Relationship type is that the second statistic of tourist is 0.
In the embodiments of the present disclosure, the corresponding relationship of any two user is store in caching.
After obtaining the corresponding relationship between the first user and second user, how to be believed according to the corresponding relationship of acquisition
Breath determines the media information amount for allowing to be browsed by the first user in the media information of second user publication, as shown in figure 5, step
S23 includes the following steps.
In step S231, described is searched in first user of caching and the corresponding relationship of the second user
Media information total quantity, the first statistic of the second user of two users, and it is relevant to the second user all kinds of
Corresponding second statistic of relationship type.
In step S232, according to the relationship type of first user and the second user, and look into the buffer
The media information total quantity of the second user found, the first statistic of the second user, with the second user phase
Corresponding second statistic of the kinds of relationships type of pass, determining in the media information of the second user publication allows described first
The media information amount of user's browsing.
In this way, the information of needs is pre-saved in the buffer, can directly be obtained from caching when in use, at raising
Manage efficiency.
And in the embodiment of the present application, it is finally obtained that first user is allowed to browse for different relationship types
Media information amount it is also different, therefore step S232 may include following steps.
In step S2321, if the relationship type of first user and the second user is the same user, really
The media information total quantity of the fixed second user subtracts the first statistic of the second user, obtained remaining media information
It measures as the media information amount for allowing first user to browse.
In step S2322, if the relationship type of first user and the second user is friend relation, it is determined that
The media information total quantity of the second user subtracts the first specify information, and obtained remaining media information amount is as described in permission
The media information amount of first user browsing.
Wherein, first specify information includes the first statistic of the second user and relationship type is the same use
Corresponding second statistic in family.
In step S2323, if the relationship type of first user and the second user is bean vermicelli relationship, it is determined that
The media information total quantity of the second user subtracts the second specify information, and obtained remaining media information amount is as described in permission
The media information amount of first user browsing.
Wherein, second specify information include the first statistic of the second user, relationship type be the same use
Corresponding second statistic in family and relationship type are corresponding second statistic of friend relation.
In step S2324, if the relationship type of first user and the second user is tourist's relationship, it is determined that
The media information total quantity of the second user subtracts third specify information, and obtained remaining media information amount is as described in permission
The media information amount of first user browsing.
Wherein, the third specify information include the first statistic of the second user, relationship type be the same use
Corresponding second statistic in family, relationship type are corresponding second statistic of friend relation and relationship type is that bean vermicelli relationship is corresponding
The second statistic.
As shown in table 1, if user c is the good friend of user a, the media information amount that user c can be shown are as follows: user a's
Media information total quantity 7 subtracts the first statistic 1, then subtracts corresponding second statistic 2 of the same user, obtains final result
It is 4.Therefore, the media information amount that user c is shown is 4.
In this way, the media information amount that the user of different relationship types can show is determined, so that the use of kinds of relationships type
The media information amount that family is shown is accurate.
It is complete above description is the information between the first user stored in caching and second user, namely caches
In be stored with media information total quantity, the second user hair of above-mentioned second user publication between the first user and second user
Be reviewed in the media information of cloth the media information of system mask the first statistic and all kinds of passes relevant to second user
Corresponding second statistic of set type.When information is complete, directly it can determine that second user is issued according to the information in caching
Media information in allow the media information amount that is browsed by the first user.
But the information that in some cases, stores in caching is it is possible that the case where missing, such as spatial cache is not
Foot, cleaning may result in partial information loss when caching.At this moment, the corresponding pass between the first user and second user is being needed
When the information of system, required information can be searched by pre-stored database table, as shown in fig. 6, it is lookup database
Table obtains the flow chart of corresponding relationship, includes the following steps.
In step S61, if not found in the corresponding relationship of first user and the second user in the buffer
At least one of information for including information is then operated according to the information recorded in the database table and is not found
Information.
In step S62, the information not found that will acquire is stored into the caching.
It wherein, include at least one of following information for the information of lookup: the media information sum of second user publication
It is reviewed the first statistic of the media information of system mask in the media information that amount, second user are issued and is used with second
Corresponding second statistic of the relevant kinds of relationships type in family.
Below with reference to the information that database table stores, introduce how to obtain the above-mentioned information not found in the buffer:
It wherein, include user identifier, the corresponding user's publication of user identifier in every user record of the database table
Media information media information mark and the corresponding privacy type identification of the media information;Privacy type identification is used to indicate
Whether corresponding media information has the shielding strategy of auditing system setting or be used to indicate corresponding media information is matched by author
The shielding strategy set.Wherein, privacy type identification includes at least one of following information: the shielding strategy of auditing system configuration
Mark, only author it is visible shielding strategy mark, only author and good friend it is visible shielding strategy mark, only author and powder
The mark of the visible shielding strategy of silk.
For example, as shown in table 2, being database table, being stored with the user record information of each user.
The user record information of table 2, database table
User identifier | Media information mark | Privacy type identification |
User a | Media information a | The only visible shielding strategy of author |
User a | Media information c | Only author and the visible shielding strategy of good friend |
User b | Media information e | The shielding strategy of auditing system configuration |
…… | …… | …… |
Wherein:
If 1), do not find the first statistic, according to the privacy type identification, the second user publication is counted
The first statistic of the media information of the shielding strategy of system setting is reviewed in media information.
Such as: if statistics obtains the mark pair of the shielding strategy of auditing system configuration in the privacy type identification of user a
The user record answered is 3, it is determined that the first statistic of user a is 3.
If 2), do not find the second statistic, according to privacy type identification, the media of the second user publication are counted
The kinds of relationships type for including in the shielding strategy being configured by the author in information, and count the access user to kinds of relationships type
Respectively allow for the second statistic of the media information of browsing.
Such as: if desired obtaining relationship type is corresponding second statistic of friend relation, in the privacy type mark of user a
In knowledge, it is 2 that statistics, which obtains only author and the corresponding user record of mark of the visible shielding strategy of good friend, it is determined that user a
Relationship type is that corresponding second statistic of friend relation is 2.
If 3), do not find the media information total quantity, institute is obtained from the respective field in the database table
State the media information total quantity of second user publication.
Wherein, media information total quantity is stored in the media information total quantity in database table, as shown in table 3, storage
There are the user identifier of each user and the media information total quantity of user's publication.
The media information total quantity of table 3, database table
In this way, the information not stored in the buffer can be searched by database table, so that finally determining second user
It is accurate for allowing the media information amount browsed by the first user in the media information of publication.
In the embodiments of the present disclosure, the information in database table can be updated according to actual needs;Wherein, database table is updated
It is divided into two kinds of situations, point situation is changed the data in database table and is illustrated below:
Situation one: the update based on privacy type and update
If the privacy type for some video that second user issues it is updated, server can be according to second user
The privacy type of modification is updated the privacy type in record corresponding in database table, as shown in fig. 7, it is hidden to update
The flow diagram of private type, includes the following steps.
In step S71, the privacy type identification for updating the first specified media information in the database table is received
Update request;It is described to update the media information mark in request including the described first specified media information and first finger
Determine the new privacy type identification of media information.
In step S72, searched in the database table and the media information mark pair for updating and being carried in request
The original privacy type identification answered.
In step S73, the priority of more original privacy type identification and the new privacy type identification.
In one embodiment, the priority of the privacy type identification is from high to low successively are as follows: auditing system configuration
Shield the mark of strategy, the mark, only of the only visible shielding strategy of mark, only author and good friend of the visible shielding strategy of author
The mark of author and the visible shielding strategy of bean vermicelli.Media information that can be accessible with each user of accurate statistics according to priority
Amount.
In step S74, if the priority of original privacy type identification is higher than the preferential of the new privacy type identification
Grade then abandons the update request.
In step S75, if the priority of original privacy type identification is preferential lower than the new privacy type identification
Grade, then updating original privacy type identification is the new privacy type identification.
In this way, can be made in database table according to the record information updated in database table, so that the knot obtained
Fruit is more accurate;In addition, when the priority of the privacy type identification of update is lower than original privacy type identification, it can be without
It updates, in this way, the operating quantity of server can be saved in subsequent operation;For example, being needed subsequent to clothes if being updated
Caching in business device is updated, if when such as the above method, it can be without being updated to caching.
Situation two: the update based on media information and update
If second user delete its publication some video or by some video be set as it is all per capita as it can be seen that if service
Device can according to second user delete its publication some video or set all per capita as it can be seen that will count for some video
According to corresponding record deletion in the table of library, as shown in figure 8, it is the flow diagram for deleting user record, include the following steps.
In step S81, the modification information of every media information in the database table is monitored;It is taken in the modification information
Band media information identifies.
In step S82, if the modification information listened to is specify information, the change is deleted in the database table
The media information carried in more information identifies corresponding user record, and the specify information includes at least one of the following: using
In the information for indicating deletion media information, media information is changed to the visible information of owner for indicating.
In this way, unwanted information is deleted, the storage resource of server can be saved, at the same convenient for it is subsequent more
The information content for needing to count is reduced when database table counts each information.
Based on identical inventive concept, the disclosure also provides a kind of display information processor.As shown in figure 9, being this public affairs
A kind of display information processor schematic diagram of offer is provided.The device includes:
First receiving unit 901 is configured as executing the personal page for receiving the access second user that the first user sends
Access request;
First determination unit 902 is configured as executing based on the access request, according to the relationship between the user of record
Type determines the relationship type between first user and the second user;
Second determination unit 903 is configured as executing the media letter browsed according to the permission of each user pre-saved
Breath amount information determines the media information amount for allowing to be browsed by the first user in the media information of second user publication;Wherein, described
It include: the relationship type and described any two between any two user in the media information amount information that the permission of each user is browsed
The corresponding relationship for the media information amount that a user allows to be accessed by another user in a user;
Transmission unit 904, is configured as executing the determining media information amount is sent to first user.
Further, the first determination unit 902 includes:
First relationship type subelement, if being configured as executing the user identifier of first user and the second user
User identifier it is identical, it is determined that relationship type between first user and the second user is the same user;
Second relationship type subelement, if being configured as executing first user in the buddy list of the second user
In, it is determined that the relationship type between first user and the second user is friend relation;
Third relationship type subelement, if being configured as executing first user in the bean vermicelli list of the second user
In, it is determined that the relationship type between first user and the second user is bean vermicelli relationship;
4th relationship type subelement, if being configured as executing first user neither in the good friend of the second user
In list, also not in the bean vermicelli list of the second user, and the user identifier of first user and the second user
User identifier it is different, it is determined that the relationship type between first user and the second user is tourist's relationship.
Further, the corresponding relationship saves in the buffer;
It include following information in the corresponding relationship of first user and the second user: the second user publication
The first statistics of the media information of system mask is reviewed in the media information that media information total quantity, the second user are issued
Amount and corresponding second statistic of kinds of relationships type relevant to the second user, wherein every class relationship type is corresponding
The second statistic indicate the second user for such relationship type access user shielding media information statistic;
Second determination unit 903 includes:
Subelement is searched, is configured as executing in first user of caching and the corresponding relationship of the second user
Search the matchmaker of corresponding second statistic of relationship type between first user and the second user, the second user
First statistic of body information total quantity and the second user;
It determines residue media information quantum boxes, is configured as execution determination and is dug in the media information total quantity found
Remaining media information amount is obtained except the first statistic found and after excluding second statistic found;
Media information quantum boxes are configured as executing and permit using the remaining media information amount as the second user
Perhaps the media information amount of the described first user browsing.
Further, described device is previously stored with database table, wherein in every user record of the database table
It is corresponding including user identifier, the media information mark of the media information of the corresponding user's publication of user identifier and the media information
Privacy type identification;Privacy type identification is used to indicate the shielding plan whether corresponding media information there is auditing system to be arranged
Omit or be used to indicate the shielding strategy that corresponding media information is configured by the author;
Described device further include:
Lookup unit, if being configured as executing pair for not finding first user and the second user in the buffer
At least one of the information for including in should being related to information, then operated to obtain according to the information recorded in the database table
The information not found: where if not finding the first statistic, according to the privacy type identification, statistics described second
The first statistic of the media information of the shielding strategy of system setting is reviewed in the media information of user's publication;If not finding
Second statistic counts the screen being configured by the author in the media information of the second user publication then according to privacy type identification
The kinds of relationships type for including in strategy is covered, and counts the media information shielded respectively to the access user of kinds of relationships type
Second statistic;If not finding the media information total quantity, institute is obtained from the respective field in the database table
State the media information total quantity of second user publication;
Storage unit is configured as executing the information storage not found that will acquire into the caching.
Further, the privacy type identification have priority, and the priority of the privacy type identification from height to
It is low successively are as follows: auditing system configuration shielding strategy mark, only author it is visible shielding strategy mark, only author and good friend
The mark of the visible shielding strategy of mark, only author and the bean vermicelli of visible shielding strategy;
Described device further include:
Second receiving unit is configured as executing the hidden of the first specified media information in the reception update database table
The update of private type identification is requested;The media information updated in request including the described first specified media information identifies, with
And the new privacy type identification of the first specified media information;
Searching unit is configured as executing searching in the database table and believe with the media carried in request that update
Breath identifies corresponding original privacy type identification;
Comparing unit is configured as executing the preferential of more original privacy type identification and the new privacy type identification
Grade;
Discarding unit, if the priority for being configured as executing original privacy type identification is higher than the new privacy type mark
The priority of knowledge then abandons the update request;
Updating unit, if being configured as executing the priority of original privacy type identification lower than the new privacy type mark
The priority of knowledge, then updating original privacy type identification is the new privacy type identification.
Further, described device further include:
Monitoring unit is configured as executing the modification information for monitoring every media information in the database table;The change
Media information mark is carried in more information;
Unit is deleted, if being configured as executing the modification information listened to being specify information, in the database table
Delete the media information that carries in the modification information and identify corresponding user record, the specify information include in following extremely
Few one kind: for indicating the information of deletion media information, media information is changed to the visible information of owner for indicating.
As shown in Figure 10, it is based on same technical concept, the embodiment of the present disclosure additionally provides a kind of electronic equipment 100, can be with
Including memory 1001 and processor 1002.
The memory 1001, the computer program executed for storage processor 1002.Memory 1001 can be wrapped mainly
Include storing program area and storage data area, wherein storing program area can application needed for storage program area, at least one function
Program etc.;Storage data area, which can be stored, uses created data etc. according to display information processor.Processor 1002, can
It to be a central processing unit (central processing unit, CPU), or is digital processing element etc..The disclosure
The specific connection medium between above-mentioned memory 1001 and processor 1002 is not limited in embodiment.The embodiment of the present disclosure is in Figure 10
In between memory 1001 and processor 1002 pass through bus 1003 connect, bus 1003 is indicated in Figure 10 with thick line,
Connection type between its component is only to be schematically illustrated, does not regard it as and be limited.The bus 1003 can be divided into address
Bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 10, it is not intended that only one convenient for indicating
Bus or a type of bus.
Memory 1001 can be volatile memory (volatile memory), such as random access memory
(random-access memory, RAM);Memory 1001 is also possible to nonvolatile memory (non-volatile
Memory), such as read-only memory, flash memory (flash memory), hard disk (hard disk drive, HDD) or solid
State hard disk (solid-state drive, SSD) or memory 1001 can be used for carrying or storing have instruction or number
According to structure type desired program code and can by any other medium of computer access, but not limited to this.Memory
1001 can be the combination of above-mentioned memory.
Processor 1002 executes as shown in Figure 10 when for calling the computer program stored in the memory 1001
Embodiment in method performed by equipment.
In some possible embodiments, the various aspects for the method that the disclosure provides are also implemented as a kind of program
The form of product comprising program code, when described program product is run on a computing device, said program code is used for
Execute the computer equipment in the method according to the various illustrative embodiments of the disclosure of this specification foregoing description
Step, for example, the computer equipment can execute the method as performed by equipment in Fig. 2~embodiment shown in fig. 8.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red
The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing
(non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory
(RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc
Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Although preferred embodiment of the present disclosure has been described, created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of disclosure range.Those skilled in the art are considering specification and are practicing this
In after invention disclosed, will readily occur to other embodiments of the disclosure.The disclosure be intended to cover the disclosure any modification,
Purposes or adaptive change, these variations, uses, or adaptations follow the general principles of this disclosure and including these
Undocumented common knowledge or conventional techniques in the art is disclosed.Description and embodiments are considered only as exemplary
, the true scope and spirit of the disclosure are indicated by the following claims.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. a kind of display information processing method characterized by comprising
Receive the access request of the personal page of the access second user of the first user transmission;
First user and described second is determined according to the relationship type between the user of record based on the access request
Relationship type between user;
The media information amount information browsed according to the permission of each user pre-saved determines the media letter of second user publication
The media information amount for allowing to be browsed by the first user in breath;Wherein, the media information amount letter that the permission of each user is browsed
Include: in breath in relationship type between any two user and any two user user allow by another user
The corresponding relationship of the media information amount of access;
The determining media information amount is sent to first user.
2. display information processing method according to claim 1, which is characterized in that the corresponding relationship is stored in caching
In;
It include following information in the corresponding relationship of first user and the second user: the media of the second user publication
Information total quantity, the second user publication media information in be reviewed system mask media information the first statistic,
And corresponding second statistic of relevant to second user kinds of relationships type, wherein every class relationship type is corresponding
Second statistic indicates the system for the media information that the access user of such relationship type of the permission of the second user configuration browses
Metering;
The media information amount information that the permission for each user that the basis pre-saves is browsed determines the matchmaker of second user publication
The media information amount for allowing to be browsed by the first user in body information, comprising:
The media information of the second user is searched in first user of caching and the corresponding relationship of the second user
Total quantity, the first statistic of the second user, and kinds of relationships type relevant to the second user corresponding
Two statistics;
According to the relationship type of first user and the second user, and the second user found in the buffer
Media information total quantity, the first statistic of the second user, kinds of relationships type pair relevant to the second user
The second statistic answered determines the media information for allowing the first user browsing in the media information of the second user publication
Amount.
3. display information processing method according to claim 1 or 2, which is characterized in that determine first user and institute
State the relationship type between second user, comprising:
If the user identifier of first user is identical as the user identifier of the second user, it is determined that first user with
Relationship type between the second user is the same user;
If first user is in the buddy list of the second user, it is determined that first user and the second user
Between relationship type be friend relation;
If first user is in the bean vermicelli list of the second user, it is determined that first user and the second user
Between relationship type be bean vermicelli relationship;
If first user is neither in the buddy list of the second user, also not in the bean vermicelli list of the second user
In, and the user identifier of first user is different from the user identifier of the second user, it is determined that first user with
Relationship type between the second user is tourist's relationship.
4. display information processing method according to claim 3, which is characterized in that described according to first user and institute
State the relationship type of second user, and the second user found in the buffer media information total quantity, described
The first statistic of two users, corresponding second statistic of kinds of relationships type relevant to the second user, determine described in
Allow the media information amount of the first user browsing in the media information of second user publication, comprising:
If the relationship type of first user and the second user is the same user, it is determined that the matchmaker of the second user
Body information total quantity subtracts the first statistic of the second user, and obtained remaining media information amount is as permission described first
The media information amount of user's browsing;
If the relationship type of first user and the second user is friend relation, it is determined that the media of the second user
Information total quantity subtracts the first specify information, and obtained remaining media information amount is as the media for allowing first user to browse
Information content;Wherein, first specify information includes the first statistic of the second user and relationship type is the same use
Corresponding second statistic in family;
If the relationship type of first user and the second user is bean vermicelli relationship, it is determined that the media of the second user
Information total quantity subtracts the second specify information, and obtained remaining media information amount is as the media for allowing first user to browse
Information content;Wherein, second specify information include the first statistic of the second user, relationship type be the same user
Corresponding second statistic and relationship type are corresponding second statistic of friend relation;
If the relationship type of first user and the second user is tourist's relationship, it is determined that the media of the second user
Information total quantity subtracts third specify information, and obtained remaining media information amount is as the media for allowing first user to browse
Information content;Wherein, the third specify information include the first statistic of the second user, relationship type be the same user
Corresponding second statistic, relationship type are corresponding second statistic of friend relation and relationship type is that bean vermicelli relationship is corresponding
Second statistic.
5. display information processing method according to claim 4, which is characterized in that be previously stored with database table, wherein
Matchmaker in every user record of the database table including user identifier, the media information of the corresponding user's publication of user identifier
Body message identification and the corresponding privacy type identification of the media information;Privacy type identification is used to indicate corresponding media information
Whether there is the shielding strategy of auditing system setting or be used to indicate the shielding strategy that corresponding media information is configured by the author;
The method also includes:
If not found in the information for including in the corresponding relationship of first user and the second user in the buffer extremely
A kind of few information, then operated the information not found according to the information recorded in the database table: where
If not finding the first statistic, according to the privacy type identification, the media letter of the second user publication is counted
The first statistic of the media information of the shielding strategy of system setting is reviewed in breath;
If not finding the second statistic, according to privacy type identification, in the media information for counting the second user publication
The kinds of relationships type for including in the shielding strategy being configured by the author, and count and the access user of kinds of relationships type is permitted respectively
Second statistic of the media information browsed perhaps;
If not finding the media information total quantity, described second is obtained from the respective field in the database table and is used
The media information total quantity of family publication;
The information not found that will acquire is stored into the caching.
6. display information processing method according to claim 5, which is characterized in that the privacy type identification has preferential
Grade, and the priority of the privacy type identification is from high to low successively are as follows: the mark of the shielding strategy of auditing system configuration is only made
The visible screen of mark, only author and bean vermicelli of the visible shielding strategy of mark, only author and good friend of the visible shielding strategy of person
Cover the mark of strategy;
The method also includes:
Receive the update request for updating the privacy type identification of the first specified media information in the database table;The update
Media information mark and the first specified media information in request including the described first specified media information it is new hidden
Private type identification;
Original privacy type corresponding with the media information mark carried in the update request is searched in the database table
Mark;
The priority of more original privacy type identification and the new privacy type identification;
If the priority of original privacy type identification is higher than the priority of the new privacy type identification, the update is abandoned
Request;
If the priority of original privacy type identification is lower than the priority of the new privacy type identification, update described original
Privacy type identification is the new privacy type identification.
7. display information processing method according to claim 5, which is characterized in that the method also includes:
Monitor the modification information of every media information in the database table;Media information mark is carried in the modification information;
If the modification information listened to is specify information, the matchmaker carried in the modification information is deleted in the database table
The corresponding user record of body message identification, the specify information includes at least one of the following: deleting media letter for indicating
Media information is changed to the visible information of owner by the information of breath for indicating.
8. a kind of display information processor characterized by comprising
First receiving unit, the access for being configured as executing the personal page for receiving the access second user that the first user sends are asked
It asks;
First determination unit is configured as executing based on the access request, according to the relationship type between the user of record, really
Relationship type between fixed first user and the second user;
Second determination unit is configured as executing the media information amount letter browsed according to the permission of each user pre-saved
Breath determines the media information amount for allowing to be browsed by the first user in the media information of second user publication;Wherein, each user
The media information amount information that is browsed of permission in include: relationship type and any two user between any two user
In user corresponding relationship of media information amount for allowing to be accessed by another user;
Transmission unit, is configured as executing the determining media information amount is sent to first user.
9. a kind of electronic equipment characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;
Wherein, aobvious as described in any one of claims 1 to 7 to realize the processor is configured to executing described instruction
Show information processing method.
10. a kind of storage medium, which is characterized in that when the instruction in the storage medium is executed by the processor of electronic equipment
When, so that electronic equipment is able to carry out the display information processing method as described in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910556063.8A CN110377857B (en) | 2019-06-25 | 2019-06-25 | Display information processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910556063.8A CN110377857B (en) | 2019-06-25 | 2019-06-25 | Display information processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110377857A true CN110377857A (en) | 2019-10-25 |
CN110377857B CN110377857B (en) | 2021-11-02 |
Family
ID=68249438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910556063.8A Active CN110377857B (en) | 2019-06-25 | 2019-06-25 | Display information processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110377857B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902486A (en) * | 2009-05-27 | 2010-12-01 | 北京携友聚信信息技术有限公司 | Method and system for protecting security of personal information |
CN103391273A (en) * | 2012-05-08 | 2013-11-13 | 孙玮 | Method and device for controlling access authority of internet website user information |
US20160294931A1 (en) * | 2008-06-06 | 2016-10-06 | Alibaba Group Holding Limited | Promulgating information on websites using servers |
CN109803008A (en) * | 2019-01-11 | 2019-05-24 | 北京字节跳动网络技术有限公司 | Method and apparatus for showing information |
-
2019
- 2019-06-25 CN CN201910556063.8A patent/CN110377857B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160294931A1 (en) * | 2008-06-06 | 2016-10-06 | Alibaba Group Holding Limited | Promulgating information on websites using servers |
CN101902486A (en) * | 2009-05-27 | 2010-12-01 | 北京携友聚信信息技术有限公司 | Method and system for protecting security of personal information |
CN103391273A (en) * | 2012-05-08 | 2013-11-13 | 孙玮 | Method and device for controlling access authority of internet website user information |
CN109803008A (en) * | 2019-01-11 | 2019-05-24 | 北京字节跳动网络技术有限公司 | Method and apparatus for showing information |
Non-Patent Citations (1)
Title |
---|
杨浩等: "网络第三方服务器中用户信息的细粒度访问控制方法", 《科学技术与工程》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110377857B (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103546498B (en) | It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal | |
CN109241358A (en) | Metadata management method, device, computer equipment and storage medium | |
JP6084123B2 (en) | Server apparatus, display control method, and program | |
CN103338249B (en) | Caching method and device | |
CN107918548A (en) | Method, apparatus, computer equipment and the storage medium that business function is realized | |
CN106997357A (en) | A kind of message treatment method, apparatus and system | |
CN110362727A (en) | Third party for search system searches for application | |
CN106911697A (en) | Access rights method to set up, device, server and storage medium | |
CN107908695A (en) | Operation system operation method, device, system and readable storage medium storing program for executing | |
CN105991408A (en) | Message processing method, message processing device and processing server | |
US9524333B2 (en) | Network system, membership-based social network service system, image display method, and storage medium storing program | |
CN106411965A (en) | Method for determining network server providing counterfeit service, equipment and calculating equipment thereof | |
CN107885873A (en) | Method and apparatus for output information | |
CN106372266A (en) | Cache and accessing method of cloud operation system based on aspects and configuration documents | |
CN110166499A (en) | A kind of method and server obtaining user's representation data | |
CN110019552A (en) | User pays close attention to the method and apparatus that state updates | |
Wu et al. | Which countries does the world talk about? An examination of factors that shape country presence on Twitter | |
CN113938430B (en) | Flow control method, device, equipment and storage medium | |
KR101345574B1 (en) | Management of tags related to shared multimedia objects in a telecommunication network | |
CN109587040A (en) | Mail processing method, system, computer device and storage medium | |
CN103365874B (en) | It is a kind of to provide the method and apparatus of application record information based on contact details | |
WO2021189766A1 (en) | Data visualization method and related device | |
CN110377857A (en) | A kind of display information processing method, device, electronic equipment and storage medium | |
CN108108458A (en) | The method and device of resources of human talents data is shared based on domain name | |
CN108710574A (en) | Ui testing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |