CN115134405A - Data processing method and device, electronic equipment and computer readable storage medium - Google Patents

Data processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN115134405A
CN115134405A CN202211061643.8A CN202211061643A CN115134405A CN 115134405 A CN115134405 A CN 115134405A CN 202211061643 A CN202211061643 A CN 202211061643A CN 115134405 A CN115134405 A CN 115134405A
Authority
CN
China
Prior art keywords
relation
target
account
construction
file
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
Application number
CN202211061643.8A
Other languages
Chinese (zh)
Other versions
CN115134405B (en
Inventor
杨文强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202211061643.8A priority Critical patent/CN115134405B/en
Publication of CN115134405A publication Critical patent/CN115134405A/en
Application granted granted Critical
Publication of CN115134405B publication Critical patent/CN115134405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a data processing method, a device, an electronic apparatus and a computer-readable storage medium, the method comprising: responding to an access request of a current account to a target homepage of a target account, and calling a document construction service to construct a first relation document; the relation file is used for indicating the relation between the current account and the target account; under the condition that the first relation pattern is failed to be constructed, target configuration information is determined based on an access scene identifier carried by an access request; the target configuration information is standby information which is associated with the access scene identification and used for constructing the relation scheme; constructing a second relation pattern based on the target configuration information; and determining a target relation scheme returned to the current account based on the construction result of the second relation scheme so as to display the target relation scheme on the target homepage accessed by the current account, and further ensuring the stability of the relation scheme through a multiple relation scheme construction mode in the technical scheme provided by the invention.

Description

Data processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to data processing technologies, and in particular, to a data processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
In the social application program, when a user enters a personal homepage of another user, relationship pattern information between the two users is often displayed, that is, a relationship between the two users, and the degree of understanding of the user about the other user can be increased through the relationship pattern information. At present, in some scenes, if the user traffic is large, the situation of the relation case missing exists, that is, the stability of the relation case is poor.
Disclosure of Invention
The present disclosure provides a data processing method, an apparatus, an electronic device, and a storage medium, so as to at least solve the problem of poor stability of a relation scheme in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a data processing method, including:
responding to an access request of a current account to a target homepage of a target account, and calling a document construction service to construct a first relation document; the relation file is used for indicating the relation between the current account and the target account;
under the condition that the first relation pattern is failed to be constructed, determining target configuration information based on an access scene identifier carried by the access request; the target configuration information is standby information which is associated with the access scene identification and is used for constructing a relation scheme;
constructing a second relation pattern based on the target configuration information;
and determining to return a target relation copy to the current account based on the construction result of the second relation copy so as to display the target relation copy on the target homepage accessed by the current account.
Optionally, the determining, based on the construction result of the second relationship copy, the target relationship copy returned to the current account includes:
determining a target relation case returned to the current account based on the second relation case when the construction result of the second relation case shows that the construction is successful;
and under the condition that the construction result of the second relation file indicates that the construction is failed, determining a target relation file returned to the current account based on a third relation file, wherein the third relation file is a preset file with fixed content.
Optionally, the constructing a second relation pattern based on the target configuration information includes:
determining a priority list corresponding to the target configuration information, wherein the priority list is used for indicating the sequence construction sequence corresponding to at least two relation file types; the type of the relation case is a result of type division of the relation case in advance;
and constructing the second relation file by sequentially utilizing a preset construction strategy corresponding to the relation file type based on the priority list until the second relation file is constructed successfully or the relation file type with the lowest priority is selected.
Optionally, the relationship case type includes address book friends, and the constructing the second relationship case by using a preset construction policy corresponding to the relationship case type includes:
constructing the second relation file by using a preset construction strategy corresponding to the address book friend, and constructing the second relation file for indicating that the current account and the target account are in the address book friend relation under the condition that the target account is the account in the address book of the current account; and under the condition that the target account is not the account in the address book of the current account, the preset construction strategy corresponding to the address book friend fails to construct the second relation copy.
Optionally, the relationship pattern type includes common friends, and the constructing the second relationship pattern by using a preset construction policy corresponding to the relationship pattern type includes:
constructing the second relation file by using a preset construction strategy corresponding to the common friend to obtain a first friend list corresponding to the current account and a second friend list corresponding to the target account;
if the same friend account exists in the first friend list and the second friend list, constructing a second relation copy for indicating that the same friend account exists in the current account and the target account; and under the condition that the same friend account does not exist in the first friend list and the second friend list, the preset construction strategy corresponding to the common friend fails to construct the second relation pattern.
Optionally, the relationship document type includes a common concern, and the constructing the second relationship document by using a preset construction policy corresponding to the relationship document type includes:
constructing the second relation pattern by using a preset construction strategy corresponding to the common concern, and acquiring a first concern list corresponding to the current account and a second concern list corresponding to the target account;
under the condition that the same concerned account exists in the first concerned list and the second concerned list, constructing a second relation copy for indicating that the same concerned account exists between the current account and the target account; and under the condition that the same concerned accounts do not exist in the first concerned list and the second concerned list, the preset construction strategy corresponding to the common concern fails to construct the second relation scheme.
Optionally, the method further comprises:
and if the first relation copy is successfully constructed, returning the first relation copy to the current account so as to display the first relation copy on the target homepage accessed by the current account.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus including:
the first construction processing module is configured to respond to an access request of a current account to a target homepage of a target account, and invoke the file construction service to construct a first relation file; the relation file is used for indicating the relation between the current account and the target account;
the configuration information determining module is configured to determine target configuration information based on an access scene identifier carried by the access request under the condition that the first relation pattern is failed to be constructed; the target configuration information is standby information which is associated with the access scene identification and is used for constructing a relation scheme;
the second construction processing module is configured to construct a second relation case based on the target configuration information;
a relationship document returning module configured to determine a target relationship document returned to the current account based on a construction result of the second relationship document, so as to display the target relationship document on the target homepage accessed by the current account.
Optionally, the relationship document return module includes:
a first determining unit, configured to determine a target relationship case returned to the current account based on the second relationship case if a construction result of the second relationship case indicates that construction is successful;
and the second determining unit is configured to determine the target relation file returned to the current account based on a third relation file when the construction result of the second relation file indicates that the construction fails, wherein the third relation file is a preset file with fixed content.
Optionally, the second building process module includes:
the list determining unit is configured to determine a priority list corresponding to the target configuration information, wherein the priority list is used for indicating a sequence of construction corresponding to at least two relation pattern types; the type of the relation case is a result of type division of the relation case in advance;
and the construction processing unit is configured to sequentially construct the second relation case by using a preset construction strategy corresponding to the relation case type based on the priority list until the second relation case is successfully constructed or the relation case type with the lowest priority is selected.
Optionally, the type of the relationship case includes address book friends, and the construction processing unit includes:
the first construction subunit is configured to construct the second relation case by using a preset construction strategy corresponding to the address book friend, and construct a second relation case for indicating that the current account and the target account are in an address book friend relation when the target account is an account in the address book of the current account; and under the condition that the target account is not the account in the address book of the current account, the preset construction strategy corresponding to the address book friend fails to construct the second relation pattern.
Optionally, the relationship pattern type includes common friends, and the construction processing unit includes:
a second construction subunit configured to construct the second relationship pattern by using a preset construction policy corresponding to the common friend, and acquire a first friend list corresponding to the current account and a second friend list corresponding to the target account;
under the condition that the same friend account exists in the first friend list and the second friend list, constructing a second relation file for indicating that the same friend account exists in the current account and the target account; and under the condition that the same friend account does not exist in the first friend list and the second friend list, the second relation pattern is failed to be constructed by the preset construction strategy corresponding to the common friend.
Optionally, the type of relationship document includes a common concern, the build processing unit includes:
a third construction subunit, configured to construct the second relation copy by using a preset construction policy corresponding to the common concern, and obtain a first concern list corresponding to the current account and a second concern list corresponding to the target account;
under the condition that the same concerned account exists in the first concerned list and the second concerned list, constructing a second relation copy for indicating that the same concerned account exists in the current account and the target account; and under the condition that the same concerned account does not exist in the first concerned list and the second concerned list, the second relation pattern is failed to be constructed by the preset construction strategy corresponding to the common concern.
Optionally, the relationship document returning module is further configured to, if the first relationship document is successfully constructed, return the first relationship document to the current account to display the first relationship document on the target homepage accessed by the current account.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data processing method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, which, when executed by an instruction processor in the storage medium, enables a server to perform the data processing method according to the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program or computer instructions, wherein the computer program or computer instructions, when executed by a processor, implement the data processing method of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps of calling a document construction service to construct a first relation document when an access request of a current account to a target homepage of a target account is received, wherein the relation document is used for indicating the relation between the current account and the target account. The first relation scheme construction failure indicates that the scheme construction service is unstable, a relation scheme missing situation may occur at the moment, and in order to avoid the relation scheme missing, the present disclosure determines target configuration information according to an access scene identifier carried by an access request under the condition of the first relation scheme construction failure, wherein the target configuration information is standby information associated with the access scene identifier and used for relation scheme construction, and further, the second relation scheme construction can be performed according to the target configuration information, and the target relation scheme returned to the current account is determined according to a construction result of the second relation scheme, so that the target relation scheme is displayed on the target homepage accessed by the current account. According to the technical scheme, the file construction service is provided, and the standby information of the relation file construction is also provided, so that the relation file related to the access scene can be still constructed under the condition that the file construction service is unstable, namely, the stability of the relation file is ensured through a multiple relation file construction mode.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of an application environment illustrating a method of data processing in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of data processing in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a data processing apparatus in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
Referring to fig. 1, a schematic diagram of an application environment of a data processing method according to an exemplary embodiment is shown, where the application environment may include a terminal 11 and a server 12, and the terminal 11 and the server 12 are connected through a wireless network.
The terminal 11 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like, but is not limited thereto, and client software providing a human-computer interaction function, such as an Application (App for short), is installed on the terminal 11, and the Application may be an independent Application or a sub-program in the Application. Illustratively, the application may be a social-type application.
The server 12 may be a server providing background services for applications in the terminal 11. The server 12 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform.
Those skilled in the art will appreciate that the number of the above terminals may be only one, tens or hundreds, or more. The number of terminals and the type of the device are not limited in the embodiments of the present disclosure.
Fig. 2 is a flow chart illustrating a data processing method that may be used in the server shown in fig. 1, according to an example embodiment, including the following steps.
In step S21, in response to an access request of the current account to a target homepage of the target account, invoking a document construction service to construct a first relationship document; the relation file is used for indicating the relation between the current account and the target account.
In this step, an access request is sent by the terminal, and the current account is the account logged in at the current time on the terminal. The target account is the account that the current account is intended to access, and the target homepage may be the personal homepage of the target account. The case construction service is an upstream service specially used for constructing the relation case between the current account and the target account, the constructed relation case is used for indicating the relation between the current account and the target account, and based on the relation case, a user can know the recommendation reason corresponding to the target account and quickly know the target account. For example, the relationship document may be "pay attention to N users like XXX", "contacts friends: XXX "," common friends: XXX ", etc.
Generally, the first relation case constructed by the case construction service has higher accuracy, and the understanding degree of the current account to the target account is improved, so the case construction service is preferred when the case relation construction is carried out. However, there are cases where the document construction service is unstable, such as a large user traffic and an effective computing resource, and at this time, the document construction service may not be able to construct the first relationship document, that is, the first relationship document construction failure may occur, and the first relationship document construction failure indicates that there is a possibility of a relationship document missing.
Specifically, the document construction service may be configured to construct a first relationship document for a pre-trained document construction model, obtain a first account feature corresponding to a current account and a second account feature corresponding to a target account, input the first account feature and the second account feature into the document construction model, and perform construction of the first relationship document.
In step S22, when the first relation pattern is failed to be constructed, determining target configuration information based on an access scene identifier carried in the access request; the target configuration information is standby information which is associated with the access scene identification and used for constructing a relation scheme.
In this step, when the first relation document cannot be constructed by calling the document construction service, the target configuration information is determined according to the access request carrying the access scene identifier. The access scene identification is used for indicating the access scene when the current account accesses the target homepage of the target account, namely the target homepage accessed by adopting which mode, and different access scenes correspond to different access scene identifications. And information configuration is carried out in advance, and configuration information is obtained, wherein the configuration information has standby information which is used for constructing the relation scheme and corresponds to different access scene identifiers respectively. Therefore, after the access scene identifier carried by the access request is determined, the target configuration information can be determined from the pre-configured configuration information.
Specifically, the appointment user accesses the homepage of the other user in advance by using a scene identifier (scene value, scene), for example, scene 1 indicates that the homepage of the other user is entered from the address book push (i.e., scene = 1), and scene 2 indicates that the homepage of the other user is entered from the search page (i.e., scene = 2). When the current account carries out access operation on a target homepage of the target account, the terminal responds to the access operation to identify a current access scene, an access scene identifier corresponding to the current access scene is determined, an access request carrying the access scene identifier is sent to the server, and the server can obtain the access scene identifier carried by the access request after receiving the access request. Therefore, the server obtains the relevant information of the terminal access scene by adding an access scene identification parameter in the access request, so that the target configuration information can be accurately determined based on the access scene identification in the following process.
In step S23, a second relational document is constructed based on the target configuration information.
In this step, after the target configuration information is obtained, the target configuration information provides the construction information of the relationship scheme, so that the second relationship scheme can be constructed according to the target configuration information. The constructed second relation case can also indicate the relation between the current account and the target account, so that the situation of relation case loss possibly occurring due to the construction failure of the first relation case is effectively solved by using the second relation case, and the stability of the relation case is improved through a multiple relation case construction mode. And because the target configuration information and the access scene identification have an association relationship, different access scene identifications correspond to different target configuration information, and different target configuration information constructs different second relationship files, so that the second relationship files and the access scene have a stronger association relationship, and a preset bibliography file is prevented from being returned to the current account under the condition that the first relationship file is failed to be constructed, such as: you can know people, so that the user experience is improved through the second relation case with better accuracy and scene relevance.
In one embodiment, the step S23 includes:
in step S231, determining a priority list corresponding to the target configuration information, where the priority list is used to indicate a sequence of construction corresponding to at least two types of relationship documents; the type of the relation case is the result of type division of the relation case in advance.
In this step, different relation documents are classified in type in advance to obtain at least two relation document types, where the relation document types may include, but are not limited to, "address book friends", common friends, "common documents". When information configuration is performed in advance, different priority lists are configured for different access scene identifiers, for example, the priority list of scene 1 is "address book friend", common friend ", or" common file "; the prioritized list for scenario 2 is co-attended, co-friends, "address book friends". Therefore, after the target configuration information is determined according to the access scene identification, the content of the target configuration information comprises a corresponding priority list.
In step S232, based on the priority list, the second relation document is sequentially constructed by using a preset construction policy corresponding to the relation document type until the second relation document is successfully constructed or the relation document type with the lowest priority is selected.
In this step, after the priority list is determined, since the priority list can indicate the order of construction corresponding to at least two relation document types, the second relation document is constructed according to the order of construction. The second relation file is constructed by sequentially utilizing the preset construction strategies corresponding to the relation file types according to the sequence construction sequence until the second relation file is constructed successfully or the relation file type with the lowest priority is selected. It should be noted that, after the second relation document is successfully constructed, the second relation document cannot be continuously constructed by using the preset construction strategy corresponding to the subsequent relation document type.
For example, when the first relationship pattern is failed to be constructed, it is determined that an access scene identifier carried by an access request is scene =1, pre-configuration information of the Kconf configuration platform is read, and target configuration information corresponding to the scene =1 is obtained, that is, a priority list corresponding to the scene =1 is obtained, and the priority list is address book friends, common friends and common concerns. Then, a second relation file is constructed by utilizing a preset construction strategy corresponding to the address book friend (with the highest priority), and if the second relation file is constructed successfully, the construction of the second relation file by utilizing the later relation file types, namely common friends and the preset construction strategies respectively corresponding to common attention is stopped; if the second relation pattern is constructed unsuccessfully, constructing the second relation pattern by using a preset construction strategy corresponding to a common friend (an adjacent subsequent relation pattern type), and if the second relation pattern is constructed successfully, stopping constructing the second relation pattern by using the subsequent relation pattern type, namely paying attention to the corresponding preset construction strategy together; and if the second relation file is failed to be constructed, constructing the second relation file by using a preset construction strategy corresponding to common attention (with the lowest priority).
In this embodiment, the priority list corresponds to at least two relation document types, different relation document types correspond to different preset construction policies, and the second relation document is constructed by sequentially using the different preset construction policies according to the construction sequence of the at least two relation document types in the priority list until the second relation document is constructed successfully or the relation document type with the lowest priority is selected. Therefore, the success probability of the second relation scheme construction is increased through more preset construction strategies, and the accuracy of the determined second relation scheme is improved as much as possible according to different priority relations.
In an embodiment, the relationship document type includes address book friends, and the step S232 of constructing the second relationship document by using a preset construction policy corresponding to the relationship document type includes:
constructing the second relation file by using a preset construction strategy corresponding to the address book friend, and constructing the second relation file for indicating that the current account and the target account are in the address book friend relation under the condition that the target account is the account in the address book of the current account; and under the condition that the target account is not the account in the address book of the current account, the preset construction strategy corresponding to the address book friend fails to construct the second relation pattern.
When the relationship file type comprises the address book friend, if the second relationship file needs to be constructed by using the preset construction strategy corresponding to the address book friend according to the sequence construction sequence corresponding to at least two relationship file types in the priority list, the specific steps are as follows:
determining an address book of a current account, judging whether a target account is an account in the address book of the current account, and indicating that the target account is an address book friend of the current account under the condition that the target account is the account in the address book of the current account, so that a second relation case for indicating that the current account and the target account are in an address book friend relation is constructed, for example, "he is your address book friend", and it needs to be stated that "construction" indicates that construction is successful. And under the condition that the target account is not the account in the address book of the current account, the second relation file cannot be successfully constructed by utilizing the preset construction strategy corresponding to the address book friend.
In this embodiment, whether the target account is an account in the address book of the current account is determined, so that the second relationship pattern is accurately constructed by using a preset construction strategy corresponding to a friend in the address book.
In an embodiment, the relationship document type includes common friends, and the step S232 of constructing the second relationship document by using a preset construction policy corresponding to the relationship document type includes:
constructing the second relation file by using a preset construction strategy corresponding to the common friend to obtain a first friend list corresponding to the current account and a second friend list corresponding to the target account;
under the condition that the same friend account exists in the first friend list and the second friend list, constructing a second relation file for indicating that the same friend account exists in the current account and the target account; and under the condition that the same friend account does not exist in the first friend list and the second friend list, the second relation pattern is failed to be constructed by the preset construction strategy corresponding to the common friend.
When the relationship file types comprise common friends, if a second relationship file needs to be constructed by using a preset construction strategy corresponding to the common friends according to a sequence construction sequence corresponding to at least two relationship file types in the priority list, the specific steps are as follows:
and acquiring a first friend list corresponding to the current account and acquiring a second friend list corresponding to the target account. The first friend list is used for indicating accounts which are in a friendship with the current account; the second friends list is used to indicate accounts that are friendship to the target account.
Further judging whether the same friend account exists in the first friend list and the second friend list, and if the same friend account exists, such as an account A, indicating that the current account and the target account have the same friend A, so as to construct a second relation file for indicating that the current account and the target account have the same friend account, such as 'common friend, A'; and under the condition that the same friend account does not exist, the second relation case cannot be successfully constructed by utilizing the preset construction strategy corresponding to the common friend.
In this embodiment, whether the same friend account exists in the first friend list and the second friend list is judged, so that the second relationship pattern is accurately constructed by using a preset construction strategy corresponding to common friends.
In an embodiment, the relationship document type includes a common concern, and the step S232 of constructing the second relationship document by using a preset construction policy corresponding to the relationship document type includes:
constructing the second relation pattern by using a preset construction strategy corresponding to the common concern, and acquiring a first concern list corresponding to the current account and a second concern list corresponding to the target account;
under the condition that the same concerned account exists in the first concerned list and the second concerned list, constructing a second relation copy for indicating that the same concerned account exists between the current account and the target account; and under the condition that the same concerned account does not exist in the first concerned list and the second concerned list, the second relation pattern is failed to be constructed by the preset construction strategy corresponding to the common concern.
When the relation file types include common attention, if a second relation file needs to be constructed by using a preset construction strategy corresponding to the common attention according to a sequence construction sequence corresponding to at least two relation file types in the priority list, the specific steps are as follows:
the method comprises the steps of obtaining a first concern list corresponding to a current account, and obtaining a second concern list corresponding to a target account. The first interest list is used for indicating all interest accounts of the current account; the second focus list is used to indicate all focus accounts of the target account.
Further judging whether the first concern list and the second concern list have the same concern account, and if the same concern account exists, such as account B and account C, indicating that the current account and the target account have the same concern B and C, thereby constructing a second relation scheme for indicating that the current account and the target account have the same concern account, such as 'common concern, B, C'; and under the condition that the same concerned accounts do not exist, namely the second relation file cannot be successfully constructed by utilizing the preset construction strategy corresponding to the common attention.
In this embodiment, whether the first concern list and the second concern list have the same concern account is determined, so that the second relation pattern is accurately constructed by using a preset construction strategy corresponding to common concern.
It should be noted that the preset construction strategy corresponding to the address book friend, the preset construction strategy corresponding to the common friend, and the preset construction strategy corresponding to the common concern are used according to the sequence construction order corresponding to each relationship pattern type in the priority list.
For example, when it is determined that the access scene identifier is scene =2, the determined priority list is common concern, common friends, and address book friends.
The server firstly constructs a second relation scheme according to a preset construction strategy corresponding to the common concern: the method comprises the steps of obtaining a first concern list corresponding to a current account, obtaining a second concern list corresponding to a target account, judging whether the first concern list and the second concern list have the same concern account, if the same concern account B exists, constructing a second relation scheme, namely 'common concern, B', and the second relation scheme is successfully constructed, and stopping a subsequent second relation scheme construction process; and if the same concerned account does not exist, the second relation file cannot be successfully constructed, and then a preset construction strategy corresponding to the type of the adjacent subsequent relation file in the priority list is selected to construct the second relation file. Namely, the second relation scheme is continuously constructed by using the preset construction strategy corresponding to the common friends: the method comprises the steps of obtaining a first friend list corresponding to a current account, obtaining a second friend list corresponding to a target account, judging whether the first friend list and the second friend list have the same friend account, if the same friend account A exists, constructing a second relation file, namely common friend, A, and a second relation file construction process is successful, and stopping a subsequent second relation file construction process; and if the same concerned account does not exist, the second relation file cannot be successfully constructed, and then a preset construction strategy corresponding to the adjacent post relation file type in the priority list is selected to construct the second relation file. Namely, the preset construction strategy corresponding to the address book friend is continuously utilized to construct the second relation file: the address book of the current account is determined, whether the target account is the account in the address book of the current account is judged, and under the condition that the target account is the account in the address book of the current account, a second relation file 'he is a friend of your address book' is constructed, the second relation file is constructed successfully, and if the second relation file is not constructed yet, the second relation file is constructed unsuccessfully.
In step S24, based on the construction result of the second relation copy, a target relation copy returned to the current account is determined to display the target relation copy on the target homepage accessed by the current account.
In this step, according to the construction result of the second relation copy, the target relation copy returned to the current account, different construction results, and different target relation copies determined are determined. After the target relation file is determined, the server sends the target relation file to the terminal of the current account, namely, the target relation file is returned to the current account, and after the terminal receives the target relation file, the target relation file is displayed on the target homepage. Therefore, under the condition that the document construction service is unstable, the target relation document with higher accuracy can still be returned to the current account, and the stability of the relation document is ensured.
In an embodiment, the second relation copy may be successfully constructed, that is, the second relation copy is constructed, and the second relation copy is not constructed, and the step S24 includes:
in step S241, when the result of constructing the second relationship document indicates that the construction is successful, determining a target relationship document returned to the current account based on the second relationship document;
in step S242, if the result of the second relationship document indicates that the construction has failed, the target relationship document returned to the current account is determined based on a third relationship document, where the third relationship document is a document with fixed content and set in advance.
In this embodiment, under the condition that the second relationship documentation is successfully constructed, the constructed second relationship documentation can be used as a target relationship documentation returned to the current account, and the target relationship documentation is related to the access scene, so that the accuracy is relatively good. If there is a case where the second relationship copy is failed to be constructed, for example, an account in the address book of the target account other than the current account, and the current account and the target account do not have the same friend account, and there is no account of the same interest, the second relationship copy may be failed to be constructed. Therefore, a third relation file with fixed content can be preset, and under the condition that the second relation file is failed to be constructed, the preset third relation file with fixed content is used as a target relation file to be returned to the current account, so that the third relation file is displayed on a target homepage accessed by the current account, and is a bibliographic file.
Of course, in a possible implementation manner, the second relation document is constructed by sequentially using the preset construction strategies corresponding to the relation document types based on the priority list, and if the relation document type with the lowest priority is selected and the second relation document is not constructed by using the preset construction strategy of the relation document type with the lowest priority, a document with fixed preset content can be used as the second relation document. That is, when the second relation document is constructed based on the target configuration information, there is no situation that the second relation document is not constructed, and at this time, the construction result of the second relation document corresponds to the constructed second relation document, and the determined target relation document returned to the current account is the constructed second relation document.
In this embodiment, when an access request of a current account to a target homepage of a target account is received, a document construction service is called to construct a first relation document, when the first relation document is unsuccessfully constructed, target configuration information is determined according to an access scene identifier carried by the access request, a second relation document is constructed according to the target configuration information, and a target relation document is determined to be returned to the current account according to a second relation document construction result, so that the target relation document is displayed on the target homepage accessed by the current account. In the technical scheme provided by the embodiment, the case construction service is provided, and the standby information of the relation case construction is also provided, so that the relation case related to the access scene can be still constructed under the condition that the case construction service is unstable, and the stability of the relation case is effectively improved.
In an embodiment, the method further comprises:
in step S25, if the first relation copy is successfully constructed, returning the first relation copy to the current account to display the first relation copy on the target homepage accessed by the current account.
In this embodiment, when the document construction service is called to construct the first relationship document, there may be a case that the first relationship document is successfully constructed, and at this time, a subsequent construction step of the relationship document is not required, and the first relationship document is returned to the current account, so that the first relationship document is displayed on the target homepage of the current account, and the first relationship document may more accurately reflect the relationship between the current account and the target account.
Fig. 3 is a block diagram illustrating a data processing apparatus, which is provided to a server, according to an exemplary embodiment. The apparatus includes a first construction processing module 31, a configuration information determination module 32, a second construction processing module 33, and a relationship document return module 34.
The first construction processing module 31 is configured to respond to an access request of a current account to a target homepage of a target account, and invoke the document construction service to construct a first relation document; the relation file is used for indicating the relation between the current account and the target account.
The configuration information determining module 32 is configured to determine target configuration information based on the access scene identifier carried in the access request under the condition that the first relation scheme is failed to be constructed; the target configuration information is standby information which is associated with the access scene identification and used for constructing a relation scheme.
The second construction processing module 33 is configured to construct a second relation pattern based on the target configuration information.
The relationship document returning module 34 is configured to determine a target relationship document returned to the current account based on the construction result of the second relationship document, so as to display the target relationship document on the target homepage accessed by the current account.
In an exemplary embodiment of the present disclosure, the relationship document return module includes:
a first determination unit configured to determine a target relation case returned to the current account based on the second relation case if a construction result of the second relation case indicates that the construction is successful;
and the second determining unit is configured to determine the target relation file returned to the current account based on a third relation file when the construction result of the second relation file indicates that the construction is failed, wherein the third relation file is a preset file with fixed content.
In an exemplary embodiment of the present disclosure, the second building process module includes:
the list determining unit is configured to determine a priority list corresponding to the target configuration information, wherein the priority list is used for indicating a sequence of construction corresponding to at least two relation pattern types; the type of the relation case is a result of type division of the relation case in advance;
and the construction processing unit is configured to sequentially construct the second relation case by using a preset construction strategy corresponding to the relation case type based on the priority list until the second relation case is successfully constructed or the relation case type with the lowest priority is selected.
In an exemplary embodiment of the disclosure, the relationship case type includes address book friends, and the construction processing unit includes:
the first construction subunit is configured to construct the second relation case by using a preset construction strategy corresponding to the address book friend, and construct the second relation case for indicating that the current account and the target account are in an address book friend relation when the target account is an account in the address book of the current account; and under the condition that the target account is not the account in the address book of the current account, the preset construction strategy corresponding to the address book friend fails to construct the second relation pattern.
In an exemplary embodiment of the present disclosure, the relationship pattern type includes common friends, and the construction processing unit includes:
a second construction subunit configured to construct the second relationship pattern by using a preset construction policy corresponding to the common friend, and acquire a first friend list corresponding to the current account and a second friend list corresponding to the target account;
under the condition that the same friend account exists in the first friend list and the second friend list, constructing a second relation file for indicating that the same friend account exists in the current account and the target account; and under the condition that the same friend account does not exist in the first friend list and the second friend list, the second relation pattern is failed to be constructed by the preset construction strategy corresponding to the common friend.
In an exemplary embodiment of the present disclosure, the type of the relation pattern includes a common concern, and the construction processing unit includes:
a third construction subunit, configured to construct the second relation copy by using a preset construction policy corresponding to the common concern, and obtain a first concern list corresponding to the current account and a second concern list corresponding to the target account;
under the condition that the same concerned account exists in the first concerned list and the second concerned list, constructing a second relation copy for indicating that the same concerned account exists between the current account and the target account; and under the condition that the same concerned account does not exist in the first concerned list and the second concerned list, the second relation pattern is failed to be constructed by the preset construction strategy corresponding to the common concern.
In an exemplary embodiment of the present disclosure, the relationship document returning module is further configured to, if the first relationship document is successfully constructed, return the first relationship document to the current account to display the first relationship document on the target homepage accessed by the current account.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a schematic structural diagram of an electronic device according to an exemplary embodiment. Referring to fig. 4, electronic device 400 includes a processing component 422 that further includes one or more processors, and memory resources, represented by memory 432, for storing instructions, such as applications, that are executable by processing component 422. The application programs stored in memory 432 may include one or more modules that each correspond to a set of instructions. Further, the processing component 422 is configured to execute instructions to perform the implementation methods of data processing described above.
Electronic device 400 may also include a power component 426 configured to perform power management of electronic device 400, a wired or wireless network interface 450 configured to connect electronic device 400 to a network, and an input output (I/O) interface 458. The electronic device 400 may operate based on an operating system stored in the memory 432, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, there is also provided a computer readable storage medium comprising instructions which, when executed by a processor of a server, enable the server to perform a data processing method as described in any one of the method embodiments above. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which comprises readable program code executable by a processor of a server to perform the above-mentioned data processing method applied to the server. Alternatively, the program code may be stored in a storage medium of the server, which may be a non-transitory computer-readable storage medium, for example, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A data processing method, comprising:
responding to an access request of a current account to a target homepage of a target account, and calling a document construction service to construct a first relation document; the relation file is used for indicating the relation between the current account and the target account;
under the condition that the first relation pattern is failed to be constructed, determining target configuration information based on an access scene identifier carried by the access request; the target configuration information is standby information which is associated with the access scene identification and is used for constructing a relation scheme;
constructing a second relation pattern based on the target configuration information;
and determining a target relation copy returned to the current account based on the construction result of the second relation copy so as to display the target relation copy on the target homepage accessed by the current account.
2. The method of claim 1, wherein determining the target relationship document returned to the current account based on the second relationship document construction result comprises:
determining a target relation case returned to the current account based on the second relation case when the construction result of the second relation case shows that the construction is successful;
and under the condition that the construction result of the second relation file indicates that the construction fails, determining a target relation file returned to the current account based on a third relation file, wherein the third relation file is a preset file with fixed content.
3. The method of claim 1, wherein the constructing a second relational document based on the target configuration information comprises:
determining a priority list corresponding to the target configuration information, wherein the priority list is used for indicating the sequence construction sequence corresponding to at least two relation file types; the type of the relation case is a result of type division of the relation case in advance;
and constructing the second relation file by sequentially utilizing a preset construction strategy corresponding to the relation file type based on the priority list until the second relation file is constructed successfully or the relation file type with the lowest priority is selected.
4. The method of claim 3, wherein the relationship document type comprises address book friends, and the constructing the second relationship document using the preset construction policy corresponding to the relationship document type comprises:
constructing the second relation file by using a preset construction strategy corresponding to the address book friend, and constructing the second relation file for indicating that the current account and the target account are in the address book friend relation under the condition that the target account is the account in the address book of the current account; and under the condition that the target account is not the account in the address book of the current account, the preset construction strategy corresponding to the address book friend fails to construct the second relation copy.
5. The method of claim 3, wherein the relationship document type comprises common friends, and the constructing the second relationship document using a preset construction policy corresponding to the relationship document type comprises:
constructing the second relation file by using a preset construction strategy corresponding to the common friend to obtain a first friend list corresponding to the current account and a second friend list corresponding to the target account;
under the condition that the same friend account exists in the first friend list and the second friend list, constructing a second relation file for indicating that the same friend account exists in the current account and the target account; and under the condition that the same friend account does not exist in the first friend list and the second friend list, the second relation pattern is failed to be constructed by the preset construction strategy corresponding to the common friend.
6. The method of claim 3, wherein the relationship document type includes common concerns, and wherein constructing the second relationship document using a predetermined construction strategy corresponding to the relationship document type comprises:
constructing the second relation pattern by using a preset construction strategy corresponding to the common concern, and acquiring a first concern list corresponding to the current account and a second concern list corresponding to the target account;
under the condition that the same concerned account exists in the first concerned list and the second concerned list, constructing a second relation copy for indicating that the same concerned account exists between the current account and the target account; and under the condition that the same concerned accounts do not exist in the first concerned list and the second concerned list, the preset construction strategy corresponding to the common concern fails to construct the second relation scheme.
7. The method according to any one of claims 1-6, further comprising:
and if the first relation copy is successfully constructed, returning the first relation copy to the current account so as to display the first relation copy on the target homepage accessed by the current account.
8. A data processing apparatus, comprising:
the first construction processing module is configured to respond to an access request of a current account to a target homepage of a target account, and invoke the file construction service to construct a first relation file; the relation file is used for indicating the relation between the current account and the target account;
the configuration information determining module is configured to determine target configuration information based on an access scene identifier carried by the access request under the condition that the first relation pattern is failed to be constructed; the target configuration information is standby information which is associated with the access scene identification and is used for constructing a relation scheme;
a second construction processing module configured to construct a second relation pattern based on the target configuration information;
a relationship document returning module configured to determine a target relationship document returned to the current account based on a construction result of the second relationship document, so as to display the target relationship document on the target homepage accessed by the current account.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data processing method of any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a processor of instructions in the storage medium, when executed, enables a server to perform the data processing method of any one of claims 1 to 7.
CN202211061643.8A 2022-09-01 2022-09-01 Data processing method and device, electronic equipment and computer readable storage medium Active CN115134405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211061643.8A CN115134405B (en) 2022-09-01 2022-09-01 Data processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211061643.8A CN115134405B (en) 2022-09-01 2022-09-01 Data processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115134405A true CN115134405A (en) 2022-09-30
CN115134405B CN115134405B (en) 2023-01-20

Family

ID=83387510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211061643.8A Active CN115134405B (en) 2022-09-01 2022-09-01 Data processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115134405B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059270A (en) * 2019-04-29 2019-07-26 北京字节跳动网络技术有限公司 Display methods, device, electronic equipment and the storage medium at user information interface
CN111475841A (en) * 2020-04-07 2020-07-31 腾讯科技(深圳)有限公司 Access control method, related device, equipment, system and storage medium
CN113722589A (en) * 2021-08-23 2021-11-30 北京达佳互联信息技术有限公司 Information generation method, device, server and storage medium
CN113779422A (en) * 2021-08-23 2021-12-10 北京达佳互联信息技术有限公司 Method and device for realizing relation chain label, electronic equipment and storage medium
CN113901353A (en) * 2021-10-22 2022-01-07 北京达佳互联信息技术有限公司 Information display method, device and system, electronic equipment and server
CN113918853A (en) * 2021-11-24 2022-01-11 北京达佳互联信息技术有限公司 Configuration method and configuration device of information display mode

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059270A (en) * 2019-04-29 2019-07-26 北京字节跳动网络技术有限公司 Display methods, device, electronic equipment and the storage medium at user information interface
CN111475841A (en) * 2020-04-07 2020-07-31 腾讯科技(深圳)有限公司 Access control method, related device, equipment, system and storage medium
CN113722589A (en) * 2021-08-23 2021-11-30 北京达佳互联信息技术有限公司 Information generation method, device, server and storage medium
CN113779422A (en) * 2021-08-23 2021-12-10 北京达佳互联信息技术有限公司 Method and device for realizing relation chain label, electronic equipment and storage medium
CN113901353A (en) * 2021-10-22 2022-01-07 北京达佳互联信息技术有限公司 Information display method, device and system, electronic equipment and server
CN113918853A (en) * 2021-11-24 2022-01-11 北京达佳互联信息技术有限公司 Configuration method and configuration device of information display mode

Also Published As

Publication number Publication date
CN115134405B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN102299954B (en) For the context-specific network resource addressing system and method for Distributed Services
WO2017054504A1 (en) Identity authentication method and device, and storage medium
US10467055B2 (en) Computer resource provisioning failure mitigation
CN108632367A (en) Account correlating method and information-pushing method
US9122910B2 (en) Method, apparatus, and system for friend recommendations
CN104253686A (en) Account number login method, equipment and system
WO2014166133A1 (en) Method, apparatus, and system for friend recommendations
CN108965107B (en) Friend adding method, device, system, client and server
CN106776917B (en) Method and device for acquiring resource file
CN113489636A (en) Location-based access control for human dialog entities
CN106487655B (en) Message interaction method and device and processing server
CN111163072A (en) Method and device for determining characteristic value in machine learning model and electronic equipment
CN114268461B (en) User identity authentication method, device, server, terminal and storage medium
US20160381160A1 (en) System and Computer Implemented Method of Personal Monitoring
KR101695636B1 (en) Method and apparatus for processing composite context information event
CN106156190B (en) Data pushing method and device
CN113590252A (en) Information pushing method and device, electronic equipment and storage medium
CN115134405B (en) Data processing method and device, electronic equipment and computer readable storage medium
US9785711B2 (en) Online location sharing through an internet service search engine
US11574332B1 (en) Method for generating and using a 2D barcode
CN106899652B (en) Method and device for pushing service processing result
CN109543398B (en) Application program account migration method and device and electronic equipment
CN107222559B (en) Information calling method
CN110287434B (en) Website processing method and device and storage medium
CN111475289B (en) Load balancing method and device

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