CN113722589B - Information generation method, device, server and storage medium - Google Patents

Information generation method, device, server and storage medium Download PDF

Info

Publication number
CN113722589B
CN113722589B CN202110969486.XA CN202110969486A CN113722589B CN 113722589 B CN113722589 B CN 113722589B CN 202110969486 A CN202110969486 A CN 202110969486A CN 113722589 B CN113722589 B CN 113722589B
Authority
CN
China
Prior art keywords
information
type
account
parameter
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.)
Active
Application number
CN202110969486.XA
Other languages
Chinese (zh)
Other versions
CN113722589A (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 CN202110969486.XA priority Critical patent/CN113722589B/en
Publication of CN113722589A publication Critical patent/CN113722589A/en
Application granted granted Critical
Publication of CN113722589B publication Critical patent/CN113722589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an information generation method, an information generation device, a server and a storage medium, and relates to the technical field of networks, so as to solve the problem that a document server generates a document with low flexibility. The method comprises the following steps: when the user account enters the page of the target application, the server acquires the identification of the service scene of the target application and the identification of the login account, sends a request message comprising the identification of the service scene and the identification of the login account, and acquires feedback information. And then, the server generates relation chain information based on the service scene and the feedback information, wherein the relation chain information is used for generating a relation chain to be displayed, and the relation chain information is returned to the client. The request message is used for requesting feedback information, and the feedback information is used for generating relation chain information.

Description

Information generation method, device, server and storage medium
Technical Field
The disclosure relates to the field of network technologies, and in particular, to an information generation method, an information generation device, a server and a storage medium.
Background
The social application program displays target texts (such as 'common friends: zhang San', 'your common attention Zhang Sandeng people') of the recommending users on pages (such as personal homepage, search page, fan list page, acquaintance circle, and possibly recognized pages) of specific business scenes to recommend the recommending users to the logging users, so as to guide the logging users to pay attention to the recommending users, and further develop social relations among the users.
At present, a target document of a recommended user is determined and sent to a client after a document server receives a document acquisition instruction sent by the client. The client displays the received target document in the service scene for the login user to check. The process of determining the target document by the document server is as follows: and determining the relationship type of the highest priority corresponding to the current service scene, determining a recommended user with the relationship type with the login user, generating a target document of the recommended user, and sending the target document to the client. For different business scenes, the document server needs to execute the flow to generate the target document meeting the requirements of the different business scenes. Because the document server generates different documents for different business scenes, the flexibility of the document server for generating the documents is low.
Disclosure of Invention
The disclosure provides an information generation method, an information generation device, a server and a storage medium, so as to solve the problem that the flexibility of a document server for generating a document is low.
The technical scheme of the present disclosure is as follows:
in a first aspect, the present disclosure provides an information generating method applied to a server. The method may include: when a user account enters a page of a target application, acquiring an identification of a service scene of the target application and an identification of a login account; sending a request message, wherein the request message comprises an identifier of the service scene and an identifier of the login account, and is used for requesting to acquire feedback information, and the feedback information is used for generating relationship chain information; acquiring the feedback information; generating the relationship chain information based on the service scene and the feedback information, wherein the relationship chain information is used for generating a relationship chain to be displayed; and returning the relation chain information to the client.
Optionally, generating the relationship chain information based on the service scenario and the feedback information may specifically include: analyzing the feedback information to obtain a target keyword and parameter information, wherein the target keyword is a keyword corresponding to an account relationship type corresponding to the service scene, and the parameter information comprises the identification and the number of related accounts of the account relationship type between the login account and the target account; acquiring a relationship chain template corresponding to the target keyword from an information template database; and generating the relationship chain information based on the service scene, the relationship chain template and the parameter information.
Optionally, when the identifier of the service scene is the identifier of the current scene, the account relationship type is a relationship type with highest priority among a plurality of account relationship types corresponding to the current scene; when the identification of the service scene comprises the identification of the current scene and the identification of the upstream scene, the account relationship type is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene, and the upstream scene is the last display scene of the current scene.
Optionally, generating the relationship chain information based on the service scenario, the relationship chain template and the parameter information may specifically include: analyzing the parameter information to obtain at least one parameter keyword included in the parameter information and a value corresponding to each parameter keyword; determining an information type according to the at least one parameter keyword, wherein the information type is one of an account name type, an address book contact type and a default type; generating the relationship link information based on the information type, preset parameters corresponding to the current scene, the relationship link template, the at least one parameter keyword and a value corresponding to each parameter keyword, wherein the preset parameters are pre-stored in the server, and the preset parameters comprise at least one of the following: the information display system comprises an information display type, first indication information and second indication information, wherein the information display type is used for indicating the display type of the relation chain information, the first indication information is used for indicating a head portrait corresponding to a display account, and the second indication information is used for indicating support of a hyperlink function.
Optionally, determining the information type according to the at least one parameter keyword may specifically include: when the at least one parameter keyword comprises a first parameter keyword for indicating an account name, determining that the information type is the account name type; when the at least one parameter keyword comprises a second parameter keyword for indicating the name of the address book contact person, determining that the information type is the address book contact person type; and when the first parameter keyword and the second parameter keyword are not included in the at least one parameter keyword, determining that the information type is the default type.
Optionally, when the preset parameter includes the information display type, generating the relationship link information based on the information type, the preset parameter corresponding to the current scene, the relationship link template, the at least one parameter keyword, and a value corresponding to each parameter keyword may specifically include: if the information type is the account name type, analyzing the information display type included in the preset parameter, wherein the information display type is a long information type or a short information type, when the information display type is the long information type, the relationship chain information comprises a preset number of account names, and when the information display type is the short information type, the relationship chain information does not comprise account names; if the information display type is the long information type and the preset number of account names corresponding to the long information type is N account names, acquiring a first value corresponding to the first parameter key word, and acquiring the identifiers of N related accounts in the first value, wherein the first value comprises the identifiers of all related accounts of the account relation type between the login account and the target account; acquiring the account name corresponding to the identifier of each related account according to the identifier of each related account in the identifiers of the N related accounts to obtain N account names; resolving account name placeholders in the relation chain template; and replacing the account name placeholders with the N account names to generate the relation chain information, wherein the relation chain information comprises the N account names.
Optionally, when the preset parameter further includes the first indication information, the generating the relationship chain information further includes: analyzing the first indication information included in the preset parameters; and acquiring the head portrait address corresponding to the identification of each related account according to the identification of each related account in the N related accounts, wherein the relation chain information also comprises N head portrait addresses.
Optionally, when the preset parameter further includes the second indication information, the generating the relationship chain information further includes: analyzing the second indication information included in the preset parameters; and acquiring hyperlinks corresponding to the identifiers of each related account according to the identifiers of each related account in the N related accounts, wherein the relationship chain information also comprises N hyperlinks.
Optionally, generating the relationship chain information based on the information type, the preset parameter corresponding to the current scene, the relationship chain template, the at least one parameter keyword, and the value corresponding to each parameter keyword may specifically include: if the information type is the default type, analyzing the number placeholders in the relation chain template; and correspondingly replacing the quantity placeholders in the relation chain template with values corresponding to parameter keywords to generate the relation chain information, wherein the parameter keywords are used for indicating the quantity of the related accounts of the account relation type of the login account and the target account.
Optionally, generating the relationship chain information based on the service scenario, the relationship chain template and the parameter information may specifically include: and generating relationship chain information in a preset format based on the service scene, the relationship chain template and the parameter information. The returning the relationship chain information to the client comprises the following steps: and sending the relationship chain information in the preset format to the client.
Optionally, after sending the request message, the information generating method further includes: and under the condition that the feedback information is not acquired, sending preset information to the client, wherein the preset information is information of a plain text type.
In a second aspect, there is provided an information generating method, the method comprising: receiving a request message, wherein the request message comprises an identification of a service scene of a target application and an identification of a login account, and is used for requesting to acquire feedback information, and the feedback information is used for generating relationship chain information; generating the feedback information according to the identification of the service scene and the identification of the login account; and sending the feedback information.
Optionally, the feedback information includes a target keyword and parameter information, and the generating the feedback information according to the identifier of the service scenario and the identifier of the login account includes: determining a corresponding account relation type according to the identification of the service scene; acquiring the target keywords corresponding to the account relationship types; determining the parameter information according to the account relation type and the identification of the login account, wherein the parameter information comprises the identification and the number of related accounts of the account relation type between the login account and the target account; and generating the feedback information according to the target keyword and the parameter information.
Optionally, determining the corresponding account relationship type according to the identifier of the service scene includes: and when the identification of the service scene is the identification of the current scene, determining the relationship type with the highest priority among a plurality of relationship types corresponding to the current scene as the account relationship type.
Optionally, determining the corresponding account relationship type according to the identifier of the service scene includes: when the identification of the service scene comprises the identification of the current scene and the identification of an upstream scene, determining the relationship type which is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene as the account relationship type, wherein the upstream scene is the last display scene of the current scene.
Optionally, the information generating method further includes: responding to the operation of adding the candidate account relation type under the current scene, acquiring the priority of the candidate account relation type, and establishing the corresponding relation between the identification of the current scene and the candidate account relation type, the corresponding relation between the candidate account relation type and the candidate keyword, and the corresponding relation between the candidate keyword and the candidate relation chain template; and sending the corresponding relation between the candidate keywords and the candidate relationship chain templates to an information template database.
Optionally, the information generating method further includes: deleting the corresponding relation between the identification of the current scene and the offline account relation type and the corresponding relation between the offline account relation type and the offline keyword in response to the deleting operation of the offline account relation type corresponding to the current scene; and sending deletion indication information to an information template database, wherein the deletion indication information is used for indicating the corresponding relation between the offline keywords and the offline relation chain template to be deleted.
In a third aspect, there is provided an information generating apparatus applied to a server, comprising: the acquisition module is configured to acquire the identification of the business scene of the target application and the identification of the login account when the user account enters the page of the target application; the sending module is configured to send a request message, wherein the request message comprises the identification of the service scene and the identification of the login account, which are acquired by the acquisition module, and the request message is used for requesting to acquire feedback information, and the feedback information is used for generating relationship chain information; the acquisition module is further configured to perform acquisition of the feedback information; the generating module is configured to execute the generation of the relation chain information based on the service scene and the feedback information acquired by the acquiring module, and the relation chain information is used for generating a relation chain to be displayed; the sending module is further configured to return the relationship chain information generated by the generating module to a client.
Optionally, the generating module is specifically configured to perform: analyzing the feedback information to obtain a target keyword and parameter information, wherein the target keyword is a keyword corresponding to an account relationship type corresponding to the service scene, and the parameter information comprises the identification and the number of related accounts of the account relationship type between the login account and the target account; acquiring a relationship chain template corresponding to the target keyword from an information template database; and generating the relationship chain information based on the service scene, the relationship chain template and the parameter information.
Optionally, when the identifier of the service scene is the identifier of the current scene, the account relationship type is a relationship type with highest priority among a plurality of account relationship types corresponding to the current scene; when the identification of the service scene comprises the identification of the current scene and the identification of the upstream scene, the account relationship type is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene, and the upstream scene is the last display scene of the current scene.
Optionally, the generating module is specifically configured to perform: analyzing the parameter information to obtain at least one parameter keyword included in the parameter information and a value corresponding to each parameter keyword; determining an information type according to the at least one parameter keyword, wherein the information type is one of an account name type, an address book contact type and a default type; generating the relationship link information based on the information type, preset parameters corresponding to the current scene, the relationship link template, the at least one parameter keyword and a value corresponding to each parameter keyword, wherein the preset parameters are pre-stored in the server, and the preset parameters comprise at least one of the following: the information display system comprises an information display type, first indication information and second indication information, wherein the information display type is used for indicating the display type of the relation chain information, the first indication information is used for indicating a head portrait corresponding to a display account, and the second indication information is used for indicating support of a hyperlink function.
Optionally, the generating module is specifically configured to perform: when the at least one parameter keyword comprises a first parameter keyword for indicating an account name, determining that the information type is the account name type; when the at least one parameter keyword comprises a second parameter keyword for indicating the name of the address book contact person, determining that the information type is the address book contact person type; and when the first parameter keyword and the second parameter keyword are not included in the at least one parameter keyword, determining that the information type is the default type.
Optionally, when the preset parameter includes the information presentation type, the generating module is specifically configured to perform: if the information type is the account name type, analyzing the information display type included in the preset parameter, wherein the information display type is a long information type or a short information type, when the information display type is the long information type, the relationship chain information comprises a preset number of account names, and when the information display type is the short information type, the relationship chain information does not comprise account names; if the information display type is the long information type and the preset number of account names corresponding to the long information type is N account names, acquiring a first value corresponding to the first parameter key word, and acquiring the identifiers of N related accounts in the first value, wherein the first value comprises the identifiers of all related accounts of the account relation type between the login account and the target account; acquiring the account name corresponding to the identifier of each related account according to the identifier of each related account in the identifiers of the N related accounts to obtain N account names; resolving account name placeholders in the relation chain template; and replacing the account name placeholders with the N account names to generate the relation chain information, wherein the relation chain information comprises the N account names.
Optionally, when the preset parameter further includes the first indication information, the information generating device further includes: an analysis module; the analysis module is configured to perform analysis on the first indication information included in the preset parameter; the acquiring module is further configured to perform the step of acquiring the header address corresponding to the identifier of each related account according to the identifier of each related account in the identifiers of the N related accounts, and the relationship chain information further includes N header addresses.
Optionally, when the preset parameter further includes the second indication information, the information generating device further includes: an analysis module; the analysis module is configured to perform analysis on the second indication information included in the preset parameters; the obtaining module is further configured to obtain hyperlinks corresponding to the identifiers of the related accounts according to the identifiers of the related accounts in the N related accounts, and the relationship chain information further includes N hyperlinks.
Optionally, the generating module is specifically configured to perform: if the information type is the default type, analyzing the number placeholders in the relation chain template; and correspondingly replacing the quantity placeholders in the relation chain template with values corresponding to parameter keywords to generate the relation chain information, wherein the parameter keywords are used for indicating the quantity of the related accounts of the account relation type of the login account and the target account.
Optionally, the generating module is specifically configured to perform: generating relationship chain information in a preset format based on the service scene, the relationship chain template and the parameter information; the sending module is specifically configured to perform: and sending the relationship chain information in the preset format to the client.
Optionally, the sending module is further configured to send preset information to the client under the condition that the feedback information is not acquired, where the preset information is plain text type information.
In a fourth aspect, there is provided an information generating apparatus including: the receiving module is configured to execute receiving a request message, wherein the request message comprises an identifier of a business scene of a target application and an identifier of a login account, the request message is used for requesting to acquire feedback information, and the feedback information is used for generating relationship chain information; the generation module is configured to execute the generation of the feedback information according to the identification of the business scene and the identification of the login account received by the receiving module; and the sending module is configured to send the feedback information generated by the generating module.
Optionally, the feedback information includes a target keyword and parameter information, and the generating module is specifically configured to perform: determining a corresponding account relation type according to the identification of the service scene; acquiring the target keywords corresponding to the account relationship types; determining the parameter information according to the account relation type and the identification of the login account, wherein the parameter information comprises the identification and the number of related accounts of the account relation type between the login account and the target account; and generating the feedback information according to the target keyword and the parameter information.
Optionally, the generating module is specifically configured to perform: and when the identification of the service scene is the identification of the current scene, determining the relationship type with the highest priority among a plurality of relationship types corresponding to the current scene as the account relationship type.
Optionally, the generating module is specifically configured to perform: when the identification of the service scene comprises the identification of the current scene and the identification of an upstream scene, determining the relationship type which is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene as the account relationship type, wherein the upstream scene is the last display scene of the current scene.
Optionally, the information generating apparatus further includes: establishing a module; the acquisition module is further configured to perform an operation of responding to the addition of the candidate account relation type in the current scene, and acquire the priority of the candidate account relation type; the establishing module is configured to perform establishing a corresponding relation between the identification of the current scene and the candidate account relation type, a corresponding relation between the candidate account relation type and a candidate keyword, and a corresponding relation between the candidate keyword and a candidate relation chain template; the sending module is further configured to send the correspondence between the candidate keywords and the candidate relationship chain templates to an information template database.
Optionally, the information generating apparatus further includes: deleting the module; the deleting module is configured to execute a deleting operation in response to a type of the offline account relationship corresponding to the current scene, and delete the corresponding relationship between the identifier of the current scene and the type of the offline account relationship and the corresponding relationship between the type of the offline account relationship and the offline keyword; the sending module is further configured to send deletion indication information to an information template database, where the deletion indication information is used to indicate to delete the corresponding relationship between the offline keywords and the offline relationship chain template.
In a fifth aspect, the present disclosure provides a server comprising: a processor; a memory for storing processor-executable instructions. Wherein the processor is configured to execute the instructions to implement the information generating method shown in the first aspect and any one of the possible implementation manners of the first aspect, or to implement the information generating method shown in the second aspect and any one of the possible implementation manners of the second aspect.
In a sixth aspect, the present disclosure provides a computer readable storage medium, which when executed by a processor of a server, enables the server to perform the information generating method as described above in any one of the possible implementations of the first aspect and the second aspect, or to perform the information generating method as described above in any one of the possible implementations of the second aspect and the second aspect.
In a seventh aspect, the present disclosure provides a computer program product directly loadable into an internal memory of a server and containing software code, the computer program being loaded via the server and performing the information generating method as shown in the first aspect and any one of the possible implementations of the first aspect, or performing the information generating method as shown in the second aspect and any one of the possible implementations of the second aspect.
Any of the information generating apparatus, the server, the computer readable storage medium or the computer program product provided above is used to execute the corresponding method provided above, and therefore, the advantages achieved by the method can refer to the advantages of the corresponding scheme in the corresponding method provided above, and will not be repeated herein.
The technical scheme provided by the disclosure at least brings the following beneficial effects: after the first server obtains the identification of the service scene of the target application and the identification of the login account, the first server can request feedback information for generating the relationship chain information from the second server, generate the relationship chain information based on the service scene and the obtained feedback information, and return the relationship chain information to the client so that the client can display the relationship chain. In this way, the first server obtains feedback information from the second server and generates the relationship chain information in combination with the service scene, so that the relationship chain information is more flexibly generated.
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 disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of a system architecture to which embodiments of the present disclosure are applicable, shown in accordance with an exemplary embodiment;
FIG. 2 is one of the flow diagrams of the information generation method shown in accordance with an exemplary embodiment;
FIG. 3 is a second flow chart of an information generation method according to an exemplary embodiment;
FIG. 4 is a third flow chart diagram illustrating a method of generating information according to an exemplary embodiment;
fig. 5 is one of schematic structural diagrams of an information generating apparatus according to an exemplary embodiment;
fig. 6 is a second schematic diagram of the structure of an information generating apparatus according to an exemplary embodiment;
fig. 7 is a third schematic diagram of the structure of the information generating apparatus according to an exemplary embodiment;
fig. 8 is a logical block diagram of a server according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that in the embodiments of the present disclosure, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "e.g." in the examples of this disclosure should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Before describing the information generating method provided by the embodiment of the present disclosure in detail, an application scenario related to the embodiment of the present disclosure is described. The embodiments of the present disclosure may be applied to the following scenarios:
scene one: the terminal equipment obtains at least one target user and a document of each target user for a request user (namely, a user corresponding to an account logging in the target application) on a search page of the target application.
Scene II: the terminal equipment responds to the display operation of the request user on the target user in the search page, acquires the homepage of the target user and the document of the target user, and displays the document of the target user on the homepage of the target user.
The following description of the technical solutions in the embodiments of the present disclosure will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
The information generating method provided by the embodiment of the present disclosure may be applied to the system architecture in fig. 1. As shown in fig. 1, the system architecture includes a client 101, a server 102, and an information template database 103. In one possible implementation, the server 102 may include a first server and a second server. The client 101 is connected to a first server, and the first server is connected to a second server and an information template database 103, respectively.
A client 101, configured to send an information acquisition request to a first server in response to an operation of entering a user account into a page of a target application, where the information acquisition request includes an identifier of a service scenario of the target application and an identifier of a login account,
the first server is configured to receive an information acquisition request sent by the client 101, and send a request message to the second server, where the request message includes an identifier of a service scenario and an identifier of a login account, and the request message is configured to request to acquire feedback information, where the feedback information is used to generate relationship chain information.
The second server is used for receiving the request message sent by the first server, generating feedback information according to the identification of the service scene and the identification of the login account in the request message, and returning the feedback information to the first server.
The first server is further configured to receive feedback information sent by the second server, generate relationship chain information based on the service scenario and the feedback information, where the relationship chain information is used to generate a relationship chain to be displayed, and further is used to return the relationship chain information to the client 101.
The client 101 is further configured to receive the relationship chain information returned by the first server.
And an information template database 103 for storing the correspondence between the keywords and the relationship chain templates.
The client 101 may be any terminal device or server, where the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal, a palm terminal, etc. The server may be one server, or may be a server cluster composed of a plurality of servers, which is not limited in this disclosure. In fig. 1, a mobile phone is exemplified as the client 101.
The server 102 may be a server, or the server may be one server, or may be a server cluster formed by a plurality of servers, which is not limited in this disclosure. In fig. 1, the server 102 is illustrated as including a first server and a second server.
Fig. 2 is a flowchart of an information generating method according to an embodiment of the present disclosure, where the method may be applied to the system shown in fig. 1, and as shown in fig. 2, the method may include the following steps S100 to S104.
S100: when the user account enters the page of the target application, the first server acquires the identification of the business scene of the target application and the identification of the login account.
When the user account enters the page of the target application, the first server can acquire the identification of the business scene of the target application and the identification of the login account. The login account refers to an account of a login target application. The user account may be a login account or other account.
It is understood that the business scenario refers to a scenario in the target application, for example, the scenario in the target application may be a scenario of a homepage, a scenario of a search page, a scenario of a personal page, or the like. In one implementation, the identification of the business scenario is an identification of the current scenario. In another implementation, the identification of the service scene includes an identification of a current scene and an identification of an upstream scene, where the upstream scene is a display scene previous to the current scene.
Optionally, in the embodiment of the present disclosure, there are multiple implementations for the first server to obtain the identifier of the service scenario of the target application and the identifier of the login account.
For example, the client generates an information acquisition request when detecting that the user account enters a page of the target application, and sends the information acquisition request to the first server. The first server acquires the identification of the service scene and the identification of the login account according to the information acquisition request.
In a specific implementation, the information acquisition request includes an identifier of the login account, and the information acquisition request may further include an identifier of the upstream scene. Thus, the first server can acquire the identification of the upstream scene and the identification of the login account from the information acquisition request, and acquire the identification of the current scene from the interface corresponding information of the information acquisition request. Illustratively, the identification of the current scene is: search. The identification of the upstream scene is: null, indicates no upstream scene.
For another example, when the first server detects that the user account enters a page of a target application installed on the first server, the identification of a service scene of the target application and the identification of a login account are obtained.
S101: the first server sends a request message to the second server, and the second server receives the request message sent by the first server.
The request message comprises an identification of the service scene and an identification of the login account. The request message is used for requesting to acquire feedback information, and the feedback information is used for generating relation chain information, wherein the relation chain information can be document information.
S102: the second server sends feedback information to the first server, and the first server receives the feedback information sent by the second server.
After the first server obtains the identifier of the service scenario and the identifier of the login account of the target application, a request message including the identifier of the service scenario and the identifier of the login account may be sent to the second server. After receiving the request message, the second server may generate feedback information according to the identifier of the service scenario and the identifier of the login account, and send the feedback information to the first server. The first server may obtain the feedback information.
Optionally, the feedback information includes a target keyword and parameter information, where the target keyword is a keyword corresponding to an account relationship type corresponding to the service scene, and the parameter information includes identification and number of related accounts of the account relationship type existing between the login account and the target account. The process of generating feedback information by the second server comprises the following steps: the second server determines the corresponding account relation type according to the identification of the service scene, acquires the target keyword corresponding to the account relation type, and determines the parameter information according to the account relation type and the identification of the login account. And then, the second server generates feedback information according to the target keywords and the parameter information.
Optionally, when the identifier of the service scenario is the identifier of the current scenario, the second server determines a relationship type with the highest priority among a plurality of relationship types corresponding to the current scenario as the account relationship type. When the identification of the service scene comprises the identification of the current scene and the identification of the upstream scene, the second server determines the relationship type which is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene as the account relationship type.
From the above, when the service scene includes the current scene and the upstream scene, the account relationship type is determined based on the current scene and the upstream scene, so that the account relationship type of the current scene and the account relationship type of the upstream scene are the same, and the unification of the texts of the upstream scene and the current scene is ensured. That is, the recommended text seen by the user B on the search page and the recommended text seen by the user B on the personal homepage are unified, and the user experience is improved.
S103: the first server generates relationship chain information based on the service scene and the feedback information.
The relationship chain information is used for generating a relationship chain to be displayed, and the relationship chain can be a document.
S104: the first server sends the relation chain information to the client, and the client receives and displays the relation chain information.
The technical scheme provided by the disclosure at least brings the following beneficial effects: after the first server obtains the identification of the service scene of the target application and the identification of the login account, the first server can request feedback information for generating the relationship chain information from the second server, generate the relationship chain information based on the service scene and the obtained feedback information, and return the relationship chain information to the client so that the client can display the relationship chain. In this way, the first server obtains feedback information from the second server and generates the relationship chain information in combination with the service scene, so that the relationship chain information is more flexibly generated.
Alternatively, in the embodiment of the present disclosure, based on fig. 2, as shown in fig. 3, the above step S103 may specifically include the following steps S105 to S107.
S105: the first server analyzes the feedback information to obtain target keywords and parameter information.
The target keywords are keywords corresponding to account relation types corresponding to the service scene, and the parameter information comprises identification and number of related accounts with account relation types between the login account and the target account.
Illustratively, assume that the account relationship type is common friends. Then, the first server may read, according to the identifier of the login account, a friend user identifier corresponding to the identifier of the login account from a correspondence between the user identifier and the friend user identifier, and obtain, according to the read friend user identifier, the identifier of the corresponding target user. For example: the login account is a user A, the user C and the user D are friend relations, a first server obtains that the user C and the user B are friend relations from the corresponding relation between the user identification and the friend user identification, the user D and the user B are friend relations, and the first server determines that the user B is a target user.
For another example, assume that the login account is user a, the target user is user B, user C is a friend of user a, and user C is a friend of user B, then user C is the relevant user.
S106: and the first server acquires a relation chain template corresponding to the target keyword from the information template database.
Illustratively, the relationship chain template is "$ { RECO_TEXT_USER_IDS }" and so on "$ { RECO_TEXT_USER_CNT }" as a common buddy.
S107: the first server generates relationship link information based on the service scene, the relationship link template and the parameter information.
Therefore, the corresponding relation between the current scene and the account relation type, the keywords and the corresponding relation are pre-configured in the second server, and the corresponding relation between the keywords and the relation chain template is pre-configured in the information template database, so that the acquisition of the relation chain template corresponding to the account relation type is more flexible. And the global unification of account relation types and relation chain templates is realized through keywords.
Alternatively, in the embodiment of the present disclosure, based on fig. 3, as shown in fig. 4, the above step S107 may specifically include the following steps S107A to S107C.
S107A: the first server analyzes the parameter information to obtain at least one parameter keyword included in the parameter information and a value corresponding to each parameter keyword.
Alternatively, the parameter key in the parameter information (text Param Map) may define its data structure with a tool (e.g., protobuf) that efficiently stores and reads structured data.
For example, the parameter information may include parameter keywords as follows:
RECO_TEXT_UNKNOWN(0),
RECO_TEXT_USER_IDS(1),
RECO_TEXT_USER_CNT(2),
RECO_TEXT_FANS_CNT(3),
RECO_TEXT_CATEGORY(4),
RECO_TEXT_YEARS(5),
RECO_TEXT_ONLINE_TIME(6),
RECO_TEXT_CONTACT_USER_IDS(7),
RECO_TEXT_COMMENT_ID(8),
RECO_TEXT_VERIFY_TAG(9),
RECO_TEXT_ORIGIN_TEXT(10),
RECO_TEXT_DAYS(11),
UNRECOGNIZED(-1)。
the RECO_TEXT_USER_IDS is used for indicating the identification of the accounts of the common friends, and the RECO_TEXT_USER_CNT is used for indicating the number of the accounts of the common friends. The reco_text_contact_user_ids is used to indicate the identity of the common address book CONTACT.
The information obtained by the first server analyzing the parameter information is specifically as follows:
Key:RECO_TEXT_USER_IDS
Value:123,456,789,147,258,369
Key:RECO_TEXT_FANS_CNT
Value:6
it can be seen that the parameter information comprises two parameter keywords, namely the identification and the number of the accounts of the common friends. Wherein, parameter key words: the value corresponding to the identity of the account of the common friend includes: 123 456, 789, 147, 258, 369 for indicating an identification of an account of a common friend of the login account and the target account. Parameter key: the number of the accounts of the common friends corresponds to a value of 6, and the value is used for indicating the number of the common friends of the login account and the target account.
S107B: the first server determines the information type according to at least one parameter key.
The information type is one of account name type, address book contact person type and default type.
In a specific implementation, the first server may determine that the information type is an account name type when the at least one parameter key includes a first parameter key for indicating an account name. When the first server comprises a second parameter keyword for indicating the name of the address book contact person in the at least one parameter keyword, the information type is determined to be the address book contact person type. The first server determines the information type as a default type when the first parameter key and the second parameter key are not included in the at least one parameter key.
In this way, the information type is determined through the parameter keywords included in the parameter information, so that the relationship chain information corresponding to the type is generated according to different information types, and the relationship chain information is generated more specifically and more accurately.
Illustratively, if the reco_text_user_ids is included in the at least one parameter key, the first server determines that the information type is an account name type. If the at least one parameter key includes RECO_TEXT_contact_USER_IDS, the first server determines that the information type is an address book CONTACT type.
S107C: the first server generates relationship link information based on the information type, preset parameters corresponding to the current scene, a relationship link template, at least one parameter keyword and a value corresponding to each parameter keyword.
Optionally, the preset parameters are pre-stored in the first server, and the preset parameters may include at least one of the following: information presentation type (textType), first indication information, second indication information. The information display type is used for indicating the display type of the relation chain information, the first indication information is used for indicating and displaying the head portrait corresponding to the account, and the second indication information is used for indicating and supporting the hyperlink function.
The information display type is a long information type or a short information type. When the information display type is a long information type, the relationship chain information comprises a preset number of account names, namely the number of explicit accounts (showUserCount) when the information display type is a long information type. When the information display type is a short information type, the account name is not included in the relation chain information.
Exemplary, the preset parameters include: information presentation type (text type) =long, number of explicit users (show user count) =3, whether user header (header url) =y is displayed, whether hyperlink (linkUrl) =y is supported. Wherein, information presentation type (text type) =long is used for representing the information presentation type of the relation chain information and is a long information type. The number of explicit users=3 is used to characterize that only 3 relevant users are displayed, whether user avatar=y is used to characterize that relevant user's avatar is displayed, whether hyperlink=y is supported for characterization: the supporting user account jumps to the home page of the relevant user by clicking on the relevant user's avatar or the relevant user's identity.
1. In the case where the information type is an account name type:
if the information type is the account name type, the first server can analyze the information display type included in the preset parameters. If the information display type is a long information type and the preset number of account names corresponding to the long information type is N account names, the first server can acquire a first value corresponding to the first parameter key words and acquire the identifiers of N related accounts in the first value, wherein the first value comprises the identifiers of all related accounts with account relation types of the login account and the target account. And then, the first server acquires the account name corresponding to each related account identifier according to each related account identifier in the N related account identifiers to obtain N account names, analyzes the account name placeholders in the relation chain template, replaces the account name placeholders with the N account names, and generates relation chain information. The relationship chain information includes N account names.
In this way, by including N account names corresponding to the identifications of N accounts, which are names easily recognized by the user, in the relationship chain information, the conversion of the identifications into the names is achieved. And only part of account names are displayed when the information is of a long information type, so that the simplicity of the relation chain is ensured, and the user has better look and feel.
Optionally, when the preset parameter further includes the first indication information, the first server may parse the first indication information included in the preset parameter, and obtain, according to the identifier of each of the N related accounts, an avatar address corresponding to the identifier of each related account, where the relationship link information may further include the N avatar addresses.
In this way, the relationship chain information includes the head portrait addresses of the N accounts, so that the client displays the head portraits of the N accounts when the relationship chain is displayed, the displayed relationship chain is more visual and concrete, and the user experience is improved.
Optionally, when the preset parameter further includes the second indication information, the first server may parse the second indication information included in the preset parameter, and obtain hyperlinks corresponding to the identifier of each related account according to the identifier of each related account in the N related accounts, where the relationship link information may further include N hyperlinks.
In this way, the relation chain information includes N hyperlinks corresponding to N accounts, so that when the relation chain is displayed, the client can respond to the click operation of the user on the account head portrait, jump to the personal page of the account, facilitate the operation of the user and improve the user experience.
Illustratively, in combination with the foregoing example, the RECO_TEXT_USER_IDS and RECO_TEXT_USER_CNT are placeholders for the relationship chain templates described above. Placeholder reco_text_user_ids may be replaced with 123, 456, 789, 147, 258, 369 described above, and placeholder reco_text_user_cnt may be replaced with 6.
2. In the case that the information type is the address book contact type:
if the information type is the address book contact type, the first server can generate the relationship chain information according to the mode of generating the relationship chain information when the information type is the account name type. The difference is that because the address book contacts are secret information, the first server obtains the corresponding address book contact names according to the identification of each related address book contact in the N related address book contacts, so that after the N address book contact names are obtained, the N address book contact names can be encrypted by using an encryption algorithm. The encryption algorithm is an encryption algorithm pre-agreed between the first server and the client so that the client can successfully decrypt.
3. In the case where the information type is a default type:
if the information type is the default type, the first server can analyze the quantity placeholders in the relation chain template, and correspondingly replace the quantity placeholders in the relation chain template by the value corresponding to the parameter key to generate relation chain information. The parameter keywords are used for indicating the number of related accounts with account relation types between the login account and the target account.
Optionally, the default type also supports the generation of relational chain information that does not require placeholders.
In the default type, the conversion from the identification of an account or address book contact person to a name is not needed, and flexible access of relation chain information of a plain text type without a placeholder is supported.
The technical scheme at least brings the following beneficial effects: the first server generates relationship chain information by analyzing at least one parameter keyword and a corresponding value included in the parameter information, determining an information type according to the at least one parameter keyword, and generating preset parameters, a relationship chain template, the at least one parameter keyword and the corresponding value corresponding to the current scene based on the information type. Thus, the information type is determined according to at least one parameter keyword, and the relation chain information is generated in different modes according to different information types. And pre-storing preset parameters corresponding to the current scene in the first server so as to acquire and use the information when the relation chain information is generated.
Optionally, in an embodiment of the present disclosure, the first server may generate the relationship chain information based on the service scenario, the relationship chain template and the parameter information, and may specifically include: the first server generates relationship link information in a preset format based on the service scene, the relationship link template and the parameter information. In this case, the first server in the step S104 returns the relationship chain information to the client, which may include: and the first server sends the relationship chain information in a preset format to the client.
Therefore, the pressure of the first server for generating the relationship chain can be reduced by returning the relationship chain information in the preset format to the client instead of the relationship chain, and the client generates the relationship chain by itself, so that the relationship chain is more flexible to generate, and flexible access of the relationship chain is realized.
Optionally, in the embodiment of the present disclosure, after sending the request message, the first server may further send preset information to the client, where the feedback information is not obtained, where the preset information is plain text type information.
Therefore, when the second server cannot return the feedback information, the first server can return the spam relation chain information to the client, and normal display of the relation chain on the client is ensured.
Optionally, in the embodiment of the present disclosure, the second server may obtain the priority of the candidate account relationship type in response to an operation of adding the candidate account relationship type in the current scenario, and establish a correspondence between the identifier of the current scenario and the candidate account relationship type, a correspondence between the candidate account relationship type and the candidate keyword, and a correspondence between the candidate keyword and the candidate relationship chain template. The second server may send the correspondence of the candidate keyword and the candidate relationship chain template to the information template database.
Therefore, the user only needs to establish the corresponding relation between the identification of the current scene and the account relation type, the corresponding relation between the account relation type and the keywords and the corresponding relation between the keywords and the relation chain template in the second server, so that the generation of the relation chain can be realized, the code is not required to be rewritten, and the development and production efficiency is greatly improved.
Optionally, in the embodiment of the present disclosure, the second server may delete the correspondence between the identifier of the current scene and the offline account relationship type and the correspondence between the offline account relationship type and the offline keyword in response to a delete operation of the offline account relationship type corresponding to the current scene. The second server may send deletion indication information to the information template database, where the deletion indication information is used to indicate deletion of a corresponding relationship between the offline keywords and the offline relationship chain template.
In this way, the corresponding relation between the identification of the current scene and the account relation type, the corresponding relation between the account relation type and the keywords, and the maintenance of the corresponding relation between the keywords and the relation chain template can be displayed to the operation user through the user interface. Thus, the operating user may maintain these correspondences through the user interface to modify relationship templates, modify keywords, or modify account relationship types. Therefore, the user can achieve the purpose of uniformly modifying the display relation chain by only modifying at least one of the relation chain template, the key word or the account relation type in the second server, and the code is not required to be modified, so that the development and production efficiency is greatly improved.
The foregoing description of the embodiments of the present disclosure has been presented primarily in terms of methods. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative method steps described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Fig. 5 is a logical block diagram of an information generating apparatus 50 according to an exemplary embodiment. Referring to fig. 5, the information generating apparatus 50 includes: an acquisition module 501, a transmission module 502 and a generation module 503.
An obtaining module 501 configured to obtain, when a user account enters a page of a target application, an identifier of a service scene of the target application and an identifier of a login account;
a sending module 502 configured to perform sending a request message, where the request message includes the identifier of the service scenario and the identifier of the login account acquired by the acquiring module 501, and the request message is used to request to acquire feedback information, where the feedback information is used to generate relationship chain information;
the obtaining module 501 is further configured to perform obtaining the feedback information;
a generating module 503 configured to perform generation of the relationship chain information based on the service scenario and the feedback information acquired by the acquiring module 501, where the relationship chain information is used to generate a relationship chain to be displayed;
the sending module 502 is further configured to perform returning the relationship chain information generated by the generating module 503 to a client.
Optionally, the generating module 503 is specifically configured to perform:
Analyzing the feedback information to obtain a target keyword and parameter information, wherein the target keyword is a keyword corresponding to an account relationship type corresponding to the service scene, and the parameter information comprises the identification and the number of related accounts of the account relationship type between the login account and the target account;
acquiring a relationship chain template corresponding to the target keyword from an information template database;
and generating the relationship chain information based on the service scene, the relationship chain template and the parameter information.
Optionally, when the identifier of the service scene is the identifier of the current scene, the account relationship type is a relationship type with highest priority among a plurality of account relationship types corresponding to the current scene;
when the identification of the service scene comprises the identification of the current scene and the identification of the upstream scene, the account relationship type is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene, and the upstream scene is the last display scene of the current scene.
Optionally, the generating module 503 is specifically configured to perform:
analyzing the parameter information to obtain at least one parameter keyword included in the parameter information and a value corresponding to each parameter keyword:
Determining an information type according to the at least one parameter keyword, wherein the information type is one of an account name type, an address book contact type and a default type;
generating the relationship link information based on the information type, preset parameters corresponding to the current scene, the relationship link template, the at least one parameter keyword and a value corresponding to each parameter keyword, wherein the preset parameters are pre-stored in the server, and the preset parameters comprise at least one of the following: the information display system comprises an information display type, first indication information and second indication information, wherein the information display type is used for indicating the display type of the relation chain information, the first indication information is used for indicating a head portrait corresponding to a display account, and the second indication information is used for indicating support of a hyperlink function.
Optionally, the generating module 503 is specifically configured to perform:
when the at least one parameter keyword comprises a first parameter keyword for indicating an account name, determining that the information type is the account name type;
when the at least one parameter keyword comprises a second parameter keyword for indicating the name of the address book contact person, determining that the information type is the address book contact person type;
And when the first parameter keyword and the second parameter keyword are not included in the at least one parameter keyword, determining that the information type is the default type.
Optionally, when the preset parameter includes the information presentation type, the generating module 503 is specifically configured to perform:
if the information type is the account name type, analyzing the information display type included in the preset parameter, wherein the information display type is a long information type or a short information type, when the information display type is the long information type, the relationship chain information comprises a preset number of account names, and when the information display type is the short information type, the relationship chain information does not comprise account names;
if the information display type is the long information type and the preset number of account names corresponding to the long information type is N account names, acquiring a first value corresponding to the first parameter key word, and acquiring the identifiers of N related accounts in the first value, wherein the first value comprises the identifiers of all related accounts of the account relation type between the login account and the target account;
Acquiring the account name corresponding to the identifier of each related account according to the identifier of each related account in the identifiers of the N related accounts to obtain N account names;
resolving account name placeholders in the relation chain template;
and replacing the account name placeholders with the N account names to generate the relation chain information, wherein the relation chain information comprises the N account names.
Optionally, when the preset parameter further includes the first indication information, as shown in fig. 6, the information generating apparatus further includes: a parsing module 504;
the parsing module 504 is configured to parse the first indication information included in the preset parameter;
the obtaining module 501 is further configured to obtain an avatar address corresponding to each of the N related accounts according to the identifier of each related account, where the relationship chain information further includes N avatar addresses.
Optionally, the parsing module 504 is configured to parse the second indication information included in the preset parameter;
the obtaining module 501 is further configured to obtain hyperlinks corresponding to the identifiers of each related account according to the identifier of each related account in the N related accounts, where the relationship chain information further includes N hyperlinks.
Optionally, the generating module 503 is specifically configured to perform:
if the information type is the default type, analyzing the number placeholders in the relation chain template;
and correspondingly replacing the quantity placeholders in the relation chain template with values corresponding to parameter keywords to generate the relation chain information, wherein the parameter keywords are used for indicating the quantity of the related accounts of the account relation type of the login account and the target account.
Optionally, the generating module 503 is specifically configured to perform:
generating relationship chain information in a preset format based on the service scene, the relationship chain template and the parameter information;
the sending module 502 is specifically configured to perform:
and sending the relationship chain information in the preset format to the client.
Optionally, the sending module 502 is further configured to send preset information to the client if the feedback information is not acquired, where the preset information is plain text type information.
Fig. 7 is a logical block diagram of an information generating apparatus 70 according to an exemplary embodiment. Referring to fig. 7, the information generating apparatus 70 includes: a receiving module 701, a generating module 702 and a transmitting module 703.
A receiving module 701, configured to perform receiving a request message, where the request message includes an identifier of a service scenario of a target application and an identifier of a login account, the request message is used to request to obtain feedback information, and the feedback information is used to generate relationship chain information;
a generating module 702 configured to perform generating the feedback information according to the identification of the service scenario and the identification of the login account received by the receiving module;
a sending module 703 configured to perform sending the feedback information generated by the generating module.
Optionally, the feedback information includes target keywords and parameter information, and the generating module 702 is specifically configured to perform:
determining a corresponding account relation type according to the identification of the service scene;
acquiring the target keywords corresponding to the account relationship types;
determining the parameter information according to the account relation type and the identification of the login account, wherein the parameter information comprises the identification and the number of related accounts of the account relation type between the login account and the target account;
and generating the feedback information according to the target keyword and the parameter information.
Optionally, the generating module 702 is specifically configured to perform:
and when the identification of the service scene is the identification of the current scene, determining the relationship type with the highest priority among a plurality of relationship types corresponding to the current scene as the account relationship type.
Optionally, the generating module 702 is specifically configured to perform:
when the identification of the service scene comprises the identification of the current scene and the identification of an upstream scene, determining the relationship type which is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene as the account relationship type, wherein the upstream scene is the last display scene of the current scene.
Optionally, as shown in fig. 7, the information generating apparatus further includes: a set-up module 704;
an obtaining module 701, further configured to perform an operation in response to adding a candidate account relationship type in the current scenario, obtaining a priority of the candidate account relationship type;
the establishing module 704 is configured to perform establishing a correspondence between the identifier of the current scene and the candidate account relationship type, a correspondence between the candidate account relationship type and a candidate keyword, and a correspondence between the candidate keyword and a candidate relationship chain template;
The sending module 703 is further configured to send the correspondence between the candidate keyword and the candidate relationship chain template to an information template database.
Optionally, as shown in fig. 7, the information generating apparatus further includes: a delete module 705;
a deletion module 705 configured to perform a deletion operation in response to a type of a offline account relationship corresponding to a current scene, to delete a correspondence between an identification of the current scene and the type of the offline account relationship, and a correspondence between the type of the offline account relationship and a offline keyword;
the sending module 703 is further configured to send deletion instruction information to the information template database, where the deletion instruction information is used to instruct to delete the corresponding relationship between the offline keywords and the offline relationship chain template.
Fig. 8 is a block diagram showing a structure of a server, which may be an information generating apparatus, according to an exemplary embodiment. The server may vary considerably in configuration or performance and may include one or more processors 81 and one or more memories 82. Wherein the memory 82 stores at least one instruction that is loaded and executed by the processor 81 to implement the information generating method provided by the above-described respective method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product comprising one or more instructions executable to perform the above-described method.
In an exemplary embodiment, the disclosure provides a computer readable storage medium, where the instructions in the storage medium are executed by a processor of a server, so that the server can execute the instructions in the storage medium or one or more instructions in the computer program product to implement the respective processes of the method embodiments described above, and the same technical effects are achieved, and for avoiding repetition, a detailed description is omitted herein.
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 disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (30)

1. An information generating method applied to a server, comprising:
when a user account enters a page of a target application, acquiring an identification of a service scene of the target application and an identification of a login account;
sending a request message, wherein the request message comprises an identifier of the service scene and an identifier of the login account, and is used for requesting to acquire feedback information, and the feedback information is used for generating relationship chain information;
acquiring the feedback information;
analyzing the feedback information to obtain a target keyword and parameter information, wherein the target keyword is a keyword corresponding to an account relationship type corresponding to the service scene, and the parameter information comprises the identification and the number of related accounts of the account relationship type between the login account and the target account;
acquiring a relationship chain template corresponding to the target keyword from an information template database;
analyzing the parameter information to obtain at least one parameter keyword included in the parameter information and a value corresponding to each parameter keyword;
Determining an information type according to the at least one parameter keyword, wherein the information type is one of an account name type, an address book contact type and a default type;
generating the relationship chain information based on the information type, preset parameters corresponding to the current scene, the relationship chain template, the at least one parameter keyword and a value corresponding to each parameter keyword, wherein the preset parameters are pre-stored in the server, and the preset parameters comprise at least one of the following: the information display system comprises an information display type, first indication information and second indication information, wherein the information display type is used for indicating the display type of the relation chain information, the first indication information is used for indicating a head portrait corresponding to a display account, the second indication information is used for indicating support of a hyperlink function, and the relation chain information is used for generating a relation chain to be displayed;
and returning the relation chain information to the client.
2. The information generating method according to claim 1, wherein,
when the identification of the service scene is the identification of the current scene, the account relationship type is the relationship type with the highest priority among a plurality of account relationship types corresponding to the current scene;
When the identification of the service scene comprises the identification of the current scene and the identification of the upstream scene, the account relationship type is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene, and the upstream scene is the last display scene of the current scene.
3. The information generating method according to claim 1, wherein said determining the information type based on the at least one parameter keyword includes:
when the at least one parameter keyword comprises a first parameter keyword for indicating an account name, determining that the information type is the account name type;
when the at least one parameter keyword comprises a second parameter keyword for indicating the name of the address book contact person, determining that the information type is the address book contact person type;
and when the first parameter keyword and the second parameter keyword are not included in the at least one parameter keyword, determining that the information type is the default type.
4. The information generating method according to claim 3, wherein when the preset parameter includes the information presentation type, the generating the relationship chain information based on the information type, the preset parameter corresponding to the current scene, the relationship chain template, the at least one parameter keyword, and the value corresponding to each parameter keyword includes:
If the information type is the account name type, analyzing the information display type included in the preset parameter, wherein the information display type is a long information type or a short information type, when the information display type is the long information type, the relationship chain information comprises a preset number of account names, and when the information display type is the short information type, the relationship chain information does not comprise account names;
if the information display type is the long information type and the preset number of account names corresponding to the long information type is N account names, acquiring a first value corresponding to the first parameter key word, and acquiring the identifiers of N related accounts in the first value, wherein the first value comprises the identifiers of all related accounts of the account relation type between the login account and the target account;
acquiring the account name corresponding to the identifier of each related account according to the identifier of each related account in the identifiers of the N related accounts to obtain N account names;
resolving account name placeholders in the relation chain template;
and replacing the account name placeholders with the N account names to generate the relation chain information, wherein the relation chain information comprises the N account names.
5. The method of claim 4, wherein when the preset parameter further includes the first indication information, the generating the relationship chain information further includes:
analyzing the first indication information included in the preset parameters;
and acquiring the head portrait address corresponding to the identification of each related account according to the identification of each related account in the N related accounts, wherein the relation chain information also comprises N head portrait addresses.
6. The information generating method according to claim 4, wherein when the preset parameter further includes the second instruction information, the generating the relationship chain information further includes:
analyzing the second indication information included in the preset parameters;
and acquiring hyperlinks corresponding to the identifiers of each related account according to the identifiers of each related account in the N related accounts, wherein the relationship chain information also comprises N hyperlinks.
7. The information generating method according to claim 1, wherein the generating the relationship chain information based on the information type, a preset parameter corresponding to a current scene, the relationship chain template, the at least one parameter key, and a value corresponding to each parameter key includes:
If the information type is the default type, analyzing the number placeholders in the relation chain template;
and correspondingly replacing the quantity placeholders in the relation chain template with values corresponding to parameter keywords to generate the relation chain information, wherein the parameter keywords are used for indicating the quantity of the related accounts of the account relation type of the login account and the target account.
8. The information generating method according to claim 1 or 2, characterized by further comprising:
generating relationship chain information in a preset format based on the service scene, the relationship chain template and the parameter information;
the returning the relationship chain information to the client comprises the following steps:
and sending the relationship chain information in the preset format to the client.
9. The information generating method according to claim 1 or 2, characterized in that after the request message is transmitted, the information generating method further comprises:
and under the condition that the feedback information is not acquired, sending preset information to the client, wherein the preset information is information of a plain text type.
10. An information generation method, comprising:
receiving a request message, wherein the request message comprises an identification of a business scene of a target application and an identification of a login account, and the request message is used for requesting to acquire feedback information, and the feedback information comprises a target keyword and parameter information;
Determining a corresponding account relation type according to the identification of the service scene;
acquiring the target keywords corresponding to the account relationship types; the target keywords are used for the server to acquire corresponding relation chain templates in the information template database;
determining the parameter information according to the account relation type and the identification of the login account, wherein the parameter information comprises the identification and the number of related accounts of the account relation type of the login account and the target account, the parameter information further comprises at least one parameter keyword and a value corresponding to each parameter keyword, the at least one parameter keyword is used for determining an information type, and the information type is one of an account name type, an address book contact type and a default type;
the information type, preset parameters corresponding to the current scene, the relation chain template, the at least one parameter keyword and a value corresponding to each parameter keyword are used for generating relation chain information, the preset parameters are pre-stored in the server, and the preset parameters comprise at least one of the following: the information display system comprises an information display type, first indication information and second indication information, wherein the information display type is used for indicating the display type of the relation chain information, the first indication information is used for indicating a head portrait corresponding to a display account, the second indication information is used for indicating support of a hyperlink function, and the relation chain information is used for generating a relation chain to be displayed;
Generating the feedback information according to the target keyword and the parameter information;
and sending the feedback information.
11. The method of claim 10, wherein the determining the corresponding account relationship type according to the identification of the service scenario comprises:
and when the identification of the service scene is the identification of the current scene, determining the relationship type with the highest priority among a plurality of relationship types corresponding to the current scene as the account relationship type.
12. The method of claim 11, wherein the determining the corresponding account relationship type according to the identification of the service scenario comprises:
when the identification of the service scene comprises the identification of the current scene and the identification of an upstream scene, determining the relationship type which is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene as the account relationship type, wherein the upstream scene is the last display scene of the current scene.
13. The information generating method according to any one of claims 10 to 12, characterized in that the information generating method further comprises:
Responding to the operation of adding the candidate account relation type under the current scene, acquiring the priority of the candidate account relation type, and establishing the corresponding relation between the identification of the current scene and the candidate account relation type, the corresponding relation between the candidate account relation type and the candidate keyword, and the corresponding relation between the candidate keyword and the candidate relation chain template;
and sending the corresponding relation between the candidate keywords and the candidate relationship chain templates to an information template database.
14. The information generating method according to any one of claims 10 to 12, characterized in that the information generating method further comprises:
deleting the corresponding relation between the identification of the current scene and the offline account relation type and the corresponding relation between the offline account relation type and the offline keyword in response to the deleting operation of the offline account relation type corresponding to the current scene;
and sending deletion indication information to an information template database, wherein the deletion indication information is used for indicating the corresponding relation between the offline keywords and the offline relation chain template to be deleted.
15. An information generating apparatus applied to a server, comprising:
The acquisition module is configured to acquire the identification of the business scene of the target application and the identification of the login account when the user account enters the page of the target application;
the sending module is configured to send a request message, wherein the request message comprises the identification of the service scene and the identification of the login account, which are acquired by the acquisition module, and the request message is used for requesting to acquire feedback information, and the feedback information is used for generating relationship chain information;
the acquisition module is further configured to perform acquisition of the feedback information;
a generation module configured to perform: analyzing the feedback information to obtain a target keyword and parameter information, wherein the target keyword is a keyword corresponding to an account relationship type corresponding to the service scene, and the parameter information comprises the identification and the number of related accounts of the account relationship type between the login account and the target account; acquiring a relationship chain template corresponding to the target keyword from an information template database; analyzing the parameter information to obtain at least one parameter keyword included in the parameter information and a value corresponding to each parameter keyword; determining an information type according to the at least one parameter keyword, wherein the information type is one of an account name type, an address book contact type and a default type; generating the relationship chain information based on the information type, preset parameters corresponding to the current scene, the relationship chain template, the at least one parameter keyword and a value corresponding to each parameter keyword, wherein the preset parameters are pre-stored in the server, and the preset parameters comprise at least one of the following: the information display system comprises an information display type, first indication information and second indication information, wherein the information display type is used for indicating the display type of the relation chain information, the first indication information is used for indicating a head portrait corresponding to a display account, the second indication information is used for indicating support of a hyperlink function, and the relation chain information is used for generating a relation chain to be displayed;
The sending module is further configured to return the relationship chain information generated by the generating module to a client.
16. The information generating apparatus according to claim 15, wherein,
when the identification of the service scene is the identification of the current scene, the account relationship type is the relationship type with the highest priority among a plurality of account relationship types corresponding to the current scene;
when the identification of the service scene comprises the identification of the current scene and the identification of the upstream scene, the account relationship type is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene, and the upstream scene is the last display scene of the current scene.
17. The information generating apparatus according to claim 15, wherein the generating module is specifically configured to perform:
when the at least one parameter keyword comprises a first parameter keyword for indicating an account name, determining that the information type is the account name type;
when the at least one parameter keyword comprises a second parameter keyword for indicating the name of the address book contact person, determining that the information type is the address book contact person type;
And when the first parameter keyword and the second parameter keyword are not included in the at least one parameter keyword, determining that the information type is the default type.
18. The information generating apparatus according to claim 17, wherein when the preset parameter includes the information presentation type, the generating module is specifically configured to perform:
if the information type is the account name type, analyzing the information display type included in the preset parameter, wherein the information display type is a long information type or a short information type, when the information display type is the long information type, the relationship chain information comprises a preset number of account names, and when the information display type is the short information type, the relationship chain information does not comprise account names;
if the information display type is the long information type and the preset number of account names corresponding to the long information type is N account names, acquiring a first value corresponding to the first parameter key word, and acquiring the identifiers of N related accounts in the first value, wherein the first value comprises the identifiers of all related accounts of the account relation type between the login account and the target account;
Acquiring the account name corresponding to the identifier of each related account according to the identifier of each related account in the identifiers of the N related accounts to obtain N account names;
resolving account name placeholders in the relation chain template;
and replacing the account name placeholders with the N account names to generate the relation chain information, wherein the relation chain information comprises the N account names.
19. The information generating apparatus according to claim 18, wherein when the preset parameter further includes the first instruction information, the information generating apparatus further includes: an analysis module;
the analysis module is configured to perform analysis on the first indication information included in the preset parameter;
the acquiring module is further configured to perform the step of acquiring the header address corresponding to the identifier of each related account according to the identifier of each related account in the identifiers of the N related accounts, and the relationship chain information further includes N header addresses.
20. The information generating apparatus according to claim 18, wherein when the preset parameter further includes the second instruction information, the information generating apparatus further comprises: an analysis module;
the analysis module is configured to perform analysis on the second indication information included in the preset parameters;
The obtaining module is further configured to obtain hyperlinks corresponding to the identifiers of the related accounts according to the identifiers of the related accounts in the N related accounts, and the relationship chain information further includes N hyperlinks.
21. The information generating apparatus according to claim 15, wherein the generating module is specifically configured to perform:
if the information type is the default type, analyzing the number placeholders in the relation chain template;
and correspondingly replacing the quantity placeholders in the relation chain template with values corresponding to parameter keywords to generate the relation chain information, wherein the parameter keywords are used for indicating the quantity of the related accounts of the account relation type of the login account and the target account.
22. The information generating apparatus according to claim 15 or 16, wherein the generating module is specifically configured to perform:
generating relationship chain information in a preset format based on the service scene, the relationship chain template and the parameter information;
the sending module is specifically configured to perform:
and sending the relationship chain information in the preset format to the client.
23. The information generating apparatus according to claim 15 or 16, wherein,
the sending module is further configured to send preset information to the client under the condition that the feedback information is not acquired, wherein the preset information is of a plain text type.
24. An information generating apparatus, comprising:
the receiving module is configured to execute receiving a request message, wherein the request message comprises an identifier of a business scene of a target application and an identifier of a login account, and the request message is used for requesting to acquire feedback information, and the feedback information comprises a target keyword and parameter information;
a generation module configured to perform: determining a corresponding account relation type according to the identification of the service scene; acquiring the target keywords corresponding to the account relationship types; the target keywords are used for the server to acquire corresponding relation chain templates in the information template database; determining the parameter information according to the account relation type and the identification of the login account, wherein the parameter information comprises the identification and the number of related accounts of the account relation type of the login account and the target account, the parameter information further comprises at least one parameter keyword and a value corresponding to each parameter keyword, the at least one parameter keyword is used for determining an information type, and the information type is one of an account name type, an address book contact type and a default type; the information type, preset parameters corresponding to the current scene, the relation chain template, the at least one parameter keyword and a value corresponding to each parameter keyword are used for generating relation chain information, the preset parameters are pre-stored in the server, and the preset parameters comprise at least one of the following: the information display system comprises an information display type, first indication information and second indication information, wherein the information display type is used for indicating the display type of the relation chain information, the first indication information is used for indicating a head portrait corresponding to a display account, the second indication information is used for indicating support of a hyperlink function, and the relation chain information is used for generating a relation chain to be displayed; generating the feedback information according to the target keyword and the parameter information;
And the sending module is configured to send the feedback information generated by the generating module.
25. The information generating apparatus according to claim 24, wherein the generating module is specifically configured to perform:
and when the identification of the service scene is the identification of the current scene, determining the relationship type with the highest priority among a plurality of relationship types corresponding to the current scene as the account relationship type.
26. The information generating apparatus according to claim 24, wherein the generating module is specifically configured to perform:
when the identification of the service scene comprises the identification of the current scene and the identification of an upstream scene, determining the relationship type which is the same as the account relationship type corresponding to the upstream scene in a plurality of relationship types corresponding to the current scene as the account relationship type, wherein the upstream scene is the last display scene of the current scene.
27. The information generating apparatus according to any one of claims 24 to 26, characterized in that the information generating apparatus further comprises: establishing a module;
the acquisition module is further configured to perform an operation of responding to the addition of the candidate account relation type in the current scene, and acquire the priority of the candidate account relation type;
The establishing module is configured to perform establishing a corresponding relation between the identification of the current scene and the candidate account relation type, a corresponding relation between the candidate account relation type and a candidate keyword, and a corresponding relation between the candidate keyword and a candidate relation chain template;
the sending module is further configured to send the correspondence between the candidate keywords and the candidate relationship chain templates to an information template database.
28. The information generating apparatus according to any one of claims 24 to 26, characterized in that the information generating apparatus further comprises: deleting the module;
the deleting module is configured to execute a deleting operation in response to a type of the offline account relationship corresponding to the current scene, and delete the corresponding relationship between the identifier of the current scene and the type of the offline account relationship and the corresponding relationship between the type of the offline account relationship and the offline keyword;
the sending module is further configured to send deletion indication information to an information template database, where the deletion indication information is used to indicate to delete the corresponding relationship between the offline keywords and the offline relationship chain template.
29. A server, comprising:
A processor;
a memory for storing the processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the information generating method of any of claims 1-9 or to implement the information generating method of any of claims 10-14.
30. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of a server, enable the server to perform the information generation method of any one of claims 1-9 or to perform the information generation method of any one of claims 10-14.
CN202110969486.XA 2021-08-23 2021-08-23 Information generation method, device, server and storage medium Active CN113722589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110969486.XA CN113722589B (en) 2021-08-23 2021-08-23 Information generation method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110969486.XA CN113722589B (en) 2021-08-23 2021-08-23 Information generation method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN113722589A CN113722589A (en) 2021-11-30
CN113722589B true CN113722589B (en) 2024-02-06

Family

ID=78677407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110969486.XA Active CN113722589B (en) 2021-08-23 2021-08-23 Information generation method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113722589B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134405B (en) * 2022-09-01 2023-01-20 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330657A (en) * 2015-06-19 2017-01-11 阿里巴巴集团控股有限公司 Friend processing method and device
CN108574618A (en) * 2017-03-09 2018-09-25 腾讯科技(北京)有限公司 Pushed information methods of exhibiting and device based on social networks chain
CN111866541A (en) * 2020-08-06 2020-10-30 广州繁星互娱信息科技有限公司 Live broadcast recommendation method and device, server and storage medium
CN112004110A (en) * 2020-08-31 2020-11-27 北京达佳互联信息技术有限公司 Prompt message processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769628B (en) * 2012-07-27 2014-03-26 腾讯科技(深圳)有限公司 Page login method and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330657A (en) * 2015-06-19 2017-01-11 阿里巴巴集团控股有限公司 Friend processing method and device
CN108574618A (en) * 2017-03-09 2018-09-25 腾讯科技(北京)有限公司 Pushed information methods of exhibiting and device based on social networks chain
CN111866541A (en) * 2020-08-06 2020-10-30 广州繁星互娱信息科技有限公司 Live broadcast recommendation method and device, server and storage medium
CN112004110A (en) * 2020-08-31 2020-11-27 北京达佳互联信息技术有限公司 Prompt message processing method and device

Also Published As

Publication number Publication date
CN113722589A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
AU2008261648B2 (en) Personalized social networking application content
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
US20130246504A1 (en) Method for subscribing to notification, apparatus and system
US20120017222A1 (en) Interface For Telecommunication Services Using Uniform Resource Identifiers
WO2019100986A1 (en) Information sending method and apparatus
CN107294832B (en) Method and device for adding friends
US11244153B2 (en) Method and apparatus for processing information
KR20100086677A (en) Method and apparatus for providing community widget
CN106487662B (en) Information sharing method and device
CN113722589B (en) Information generation method, device, server and storage medium
CN114385382A (en) Light application access method and device, computer equipment and storage medium
CN113946739A (en) Sensitive data query method, device, equipment and storage medium
CN112905936A (en) Page recording animation generation method, page operation log query method and computer equipment
KR20090002252A (en) System and method for collaborative work of document
CN112995014A (en) Method and device for mass sending of messages
CN108737350B (en) Information processing method and client
US20080176587A1 (en) System and a method for sending digital content to a mobile device
JPWO2010119552A1 (en) Service system
CN114936151A (en) Display method, device, equipment, storage medium and communication system of debugging page
CN113900764A (en) Page data acquisition method, page data display method and device
KR20210156367A (en) Mobile web content providing system and method
CN111966506A (en) Content sharing method based on different application programs and computer equipment
CN114386010A (en) Application login method and device, electronic equipment and storage medium
CN111275563A (en) WeChat action-based generation method and system of interpersonal relationship and storage medium
CN113824625B (en) Information interaction 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