Method, device, computer equipment and storage medium for adding friends
By obtaining the target object description information in the friend addition request sent by the client, and querying the correspondence between the object description information and the welcome information, the problem of the lack of pertinence of the welcome information in the existing technology is solved, and the welcome information is accurate and diverse. Sexually sent.
Patent Information
- Application Number
- CN202210254267.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-03-15
AI Technical Summary
The welcome messages of existing applications such as Enterprise WeChat lack pertinence and cannot send accurate welcome messages based on specific target object description information.
By obtaining the target object description information in the friend addition request sent by the client, the corresponding relationship between the object description information and the welcome information is queried, and the target welcome information is determined and returned so that the client can display it in the dialog box.
It realizes the accurate sending of welcome information, improves the diversity and flexibility of welcome information, and meets the personalized needs of different target audiences.
Smart Images

Figure CN114615225B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer equipment, and in particular to a friend adding method, device, computer equipment and storage medium. Background Art
[0002] In order to help enterprises communicate better with customers, some applications have emerged, such as WeChat for Enterprises. In related technologies, a welcome message is usually set for an enterprise. For example, the welcome message corresponding to an enterprise is "Hello, new customer". When a member of the enterprise adds any friend in the application, the welcome message "Hello, new customer" will be automatically sent. It can be seen that the welcome message of the enterprise is poorly targeted. Summary of the invention
[0003] The present application proposes a friend adding method, apparatus, computer equipment and storage medium.
[0004] In one aspect, an embodiment of the present application provides a method for adding a friend, including:
[0005] Obtaining a friend adding request sent by a client, wherein the adding request includes description information of a target object;
[0006] According to the description information of the target object, query the correspondence between the object description information and the welcome information to determine the target welcome information corresponding to the description information of the target object;
[0007] The target welcome information is returned to the client, so that the client displays the target welcome information in a dialog box with the target object.
[0008] Another aspect of the present application provides a device for adding friends, including:
[0009] An acquisition module, used to acquire a friend adding request sent by a client, wherein the adding request includes description information of a target object;
[0010] A determination module, configured to query the correspondence between the object description information and the welcome information according to the description information of the target object, so as to determine the target welcome information corresponding to the description information of the target object;
[0011] The returning module is used to return the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object.
[0012] Another aspect of the present application provides a computer device, including a processor and a memory;
[0013] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the friend adding method as described in the above-mentioned embodiment.
[0014] Another aspect of the present application provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for adding friends as described in the above-mentioned first aspect of the embodiment.
[0015] Another aspect of the present application provides a computer program product, characterized in that it includes a computer program, and when the computer program is executed by a processor, it implements the method for adding friends according to the above-mentioned one aspect of the embodiment.
[0016] The friend adding method, device, computer equipment and storage medium of the embodiment of the present application obtains a friend adding request sent by a client, wherein the adding request includes description information of a target object, queries the correspondence between the object description information and the welcome information according to the description information of the target object, so as to determine the target welcome information corresponding to the description information of the target object, and returns the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object. Thus, by determining the welcome information returned to the client according to the description information of the target object, the sending of the welcome information is made more accurate. In addition, the welcome information returned to the client is determined based on the correspondence between the object description information and the welcome information. Since the object description information is diverse, the configuration of the welcome information is also flexible.
[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0019] Figure 1 A flowchart of a method for adding friends provided in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of a welcome information configuration page corresponding to a business activity provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of a welcome information configuration page corresponding to enterprise members provided in an embodiment of the present application;
[0022] Figure 4A schematic diagram of a welcome information configuration page corresponding to the department to which an enterprise member belongs provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of a welcome information configuration page corresponding to an enterprise provided in an embodiment of the present application;
[0024] Figure 6 A flowchart of another method for adding friends provided in an embodiment of the present application;
[0025] Figure 7 A flowchart of another method for adding friends provided in an embodiment of the present application;
[0026] Figure 8 A flowchart of another method for adding friends provided in an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of the structure of a device for adding friends provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0029] The following describes the friend adding method, apparatus, computer device and storage medium of the embodiments of the present application with reference to the accompanying drawings.
[0030] Figure 1 A flowchart of a method for adding friends provided in an embodiment of the present application.
[0031] The friend adding method of the embodiment of the present application can be executed by the friend adding device provided in the embodiment of the present application. The device can be configured in a computer device to determine the welcome message to be sent to the client based on the description information of the target object, so that the sending of the welcome message is more accurate.
[0032] like Figure 1 As shown, the method of adding the friend includes:
[0033] Step 101: Obtain a friend adding request sent by a client, wherein the adding request includes description information of a target object.
[0034] The friend adding method of the embodiment of the present application can be executed by a service end, which can be a computer device. After a user opens a client of an application, he can add a target object by scanning the QR code of the target object. At this time, the service end can directly obtain the friend adding request sent by the client, or the server obtains the friend adding request sent by the client and forwards it to the service end, or after the server obtains the friend adding request, it sends the user ID, the description information of the target object in the friend adding request, etc. to the service end.
[0035] In this application, the target object may be a member of an enterprise, and the adding request may include description information of the target object, such as the identifier of the target object, the identifier of the enterprise to which the target object belongs, the identifier of the department to which the target object belongs, the identifier of the business activity for which the target object is responsible, etc.
[0036] Among them, the identifier of the target object can be the account number, name, etc. of the target object, the identifier of the enterprise can be the name of the enterprise, the unified social credit code of the enterprise, etc., the identifier of the department can be the department number, department name, etc., and the identifier of the business activity can be the business activity number, business activity name, etc.
[0037] Step 102: query the correspondence between the object description information and the welcome information according to the description information of the target object to determine the target welcome information corresponding to the description information of the target object.
[0038] In this application, the business end can provide the function of configuring various welcome information. The enterprise can pre-configure the welcome information as needed. The business end can respond to the welcome information configuration operation and generate a correspondence between the object description information and the welcome information for the enterprise.
[0039] In the present application, the correspondence between the object description information and the welcome information includes at least one of the following: the correspondence between the business activity identifier and the welcome information, the correspondence between the object identifier and the welcome information, the correspondence between the department identifier and the welcome information, the correspondence between the enterprise identifier and the welcome information, etc. Thus, the welcome information corresponding to the object description information can be configured according to actual needs, thereby improving the flexibility of the welcome information configuration.
[0040] Below Figure 2-Figure 5 For example, Figure 2-Figure 5 Four welcome message configuration pages are shown.
[0041] Figure 2 A schematic diagram of a welcome information configuration page corresponding to a business activity provided in an embodiment of the present application. Figure 2As shown, during configuration, you can enter the name and company logo, select the department and business activity logo, enter a welcome message, etc. Welcome message 1 can be in plain text format, and the type of welcome message 2 can be one of a picture, graphic, and mini-program. Among them, if the configured type of welcome message 2 includes a mini-program, then the welcome message returned to the client can be the entrance to the mini-program, such as a picture or a link. When the picture or link is triggered, the mini-program is started. The name here is the welcome message configuration name, which can be used to distinguish different welcome messages; the department can be understood as the department to which the company members belong, and the welcome message configuration can be applied to the customers of that department. Therefore, based on Figure 2 The welcome message configuration operation shown can generate a corresponding relationship between the business activity identifier and the welcome message.
[0042] Figure 3 A schematic diagram of a welcome information configuration page corresponding to an enterprise member provided in an embodiment of the present application. Figure 3 As shown, during configuration, you can enter the name and company logo, select company members, enter welcome information, etc. Among them, welcome information 1 can be in plain text format, and the type of welcome information 2 can be one of pictures, pictures and mini programs. The name here is the welcome information configuration name. It can be seen that Figure 3 The welcome message configuration shown is the same as Figure 2 The configuration of the welcome message shown is different in that it is necessary to select enterprise members, that is, to which enterprise members the welcome message should be applied. Figure 3 The welcome information configuration operation shown can generate a correspondence between enterprise members and welcome information, that is, a correspondence between object identifiers and welcome information.
[0043] Figure 4 A schematic diagram of a welcome information configuration page corresponding to the department to which an enterprise member belongs provided in an embodiment of the present application. Figure 4 As shown, during configuration, you can enter the name and corporate logo, select a department, enter a welcome message, etc. Among them, the welcome message 1 can be in plain text format, and the type of the welcome message 2 can be one of a picture, a picture, and a small program. The name here is the welcome message configuration name.
[0044] visible, Figure 4 The welcome message configuration shown is the same as Figure 2 and Figure 3 The welcome information configuration shown is different in that it does not require configuration of business activity identifiers and enterprise members. Figure 4 The welcome message configuration operation shown can generate a correspondence between the department ID and the welcome message.
[0045] Figure 5A schematic diagram of a welcome information configuration page corresponding to an enterprise provided in an embodiment of the present application. Figure 5 As shown, during configuration, you can enter the configuration name and corporate logo. Among them, welcome message 1 can be in plain text format, and the type of welcome message 2 can be one of pictures, pictures and mini programs. The name here is the welcome message configuration name. It can be seen that Figure 5 The configuration of the welcome information shown does not require configuration of business activity identifiers, enterprise members, departments, and other information. Figure 5 The welcome information configuration operation shown can generate a correspondence between the enterprise logo and the welcome information. In this application, after obtaining the description information of the target object, the correspondence between the pre-stored object description information and the welcome information can be queried according to the description information of the target object to determine the target welcome information corresponding to the description information of the target object.
[0046] During implementation, the correspondence between the description information corresponding to the enterprise and the welcome information can be determined based on the identifier of the enterprise to which the target object belongs in the description information of the target object, and the welcome information corresponding to any information in the description information can be determined by searching the correspondence between the object description information and the welcome information. Alternatively, the target welcome information can be determined from the welcome information under the enterprise according to the priority of each information in the description information.
[0047] For example, the description information includes the identifier of the target object, and the corresponding relationship between the object identifier and the welcome information can be found to determine the welcome information corresponding to the identifier of the target object.
[0048] In the present application, when the user adds different target objects, the determined welcome information may be different, thereby enriching the diversity of the welcome information and improving the accuracy of the welcome information.
[0049] Step 103: Return the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object.
[0050] After determining the target welcome information, the business end can directly return the target welcome information to the client, or return the target welcome information to the client by calling the server interface. After the client obtains the target welcome information, it can display the target welcome information in a dialog box with the target object.
[0051] In the present application, the target welcome information returned to the client can be at least one of text information, picture information, graphic information and mini-program entrance. The welcome information is in a rich form, which increases the fun.
[0052] For example, the welcome message includes text information and picture information, so the text information and picture information can be displayed in the dialog box.
[0053] Another example: Figure 2 When the welcome message configured in is the welcome message returned by the client, welcome message 1 and welcome message 2 can be sent at the same time.
[0054] In an embodiment of the present application, by obtaining a friend adding request sent by a client, wherein the adding request includes description information of a target object, according to the description information of the target object, the correspondence between the object description information and the welcome information is queried, the target welcome information corresponding to the description information of the target object is determined, and the target welcome information is returned to the client, so that the client displays the target welcome information in a dialog box with the target object. Thus, by determining the welcome information returned to the client according to the description information of the target object, the sending of the welcome information is made more accurate. In addition, the welcome information returned to the client is determined based on the correspondence between the object description information and the welcome information, which also reflects the flexibility of the welcome information configuration.
[0055] Figure 6 A flowchart of another method for adding friends provided in an embodiment of the present application.
[0056] like Figure 6 As shown, the method of adding the friend includes:
[0057] Step 601: Obtain a friend adding request sent by a client, wherein the adding request includes description information of a target object.
[0058] In the present application, step 601 is similar to the above step 101, so it will not be repeated here.
[0059] Step 602: When the description information includes the target business activity identifier, query the corresponding relationship between the business activity identifier and the welcome information according to the target business activity identifier to determine the target welcome information.
[0060] In order to increase corporate revenue, the company may hold a variety of business activities, each of which is responsible for a corresponding corporate member. In this application, when a QR code is generated for a corporate member of a business activity, the business activity identifier may be placed in the extended field of the QR code. Then, when the user scans the QR code, the description information of the corporate member in the friend adding request sent by the client will include the business activity identifier.
[0061] For example, if there are 10 enterprise members responsible for a certain business activity, the QR codes of these 10 enterprise members can all contain the logo of the business activity.
[0062] In this application, enterprises can pre-set welcome information for each business activity, such as Figure 2 As shown, the business end can respond to Figure 2The welcome information configuration operation shown generates a correspondence between the business activity identifier and the welcome information. After obtaining the description information of the target object, you can first determine whether the description information contains the target business activity identifier. If the description information of the target object contains the target business activity identifier, then you can query the correspondence between the business activity identifier and the welcome information based on the target business activity identifier to determine the target welcome information corresponding to the target business activity identifier. For example, the welcome message corresponding to business activity A is "Thank you for participating in activity A."
[0063] Step 603: Return the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object.
[0064] In the present application, step 603 is similar to the above step 103, so it will not be repeated here.
[0065] In an embodiment of the present application, the correspondence between the object description information and the welcome information may include the correspondence between the business activity identifier and the welcome information. When querying the correspondence between the object description information and the welcome information based on the description information of the target object to determine the target welcome information corresponding to the description information of the target object, the target welcome information can be determined by querying the correspondence between the business activity identifier and the welcome information based on the target business activity identifier when the description information includes the target business activity identifier. Thus, the target welcome information can be determined based on the business activity identifier for which the target object is responsible, and more accurate welcome information can be returned to the client.
[0066] Figure 7 A flowchart of another method for adding friends provided in an embodiment of the present application.
[0067] like Figure 7 As shown, the method of adding the friend includes:
[0068] Step 701: Obtain a friend adding request sent by a client, wherein the adding request includes description information of a target object.
[0069] In the present application, step 701 is similar to the above step 101, so it will not be repeated here.
[0070] Step 702: When the description information does not include the target business activity identifier, or the target business activity identifier does not have corresponding welcome information, determine the target welcome information according to the identifier of the target object in the description information.
[0071] In actual applications, a company member may be responsible for multiple activities, or may not be responsible for any business activities. Therefore, when a QR code is generated for the company member, the QR code may not contain the business activity identifier. Alternatively, no corresponding welcome message may be set for the business activity.
[0072] In addition, enterprise members may be responsible for a certain business of the enterprise. Based on this, in this application, the enterprise can pre-set the welcome information corresponding to the enterprise members, such as Figure 3 As shown, the business end can respond to Figure 3 The welcome information configuration operation shown generates a corresponding relationship between the query object identifier and the welcome information for the enterprise. When setting the welcome information, the welcome information can be related to the business that the enterprise members are responsible for.
[0073] In the present application, the correspondence between the object description information and the welcome information may include the correspondence between the object identifier and the welcome information. After obtaining the description information of the target object, you can first determine whether the description information contains the target business activity identifier. If the description information contains the target business activity identifier, you can query the correspondence between the object identifier and the welcome information based on the identifier of the target object to determine the welcome information corresponding to the identifier of the target object, that is, the target welcome information. If the description information does not contain the target business activity identifier, or the target business activity identifier does not have corresponding welcome information, you can determine the target welcome information based on the identifier of the target object in the description information.
[0074] For example, a certain enterprise member is responsible for business item B, and the welcome message corresponding to the enterprise member ID may be “Welcome to consult business item B”.
[0075] Furthermore, the correspondence between the object description information and the welcome information may include the correspondence between the department identifier and the welcome information. When the target object identifier does not have corresponding welcome information and the description information contains the target department identifier, the welcome information corresponding to the target department identifier, that is, the target welcome information, can be determined based on the target department identifier by querying the correspondence between the department identifier and the welcome information.
[0076] Alternatively, when the target object identifier does not have corresponding welcome information and the description information does not include the target department identifier, the target department identifier to which the target object belongs can be determined based on the target object identifier and the object relationship between the object identifier and the department identifier, and then the target welcome information can be determined based on the target department identifier, so that the sending of the welcome information is more accurate.
[0077] For example, an enterprise member is responsible for multiple business products, and there is no corresponding welcome message for the enterprise member. If the welcome message of a business product is configured for the department to which the enterprise member belongs, the welcome message can be used as the welcome message returned to the client.
[0078] Step 703: Return the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object.
[0079] In the present application, step 703 is similar to the above step 103, so it will not be repeated here.
[0080] In the embodiment of the present application, the correspondence between the object description information and the welcome information may include the correspondence between the object identifier and the welcome information. When the correspondence between the object description information and the welcome information is queried based on the description information of the target object to determine the target welcome information corresponding to the description information of the target object, the target welcome information can be determined by querying the correspondence between the object identifier and the welcome information based on the identifier of the target object in the description information when the description information does not include the target business activity identifier or the target business activity identifier does not have the corresponding welcome information. Thus, when the description information does not include the target business activity identifier or the target business activity identifier does not have the corresponding welcome information, the target welcome information can be determined based on the added target object, so that the sending of the welcome information is more accurate.
[0081] Figure 8 A flowchart of another method for adding friends provided in an embodiment of the present application.
[0082] like Figure 8 As shown, the method of adding the friend includes:
[0083] Step 801: Obtain a friend adding request sent by a client, wherein the adding request includes description information of a target object.
[0084] In the present application, step 801 is similar to the above step 101, so it will not be repeated here.
[0085] Step 802, when the description information includes the target business activity identifier and the target object identifier, and neither the target business activity identifier nor the target object identifier has corresponding welcome information, determine the target welcome information according to the target enterprise identifier to which the target object in the description information belongs.
[0086] In this application, the enterprise can set a general welcome message in advance, such as Figure 5 As shown, the business end responds to Figure 5 The welcome message configuration operation shown generates a correspondence between the enterprise logo and the welcome message.
[0087] In actual applications, although the description information of the target object includes the business activity identifier, there may be no corresponding welcome information set for the business activity, and the target object identifier may not have corresponding welcome information.
[0088] Based on this, in this application, when the description information contains the target business activity identifier and the target object identifier, and neither the target business activity identifier nor the target object identifier has corresponding welcome information, the correspondence between the enterprise identifier and the welcome information can be queried based on the target enterprise identifier to which the target object in the description information belongs, to determine the target welcome information.
[0089] For example, the welcome message corresponding to a certain enterprise logo is "Hello, new customer". When a user adds a member of the enterprise, the description information of the added enterprise member includes the business activity logo and the enterprise member logo, but neither the business activity logo nor the enterprise member logo has a corresponding welcome message. At this time, the welcome message corresponding to the enterprise logo, "Hello, new customer", can be used as the welcome message returned to the client.
[0090] Step 803: Return the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object.
[0091] In the present application, step 803 is similar to the above step 103, so it will not be repeated here.
[0092] In an embodiment of the present application, when the correspondence between the object description information and the welcome information is queried based on the description information of the target object to determine the target welcome information corresponding to the description information of the target object, the target welcome information can be determined based on the target enterprise identifier to which the target object belongs in the description information when the description information includes the target business activity identifier and the target object identifier, and neither the target business activity identifier nor the target object identifier has corresponding welcome information. Thus, when neither the target business activity identifier nor the target object identifier has corresponding welcome information, the target welcome information is determined based on the target enterprise identifier to which the target object belongs, so that when determining the welcome information, multiple dimensions are considered, thereby improving the accuracy of sending the welcome information.
[0093] In the present application, the welcome information determined based on the target business activity identifier in the description information of the target object, the welcome information corresponding to the identifier of the target object, the welcome information determined based on the department identifier to which the target object belongs, and the welcome information determined based on the enterprise identifier can be regarded as moving from fine-grained welcome information to coarse-grained welcome information.
[0094] After obtaining the description information of the target object, it can be determined whether the description information contains the target business activity identifier. If the description information contains the target business activity identifier, the target welcome information can be determined according to the target business activity identifier.
[0095] If the description information does not include the target business activity identifier, or the target business activity identifier does not have corresponding welcome information, the target welcome information may be determined according to the identifier of the target object in the description information.
[0096] If the description information includes the target business activity identifier and the target object identifier, and neither the target business activity identifier nor the target object identifier has corresponding welcome information, the target welcome information may be determined according to the target enterprise identifier to which the target object belongs.
[0097] Therefore, the welcome message can be determined based on the business activity identifier, the target object identifier, the department identifier to which the target object belongs, and the priority of the enterprise identifier. That is, the welcome message can be determined from multiple dimensions, realizing the determination from fine-grained welcome information to coarse-grained welcome information, and improving the accuracy of sending welcome information.
[0098] The friend adding method of the embodiment of the present application can send the user the welcome information of interest based on the added enterprise members, the way to add the enterprise members, the business to which the added enterprise members belong, the department to which the enterprise members belong, etc. For example, if a customer adds an enterprise member of the fund business line, the welcome information of the fund product category can be recommended to the customer.
[0099] In order to implement the above embodiment, the embodiment of the present application also proposes a device for adding friends. Fig. 9 A schematic diagram of the structure of a device for adding friends provided in an embodiment of the present application.
[0100] like Fig. 9 As shown, the friend adding device 900 includes:
[0101] The acquisition module 910 is used to acquire a friend adding request sent by the client, wherein the adding request includes description information of the target object;
[0102] A determination module 920, configured to query the correspondence between the object description information and the welcome information according to the description information of the target object, so as to determine the target welcome information;
[0103] The return module 930 is used to return the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object.
[0104] In a possible implementation of the embodiment of the present application, the device may further include:
[0105] The generating module is used to generate the corresponding relationship between the description information and the welcome information in response to the welcome information configuration operation.
[0106] In a possible implementation manner of the embodiment of the present application, the correspondence between the object description information and the welcome information includes at least one of the following:
[0107] The correspondence between the business activity logo and the welcome message;
[0108] The correspondence between the object identifier and the welcome message;
[0109] The correspondence between department logo and welcome message;
[0110] Correspondence between corporate logo and welcome message.
[0111] In a possible implementation of the embodiment of the present application, the determining module 920 is used to:
[0112] In the case that the description information includes a target business activity identifier, the corresponding relationship between the business activity identifier and the welcome information is queried according to the target business activity identifier to determine the target welcome information.
[0113] In a possible implementation of the embodiment of the present application, the determining module 920 is used to:
[0114] When the description information does not include the target business activity identifier, or the target business activity identifier has no corresponding welcome information, the correspondence between the object identifier and the welcome information is queried based on the identifier of the target object in the description information to determine the target welcome information.
[0115] In a possible implementation of the embodiment of the present application, the determining module 920 is used to:
[0116] In the case that there is no corresponding welcome information for the identifier of the target object, determining the identifier of the target department to which the target object belongs according to the identifier of the target object;
[0117] According to the target department identifier, the corresponding relationship between the department identifier and the welcome information is queried to determine the target welcome information.
[0118] In a possible implementation of the embodiment of the present application, the determining module 920 is used to:
[0119] When the description information includes the target business activity identifier and the target object identifier, and neither the target business activity identifier nor the target object identifier has corresponding welcome information, the correspondence between the enterprise identifier and the welcome information is queried based on the target enterprise identifier to which the target object in the description information belongs, so as to determine the target welcome information.
[0120] In a possible implementation of the embodiment of the present application, the welcome information includes at least one of text information, picture information, graphic and text information, and mini-program entrance.
[0121] It should be noted that the above explanation of the embodiment of the method for adding friends is also applicable to the device for adding friends of this embodiment, so it will not be repeated here.
[0122] In an embodiment of the present application, by obtaining a friend adding request sent by a client, wherein the adding request includes description information of a target object, the corresponding relationship between the object description information and the welcome information is queried according to the description information of the target object to determine the target welcome information, and the target welcome information is returned to the client, so that the client displays the target welcome information in a dialog box with the target object. Thus, by determining the welcome information returned to the client according to the description information of the target object, the sending of the welcome information is made more accurate. In addition, the welcome information returned to the client is determined based on the corresponding relationship between the object description information and the welcome information. Since the object description information is diverse, the configuration of the welcome information is also flexible.
[0123] In order to implement the above embodiment, the embodiment of the present application also proposes a computer device, including a processor and a memory;
[0124] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the friend adding method as described in the above embodiment.
[0125] In order to implement the above embodiment, the embodiment of the present application also proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for adding friends as described in the above embodiment is implemented.
[0126] In order to implement the above embodiments, the embodiments of the present application further propose a computer program product, characterized in that it includes a computer program, and when the computer program is executed by a processor, it implements the friend adding method according to the above embodiments.
[0127] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0128] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for adding a friend, characterized in that: include: Obtaining a friend adding request sent by a client, wherein the adding request includes description information of a target object; According to the description information of the target object, query the correspondence between the object description information and the welcome information to determine the target welcome information corresponding to the description information of the target object, wherein the correspondence between the object description information and the welcome information includes: the correspondence between the business activity identifier and the welcome information; the correspondence between the object identifier and the welcome information; the correspondence between the department identifier and the welcome information; and the correspondence between the enterprise identifier and the welcome information; Returning the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object; The querying, according to the description information of the target object, the correspondence between the object description information and the welcome information to determine the target welcome information corresponding to the description information of the target object includes: In the case where the description information does not include the target business activity identifier, or the target business activity identifier does not have corresponding welcome information, querying the correspondence between the object identifier and the welcome information according to the identifier of the target object in the description information to determine the target welcome information; In the case that there is no corresponding welcome information for the identifier of the target object, determining the identifier of the target department to which the target object belongs according to the identifier of the target object; According to the target department identifier, the corresponding relationship between the department identifier and the welcome information is queried to determine the target welcome information.
2. The method according to claim 1, characterized in that Before querying the correspondence between the object description information and the welcome information according to the description information of the target object, the method further includes: In response to the welcome information configuration operation, a correspondence between the description information and the welcome information is generated.
3. The method according to claim 1, characterized in that The querying, according to the description information of the target object, the correspondence between the object description information and the welcome information to determine the target welcome information corresponding to the description information of the target object includes: In the case that the description information includes a target business activity identifier, the corresponding relationship between the business activity identifier and the welcome information is queried according to the target business activity identifier to determine the target welcome information.
4. The method according to claim 1, characterized in that The querying, according to the description information of the target object, the correspondence between the object description information and the welcome information to determine the target welcome information corresponding to the description information of the target object also includes: When the description information includes the target business activity identifier and the target object identifier, and neither the target business activity identifier nor the target object identifier has corresponding welcome information, the correspondence between the enterprise identifier and the welcome information is queried based on the target enterprise identifier to which the target object in the description information belongs to determine the target welcome information.
5. The method according to any one of claims 1 to 4, characterized in that: The welcome information includes at least one of text information, picture information, graphic and text information, and mini program entrance.
6. A device for adding friends, characterized in that: include: An acquisition module, used to acquire a friend adding request sent by a client, wherein the adding request includes description information of a target object; A determination module, for querying the correspondence between the object description information and the welcome information according to the description information of the target object, so as to determine the target welcome information corresponding to the description information of the target object, wherein the correspondence between the object description information and the welcome information includes: the correspondence between the business activity identifier and the welcome information; the correspondence between the object identifier and the welcome information; the correspondence between the department identifier and the welcome information; and the correspondence between the enterprise identifier and the welcome information; A return module, used for returning the target welcome information to the client, so that the client displays the target welcome information in a dialog box with the target object; The determining module is used to: In the case where the description information does not include the target business activity identifier, or the target business activity identifier does not have corresponding welcome information, querying the correspondence between the object identifier and the welcome information according to the identifier of the target object in the description information to determine the target welcome information; In the case that there is no corresponding welcome information for the identifier of the target object, determining the identifier of the target department to which the target object belongs according to the identifier of the target object; According to the target department identifier, the corresponding relationship between the department identifier and the welcome information is queried to determine the target welcome information.
7. The device according to claim 6, characterized in that Also includes: The generating module is used to generate the corresponding relationship between the description information and the welcome information in response to the welcome information configuration operation.
8. The device according to claim 6, characterized in that The determining module is used to: In the case that the description information includes a target business activity identifier, the corresponding relationship between the business activity identifier and the welcome information is queried according to the target business activity identifier to determine the target welcome information.
9. The device according to claim 6, characterized in that The determining module is further used for: When the description information includes the target business activity identifier and the target object identifier, and neither the target business activity identifier nor the target object identifier has corresponding welcome information, the correspondence between the enterprise identifier and the welcome information is queried based on the target enterprise identifier to which the target object in the description information belongs to determine the target welcome information.
10. The device according to any one of claims 6 to 9, characterized in that: The welcome information includes at least one of text information, picture information, graphic and text information, and mini program entrance.
11. A computer device, characterized in that: including a processor and a memory; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the friend adding method as described in any one of claims 1-5.
12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for adding friends as described in any one of claims 1 to 5 is implemented.
13. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the friend adding method according to any one of claims 1 to 5.
Citation Information
Patent Citations
International roaming welcome short message sending method and system and front-end system
CN104284307A
Method, device, medium and equipment for processing blessing information in enterprise application
CN109962974A
Session management method and device, computer equipment and storage medium
CN111431793A
Method and device for newly adding friends to enterprise-level communication software
CN112291137A
Allocation method and device, electronic equipment and storage medium
CN112541724A
