Information processing method, device and equipment

By obtaining and processing target events, determining and sending comment content to target users, the problem of inability to send information in third-party web pages is solved, and information sent to designated users in third-party applications is realized, and the convenience of user interaction is improved .

CN118921347APending Publication Date: 2024-11-08BEIJING XINGHAN BONA PHARMACEUTICAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410912898.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the third-party web page of the target application, the user cannot send information to the specified object, resulting in inconvenience in use.

Method used

By obtaining the target event that is heard, determining the target user, and using the target application's interface to send comment content, realizing targeted sending to designated users on a third-party web page. The specific steps include obtaining keyboard events, determining target events, obtaining user lists, selecting target users, and sending comment content to target users in a conversational manner.

Benefits of technology

The targeted sending of user information in the third-party web page of the target application is realized, which enhances the convenience of user message interaction and solves the problem that comment content cannot be sent in third-party applications in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921347A_ABST
    Figure CN118921347A_ABST
Patent Text Reader

Abstract

The invention provides an information processing method, device and equipment, which are applied to a target browser, and the method comprises the following steps: obtaining a monitored target event; obtaining a target user according to the target event; the target user is one of a plurality of users loaded by a target application, and the target user is obtained by calling an interface of the target application; and obtaining comment content of the user, and sending the comment content to the target user. According to the scheme, directional sending of the user information in the third-party webpage of the target application can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information technology, and in particular to an information processing method, device and equipment. Background Art

[0002] In the third-party webpage of the current target application, the user cannot send information to the designated object. The user cannot send content to the designated user according to his own needs, which brings great inconvenience to the user. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide an information processing method, device and equipment, which can realize the directional sending of user information in a third-party web page of a target application.

[0004] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0005] An information processing method, applied to a target browser, comprising:

[0006] Get the monitored target event;

[0007] According to the target event, a target user is obtained; the target user is one of multiple users loaded by the target application, and the target user is obtained by calling an interface of the target application;

[0008] Obtain the user's comment content, and send the comment content to the target user.

[0009] Optionally, get the monitored target events, including:

[0010] Get at least one monitored keyboard event;

[0011] A target event is determined according to a target parameter of at least one keyboard event.

[0012] Optionally, determining a target event according to a target parameter of at least one keyboard event includes:

[0013] When the value of the target parameter of the keyboard event meets the preset rule, the target event is determined to be a target event triggered by a preset character; the target parameter includes: key code, key and code.

[0014] Optionally, obtaining a target user according to the target event includes:

[0015] When the target event occurs, the cursor position in the current text box is obtained and the session message interface of the target application is called to obtain the target user;

[0016] The target user is inserted at the cursor position.

[0017] Optionally, obtaining the cursor position in the current text box and calling the session message interface of the target application to obtain the target user includes:

[0018] Save the cursor position in the current text box;

[0019] By using a preset protocol, the session message interface of the target application is called to obtain a user list of the target application;

[0020] A target user determined in the user list is received.

[0021] Optionally, obtaining the comment content of the user and sending the comment content to the target user includes:

[0022] The comment content input by the user is obtained, and the comment content is sent to the target user in a conversational manner.

[0023] Optionally, sending the comment content to the target user in a conversation manner includes:

[0024] The review content is matched with a preset vocabulary library, and according to the matching result, the review content is sent to the target user in a conversational manner.

[0025] The present invention also provides an information processing device, comprising:

[0026] The acquisition module is used to obtain the monitored target events;

[0027] The processing module is used to obtain a target user according to the target event; the target user is one of multiple users loaded by the target application, and the target user is obtained by calling the interface of the target application; obtain the user's comment content, and send the comment content to the target user.

[0028] The present invention also provides a computing device, comprising: a processor and a memory storing a computer program, wherein when the computer program is run by the processor, the method as described above is executed.

[0029] The present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method.

[0030] The above solution of the present invention includes at least the following beneficial effects:

[0031] The above scheme of the present invention can realize the directional sending of user information in the third-party webpage of the target application by acquiring the monitored target event; acquiring the target user according to the target event; the target user is one of the multiple users loaded by the target application, and the target user is obtained by calling the interface of the target application; acquiring the user's comment content, and sending the comment content to the target user. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a flowchart of an information processing method according to an embodiment of the present invention;

[0033] Figure 2 This is a schematic diagram of a contact pop-up window according to an embodiment of the present invention;

[0034] Figure 3 is a schematic diagram of a comment content text box in an embodiment of the present invention;

[0035] Figure 4 is a schematic diagram of a preset vocabulary library data storage structure according to an embodiment of the present invention;

[0036] Figure 5 It is a schematic diagram of the structure of an information processing device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0038] like Figure 1 As shown, an embodiment of the present invention provides an information processing method, which is applied to a target browser, and the method includes:

[0039] Step 11, obtain the monitored target event;

[0040] Step 12, according to the target event, obtaining a target user; the target user is one of multiple users loaded by the target application, and the target user is obtained by calling the interface of the target application;

[0041] Step 13, obtaining the user's comment content, and sending the comment content to the target user.

[0042] In this embodiment, when a target event is monitored, the third-party application calls the session interface of the target application to obtain a user list and select a target user in the user list. According to the selected target user, the user enters the comment content, and the comment content is sent to the target user. The present invention can realize the front-end interaction of sending the comment content to the specified user in the web page of the third-party application of the target application, realize the information exchange between the web page and the target application client, and enhance the convenience of user message interaction of the target application.

[0043] In an optional embodiment of the present invention, step 11 may include:

[0044] Step 111, obtaining at least one monitored keyboard event;

[0045] Step 112: determining a target event according to a target parameter of at least one keyboard event.

[0046] In this embodiment, each time a user presses a key on the keyboard in the dialog box, it is a keyboard event. The third-party application monitors the user's keydown keyboard event through an event listener, and determines whether a target event occurs according to the target parameter in the event.

[0047] In an optional embodiment of the present invention, step 112 may include:

[0048] Step 1121, when the value of the target parameter of the keyboard event meets the preset rule, determine that the target event is a target event triggered by a preset character; the target parameter includes: key code, key and code.

[0049] In this embodiment, it is determined whether the target event occurs based on the keyCode, key, and code of the event. In the present invention, since the comment content is to be sent to a designated user, the preset character is set to the @ character. When e.keyCode === 229&&e.key === '@', or e.keyCode === 229&&e.code === 'Digit2', or e.keyCode === 50, it can be determined that the character pressed on the keyboard is the @ character. The above judgment conditions are limited according to the different Chinese and English input methods, that is, when the key code is equal to 229 and the key is equal to @, or the key code is equal to 229 and the code is equal to Digit2, or the key code is equal to 50, any one of the above three conditions can be met to determine that the target event occurs.

[0050] In an optional embodiment of the present invention, step 12 may include:

[0051] Step 121, when the target event occurs, obtain the cursor position in the current text box and call the session message interface of the target application to obtain the target user;

[0052] Step 122: insert the target user at the cursor position.

[0053] In this embodiment, when the target event occurs, the current cursor position is saved and the session message interface of the target application is called to read the relevant users loaded by the target application. The user selects the target user from the user list provided by the interface of the target application to determine the object to which the comment content needs to be sent. The third-party application inserts the target user at the current cursor position to prepare for the subsequent message sending.

[0054] In an optional embodiment of the present invention, step 121 may include:

[0055] Step 1211, save the cursor position in the current text box;

[0056] Step 1212, calling the session message interface of the target application through a preset protocol to obtain a user list of the target application;

[0057] Step 1213: Receive the target user determined in the user list.

[0058] In this embodiment, Figure 2 As shown in the figure, the conversation message interface provided by the target application is used to call up a pop-up window for selecting a contact. Figure 2 Select the target user from the user list shown.

[0059] In an optional embodiment of the present invention, step 13 may include:

[0060] Step 131, obtaining the comment content input by the user, and sending the comment content to the target user in a conversational manner.

[0061] In this embodiment, Figure 3 As shown in the figure, after inserting the target user at the current cursor position, the user types the comment content according to the needs. It should be noted that, according to the user's needs, @ can be typed again, and the event listener will listen to the target event again, thereby waving the contact pop-up window again. @ multiple users can be added in one comment, and one comment content can be sent to multiple specified target users respectively.

[0062] In an optional embodiment of the present invention, step 131 may include:

[0063] Step 1311, matching the comment content with a preset vocabulary library, and sending the comment content to the target user in a conversational manner according to the matching result.

[0064] In this embodiment, the comment content can also be audited. By matching the comment content with a preset vocabulary library, keyword vocabulary can be identified. For comment content containing keyword vocabulary, a prompt for modification is given, and comment content not containing keyword vocabulary is sent. Specifically, the preset keywords in the preset vocabulary library are stored in a tree structure. For example, Figure 4 as shown, assume that the following 5 keywords need to be detected: country, national fortune, Internationale, good review, good person. First, combine the words with the same prefix in the keywords into a tree structure, and the words with different prefixes belong to different tree branches. By storing keywords in the above tree structure, the number of retrievals can be reduced. When the user inputs comment content, only need to traverse the comment content once, and then check whether there is a subtree corresponding to the character in the preset vocabulary library. If there is no corresponding subtree, it means that the currently detected character is not in the keyword library, and then directly skip to continue detecting the next character; if there is a corresponding subtree, then continue to check whether the next character is a child node of the subtree corresponding to the previous character. Through the above iterative method, it can be detected whether the comment content contains keywords.

[0065] Taking the comment "You should be a good person" as an example, each character is detected in turn. Since the first 5 characters are not in the preset vocabulary library and no corresponding subtree can be found, they are directly skipped. When the character "good" is detected, it is found that there is a corresponding subtree in the preset vocabulary library, so it is recorded as tree-1. Then, search whether the next character "person" is a child node of the subtree tree-1, and it is found that it is exactly, so the keyword: "good person" is successfully retrieved. The above keyword detection method of the present application only needs to scan the text to be detected once, and the detection efficiency is greatly improved.

[0066] In the present application, by listening to keyboard events through an event listener, an event listener can be added to an HTML element so that code can be executed when a target event occurs.

[0067] The basic syntax is: element.addEventListener(event,function,options);

[0068] Among them, element: the DOM element to which the event listener is added;

[0069] event: the type of event to be listened to, which is "keydown" in the present application;

[0070] function: the function to be executed when the event occurs. This function will receive an event object as a parameter, and the object contains all the information of the event;

[0071] options (optional): An object specifying options for the event listener.

[0072] When the keyboard event triggered by the @ key is captured by the event listener, the cursor position at the time of event triggering is saved, and then the session API of the target application is called. Optionally, the target application may be office software or some other application with contact function.

[0073] In an optional embodiment, the conversation interface may be pickConversation. The client selects a conversation and obtains the conversation ID. Based on the obtained conversation ID, the server API can be called to send a message. The code is dd.biz.chat.pickConversation, which includes some necessary parameters such as corporate ID (corpid) and whether to pop up a confirmation window (isconfirm). When the call is successful, the onsuccess callback function will be called and an object containing the conversation information will be passed in, where cid is the unique identifier of the conversation and title is the name of the conversation (optional); when it fails, the onfail callback function will be called and an error object will be passed in, which contains the error information. It should be noted that before calling the pickConversation API, it is necessary to ensure that the third-party application has obtained the corresponding permissions and the user has logged in to the target application.

[0074] After selecting the target user through the conversation interface, the user can enter the comment content, and then send the comment content to the target user in a conversational manner.

[0075] The above method of the present invention, in the third-party application of the target application, imitates the function of @ in the chat box on the web page, which facilitates the accurate notification of the content to the address book members of the target application in the comment, solves the problem in the prior art that it is impossible to send comment content to a designated user in the third-party application of the target application, and realizes the front-end interaction of sending the comment content to a specific member on the web page of the third-party application.

[0076] like Figure 5 As shown, an embodiment of the present invention further provides an information processing device 50, which is applied to a target browser, and the device includes:

[0077] An acquisition module 51 is used to acquire the monitored target event;

[0078] The processing module 52 is used to obtain a target user according to the target event; the target user is one of multiple users loaded by the target application, and the target user is obtained by calling the interface of the target application; obtain the user's comment content, and send the comment content to the target user.

[0079] Optionally, get the monitored target events, including:

[0080] Get at least one monitored keyboard event;

[0081] A target event is determined according to a target parameter of at least one keyboard event.

[0082] Optionally, determining a target event according to a target parameter of at least one keyboard event includes:

[0083] When the value of the target parameter of the keyboard event meets the preset rule, the target event is determined to be a target event triggered by a preset character; the target parameter includes: key code, key and code.

[0084] Optionally, obtaining a target user according to the target event includes:

[0085] When the target event occurs, the cursor position in the current text box is obtained and the session message interface of the target application is called to obtain the target user;

[0086] The target user is inserted at the cursor position.

[0087] Optionally, obtaining the cursor position in the current text box and calling the session message interface of the target application to obtain the target user includes:

[0088] Save the cursor position in the current text box;

[0089] By using a preset protocol, the session message interface of the target application is called to obtain a user list of the target application;

[0090] A target user determined in the user list is received.

[0091] Optionally, obtaining the comment content of the user and sending the comment content to the target user includes:

[0092] The comment content input by the user is obtained, and the comment content is sent to the target user in a conversational manner.

[0093] Optionally, sending the comment content to the target user in a conversation manner includes:

[0094] The review content is matched with a preset vocabulary library, and according to the matching result, the review content is sent to the target user in a conversational manner.

[0095] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.

[0096] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0097] The embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0098] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0100] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0102] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0103] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0104] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0105] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0106] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An information processing method, characterized in that: Applied to a target browser, the method comprises: Get the monitored target event; According to the target event, a target user is obtained; the target user is one of multiple users loaded by the target application, and the target user is obtained by calling an interface of the target application; Obtain the user's comment content, and send the comment content to the target user.

2. The information processing method according to claim 1, characterized in that: Get the monitored target events, including: Get at least one monitored keyboard event; A target event is determined according to a target parameter of at least one keyboard event.

3. The information processing method according to claim 2, characterized in that: Determining a target event according to a target parameter of at least one keyboard event includes: When the value of the target parameter of the keyboard event meets the preset rule, the target event is determined to be a target event triggered by a preset character; the target parameter includes: key code, key and code.

4. The information processing method according to claim 1, characterized in that: According to the target event, a target user is obtained, including: When the target event occurs, the cursor position in the current text box is obtained and the session message interface of the target application is called to obtain the target user; The target user is inserted at the cursor position.

5. The information processing method according to claim 4, characterized in that: Obtaining the cursor position in the current text box and calling the session message interface of the target application to obtain the target user includes: Save the cursor position in the current text box; By using a preset protocol, the session message interface of the target application is called to obtain a user list of the target application; A target user determined in the user list is received.

6. The information processing method according to claim 1, characterized in that: Obtaining the user's comment content and sending the comment content to the target user includes: The comment content input by the user is obtained, and the comment content is sent to the target user in a conversational manner.

7. The information processing method according to claim 6, characterized in that: Sending the comment content to the target user in a conversational manner includes: The review content is matched with a preset vocabulary library, and according to the matching result, the review content is sent to the target user in a conversational manner.

8. An information processing device, characterized in that: include: The acquisition module is used to obtain the monitored target events; A processing module, used for acquiring a target user according to the target event; The target user is one of multiple users loaded by the target application, and the target user is obtained by calling an interface of the target application; Obtain the user's comment content, and send the comment content to the target user.

9. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is performed.

10. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.