CN115086269A - Address book query method and device based on enterprise WeChat - Google Patents

Address book query method and device based on enterprise WeChat Download PDF

Info

Publication number
CN115086269A
CN115086269A CN202210674198.6A CN202210674198A CN115086269A CN 115086269 A CN115086269 A CN 115086269A CN 202210674198 A CN202210674198 A CN 202210674198A CN 115086269 A CN115086269 A CN 115086269A
Authority
CN
China
Prior art keywords
target user
address book
query
information
enterprise wechat
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.)
Pending
Application number
CN202210674198.6A
Other languages
Chinese (zh)
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.)
Boc Financial Technology Co ltd
Original Assignee
Boc Financial 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 Boc Financial Technology Co ltd filed Critical Boc Financial Technology Co ltd
Priority to CN202210674198.6A priority Critical patent/CN115086269A/en
Publication of CN115086269A publication Critical patent/CN115086269A/en
Pending legal-status Critical Current

Links

Images

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/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Automation & Control Theory (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an address book query method and device based on enterprise WeChat, wherein the method comprises the following steps: when the address book inquiry request is received, the inquiry authority of a target user is determined; when the user has the inquiry authority, acquiring the text content in the request; judging whether the preset query specification is met or not; if the answer is not satisfied, extracting the initial keywords, and carrying out conversation with the target user on a conversation interface of the enterprise WeChat; acquiring session content; if the current session content meets the query specification, constructing a keyword set; searching address book information corresponding to the keyword set in the enterprise WeChat, and sending the address book information to a target user; and when the target user is detected to exit the session interface, withdrawing the address book information in the session interface, and ending the address book query process. By applying the method provided by the invention, the address book information can be inquired through enterprise WeChat, and the address book information is withdrawn after the inquiry is quitted, so that the private data of the staff is prevented from being leaked.

Description

Address book query method and device based on enterprise WeChat
Technical Field
The invention relates to the technical field of computers, in particular to an address book query method and device based on enterprise WeChat.
Background
The enterprise WeChat is a communication tool for business communication and daily communication among enterprise employees, and a user may need to search communication information of employees in an enterprise in the process of applying the enterprise WeChat. The enterprise address book is a common tool for communication of internal employees, is generally deployed in an internal network of a company, and due to the problems of safety, privacy and the like, the information is not convenient to be displayed or even inquired on an external network.
Disclosure of Invention
In view of the above, the present invention provides an address book query method based on enterprise WeChat, by which address book information can be queried through enterprise WeChat, and the address book information is withdrawn after the query is quitted, so as to avoid leakage of private data of employees.
The invention also provides an address book inquiry device based on enterprise WeChat, which is used for ensuring the realization and the application of the method in practice.
An address book query method based on enterprise WeChat comprises the following steps:
when detecting that a target user sends an address book query request in enterprise WeChat, determining the query authority of the target user;
when the target user has the query right, acquiring the text content in the address book query request;
judging whether the text content meets a preset query specification;
when the text content does not meet the preset query specification, extracting an initial keyword in the text content, and carrying out conversation with the target user on a conversation interface in the enterprise WeChat based on the initial keyword;
acquiring the conversation content sent by the target user in the conversation interface each time;
if the session content currently sent by the target user meets the query specification, constructing a keyword set corresponding to the target user, wherein the keyword set comprises the initial keywords and session keywords in the session content sent by the target user each time;
searching address book information corresponding to the keyword set in the enterprise WeChat, and sending the address book information to the target user through the session interface;
and when the target user is detected to exit the session interface, withdrawing the address book information in the session interface, and ending the address book query process.
Optionally, the determining the query right of the target user includes:
acquiring authority information updated last time, wherein the authority information comprises an upper frequency limit of query frequency;
detecting whether the query frequency of the target user in a preset time period exceeds the upper frequency limit;
when the query frequency of the target user in a preset time period does not exceed the upper frequency limit, determining that the target user has the query authority;
and when the query frequency of the target user in a preset time period exceeds the upper frequency limit, determining that the target user does not have the query authority.
The above method, optionally, includes a process of updating the authority information, including:
acquiring a historical retrieval record of the target user in the enterprise WeChat, and determining the average query frequency of the target user;
acquiring application information of the enterprise WeChat applied by the target user, and determining the date type of the date to which the user currently uses the enterprise WeChat;
and setting the current query frequency of the target user for querying information through the enterprise WeChat based on the average query frequency, the application information and the date type, and updating the authority information based on the current query frequency.
Optionally, the method for searching the address book information corresponding to the keyword set in the enterprise WeChat and sending the address book information to the target user through the session interface includes:
searching whether historical retrieval information corresponding to the keyword set exists in the historical retrieval record or not, wherein the historical retrieval information is address book information which is retrieved by a user;
when the history retrieval record of the enterprise WeChat contains history retrieval information corresponding to the keyword set, sending the history retrieval information to the target user through the session interface;
and when the historical retrieval information corresponding to the keyword set does not exist in the historical retrieval record of the enterprise WeChat, searching the address book information corresponding to the keyword set from the database corresponding to the enterprise WeChat, and sending the address book information to the target user through the session interface.
The above method, optionally, further includes:
desensitizing the address book information, and storing the desensitized address book information as history retrieval information to the history retrieval record.
An address book inquiry device based on enterprise WeChat comprises:
the system comprises a determining unit, a searching unit and a searching unit, wherein the determining unit is used for determining the searching authority of a target user when the target user is detected to send an address book searching request in enterprise WeChat;
the first acquisition unit is used for acquiring the text content in the address book query request when the target user has the query right;
the judging unit is used for judging whether the text content meets a preset query specification or not;
the extraction unit is used for extracting initial keywords in the text content when the text content does not meet the preset query specification, and carrying out conversation with the target user on a conversation interface in the enterprise WeChat based on the initial keywords;
the second acquisition unit is used for acquiring the conversation content sent by the target user on the conversation interface each time;
a constructing unit, configured to construct a keyword set corresponding to the target user if the session content currently sent by the target user meets the query specification, where the keyword set includes the initial keyword and a session keyword in the session content sent by the target user each time;
the searching unit is used for searching the address book information corresponding to the keyword set in the enterprise WeChat and sending the address book information to the target user through the session interface;
and the withdrawing unit is used for withdrawing the address book information in the session interface and ending the address book query process when the target user is detected to exit the session interface.
The above apparatus, optionally, the determining unit includes:
the first acquisition subunit is used for acquiring authority information updated last time, wherein the authority information comprises an upper frequency limit of the query frequency;
the detection subunit is configured to detect whether the query frequency of the target user within a preset time period exceeds the upper frequency limit;
the first determining subunit is configured to determine that the target user has the query right when the query frequency of the target user in a preset time period does not exceed the upper frequency limit;
and the second determining subunit is used for determining that the target user does not have the query authority when the query frequency of the target user in a preset time period exceeds the upper frequency limit.
The above apparatus, optionally, further comprises:
the second obtaining subunit is configured to obtain a historical retrieval record of the target user in the enterprise WeChat, and determine an average query frequency of the target user;
a third obtaining subunit, configured to obtain application information of the enterprise WeChat applied by the target user, and determine a date type of a date to which the enterprise WeChat is currently used by the user;
and the updating subunit is used for setting the current query frequency of the target user for querying the information through the enterprise WeChat based on the average query frequency, the application information and the date type, and updating the authority information based on the current query frequency.
The above apparatus, optionally, the search unit includes:
the searching subunit is configured to search whether history search information corresponding to the keyword set exists in the history search record, where the history search information is address book information that has been searched by a user;
the first sending subunit is configured to send the history retrieval information to the target user through the session interface when the history retrieval information corresponding to the keyword set exists in the history retrieval record of the enterprise WeChat;
and the second sending subunit is configured to, when the historical retrieval record of the enterprise WeChat does not include the historical retrieval information corresponding to the keyword set, search the address book information corresponding to the keyword set from the database corresponding to the enterprise WeChat, and send the address book information to the target user through the session interface.
The above apparatus, optionally, further comprises:
and the desensitization unit is used for desensitizing the address book information and saving the desensitized address book information as history retrieval information to the history retrieval record.
A storage medium comprises stored instructions, wherein when the instructions are executed, a device where the storage medium is located is controlled to execute the above address book query method based on enterprise WeChat.
An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the above method for querying an address book based on enterprise WeChat.
Compared with the prior art, the invention has the following advantages:
the invention provides an address book query method based on enterprise WeChat, which comprises the following steps: when detecting that a target user sends an address book query request in enterprise WeChat, determining the query authority of the target user; when the target user has the query right, acquiring the text content in the address book query request; judging whether the text content meets a preset query specification; when the text content does not meet the preset query specification, extracting an initial keyword in the text content, and carrying out conversation with the target user on a conversation interface in the enterprise WeChat based on the initial keyword; acquiring the conversation content sent by the target user on the conversation interface each time; if the session content currently sent by the target user meets the query specification, constructing a keyword set corresponding to the target user, wherein the keyword set comprises the initial keywords and session keywords in the session content sent by the target user each time; searching address book information corresponding to the keyword set in the enterprise WeChat, and sending the address book information to the target user through the session interface; and when the target user is detected to exit the session interface, withdrawing the address book information in the session interface, and ending the address book query process. By applying the method provided by the invention, the address book information can be inquired through enterprise WeChat, and the address book information is withdrawn after the inquiry is quitted, so that the private data of the staff is prevented from being leaked.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for querying an address book based on enterprise WeChat according to an embodiment of the present invention;
fig. 2 is a flowchart of another method of an address book query method based on enterprise WeChat according to an embodiment of the present invention;
fig. 3 is a flowchart of another method of an address book query method based on enterprise WeChat according to an embodiment of the present invention;
fig. 4 is a device structure diagram of an address book query device based on enterprise WeChat according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides an address book query method based on enterprise WeChat, which can be applied to various system platforms, wherein an execution main body of the method can be a computer terminal or a processor of various mobile devices, and a flow chart of the method is shown in figure 1 and specifically comprises the following steps:
s101: and when the target user is detected to send an address book query request in the enterprise WeChat, determining the query authority of the target user.
It should be noted that the query authority is used to limit whether the user can query the address book information of the employee of the enterprise.
S102: and when the target user has the query right, acquiring the text content in the address book query request.
It should be noted that the text content is query content input by the user, for example, the user may input "address book information for querying page three".
S103: and judging whether the text content meets the preset query specification.
It should be noted that the fixed format may not be limited when the user inputs the text content, for example: "zhang san (space) telephone", "zhang san (space) station", "zhang san", and "zhang san (development department)" etc. Since the format is not fixed, it may not be possible to determine what information the user needs to query, and thus a query specification may be set.
S104: and when the text content does not meet the preset query specification, extracting initial keywords in the text content, and carrying out conversation with the target user on a conversation interface in the enterprise WeChat based on the initial keywords.
It can be understood that, if the text content input by the user does not conform to the query specification, the user can be guided to specify the content of the query in a session manner, and the scope of the user query is further refined.
S105: and acquiring the conversation content sent by the target user on the conversation interface each time.
It should be noted that, the process of conducting a session with the target user may be to ask a question of the user in a question-and-answer manner, and the user may then answer the session content of the response according to the question that is asked.
S106: and if the conversation content currently sent by the target user meets the query specification, constructing a keyword set corresponding to the target user.
And the keyword set comprises the initial keywords and session keywords in the session content sent by the target user each time.
S107: and searching address book information corresponding to the keyword set in the enterprise WeChat, and sending the address book information to a target user through a session interface.
For example: and if the user needs to inquire the call of Zhang III, the address list information finally sent to the target user is the call of Zhang III.
S108: and when the target user is detected to exit the session interface, withdrawing the address book information in the session interface, and ending the address book query process.
It should be noted that, when the address book information is withdrawn, the user enters the session interface again, and will not see the message.
In the method provided by the embodiment of the invention, when the target user is detected to send the address book query request through the enterprise WeChat, the query authority of the target user is determined. If the target user has the query authority, the text content in the address book query request is obtained, and the text content can be the address book query content input by the user through a session interface. Determining whether the text content meets a query specification; if not, extracting the initial keywords, developing a session with the target user on a session interface, acquiring session content sent by the user in a question-and-answer mode, generating a keyword set when the session content sent by the user meets the query specification, searching corresponding address book information in enterprise WeChat through the keyword set, and sending the address book information to the target user. And after the target user exits the session interface, representing that the target user finishes inquiring the address book information, withdrawing the address book information in the session interface, wherein the withdrawn user can not see the session content and the address book information in the session interface any more, and finishing the address book inquiring process.
By applying the method provided by the embodiment of the invention, the address book information can be inquired through enterprise WeChat, and the address book information is withdrawn after the inquiry is quitted, so that the private data of the staff is prevented from being leaked.
It should be noted that, in the process of extracting keywords of text content and keywords of session content, the text content and the session content sent by a target user in the session process are subjected to word segmentation processing, an address book retrieval module is used to retrieve the extracted keyword set, a user message is generated and replied according to a retrieval result, and if the retrieval result is empty, whether retrieval information corresponding to the keyword set is a real target of the user is determined through a session interface, for example: the message of replying to the user is ' inquiring about the telephone number of the third development department ', ' the search result is continuously confirmed according to the next call, and the conversation is ended if the correct information is not found after a plurality of conversations, so that the user is guided to input the standard.
Optionally, after the session is ended, the session content with the sensitive information may be withdrawn after a default preset time period, a history quick query record is generated for each withdrawn record, the name is used as an index, if the user wants to query the previous communication information again in a short period, a query keyword, for example, "H", may be replied to by a direct dialog, the system may list the latest plurality of history records for selection, and the selected history records may be recalled before replying to the session interface directly.
Furthermore, when the retrieved address book information has data which is difficult to distinguish, a plurality of records are directly replied for the user session for the user to check. If the final result does not specify the fields (telephone, mobile phone, communication address, station, etc.) to be recorded, the default is to return the mobile phone number, and if a plurality of fields are specified, the final result is returned in the form of business card.
In the method provided in the embodiment of the present invention, the process of determining the query right of the target user is shown in fig. 2, and includes:
s201: and acquiring the authority information updated last time, wherein the authority information comprises the upper frequency limit of the query frequency.
Wherein the process of updating the rights information comprises:
acquiring a historical retrieval record of the target user in the enterprise WeChat, and determining the average query frequency of the target user;
acquiring application information of the enterprise WeChat applied by the target user, and determining the date type of the date to which the user currently uses the enterprise WeChat;
and setting the current query frequency of the target user for querying information through the enterprise WeChat based on the average query frequency, the application information and the date type, and updating the authority information based on the current query frequency.
It should be noted that, the query authority of the user is determined by the user authority management module. In the process of setting the authority information, the query frequency can be dynamically set according to the use time, the attendance checking condition of the user and the historical retrieval record. Such as: the upper limit of the frequency and the frequency can be properly reduced under the condition that the user normally goes to work on the working day, and the upper limit of the query frequency can be increased in the time periods of non-working days or working days, business trips, leave requests and the like. If any detection fails, directly returning a message which does not allow query to the user, ending the conversation, and entering a message analysis and retrieval stage after the judgment is passed.
S202: and detecting whether the query frequency of the target user in a preset time period exceeds an upper frequency limit.
Specifically, when the query frequency of the target user in a preset time period does not exceed the upper frequency limit, S203 is executed; and when the query frequency of the target user in a preset time period exceeds the upper frequency limit, executing S204.
S203: and determining that the target user has the query right.
S204: and determining that the target user does not have the query right.
In the invention, the inquiry of the address book information firstly has the login authority of the enterprise WeChat, and secondly dynamically limits the inquiry frequency so as to increase the safety. And dynamically adjusting the use frequency and the number limit of the query operation according to different time periods, different scenes and historical operation data.
In the method provided by the embodiment of the present invention, the process of searching for the address book information corresponding to the keyword set in the enterprise WeChat and sending the address book information to the target user through the session interface is shown in fig. 3, and may specifically include:
s301: and searching whether history retrieval information corresponding to the keyword set exists in the history retrieval record.
And the historical retrieval information is address book information which is retrieved by the user.
S302: and when the history retrieval information corresponding to the keyword set exists in the history retrieval record of the enterprise WeChat, sending the history retrieval information to the target user through the session interface.
It should be noted that the history search record contains less address book information, and if the address book information that the user needs to search can be found in the history search record, the result can be quickly fed back to the user.
S303: and when the history retrieval record of the enterprise WeChat does not contain the history retrieval information corresponding to the keyword set, searching the address book information corresponding to the keyword set from the database corresponding to the enterprise WeChat, and sending the address book information to the target user through the session interface.
It should be noted that, the employee address book information of all employees in the enterprise is stored in the database corresponding to the enterprise WeChat, and all the employee address book information can be added, deleted and modified according to the requirements.
In the embodiment of the invention, the address book information is searched through the historical retrieval record, so that the result can be fed back to the user at the highest speed.
Further, before the address book information is sent to the target user, desensitization processing is carried out on the address book information, and the desensitized address book information is used as history retrieval information and is stored in the history retrieval record.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides an address book query device based on enterprise WeChat, which is used for implementing the method in fig. 1 specifically, and the address book query device based on enterprise WeChat provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the address book query device based on enterprise WeChat is shown in fig. 4, and specifically includes:
a determining unit 401, configured to determine, when it is detected that a target user sends an address book query request in an enterprise WeChat, a query right of the target user;
a first obtaining unit 402, configured to obtain text content in the address book query request when the target user has a query right;
a judging unit 403, configured to judge whether the text content meets a preset query specification;
an extracting unit 404, configured to, when the text content does not meet a preset query specification, extract an initial keyword in the text content, and perform a conversation with the target user based on a conversation interface of the initial keyword in the enterprise WeChat;
a second obtaining unit 405, configured to obtain session content sent by the target user on the session interface each time;
a constructing unit 406, configured to construct a keyword set corresponding to the target user if the session content currently sent by the target user meets the query specification, where the keyword set includes the initial keyword and a session keyword in the session content sent by the target user each time;
a searching unit 407, configured to search, in the enterprise WeChat, address book information corresponding to the keyword set, and send the address book information to the target user through the session interface;
a withdrawing unit 408, configured to withdraw the address book information in the session interface when it is detected that the target user exits from the session interface, and end the address book querying process.
In the device provided by the embodiment of the invention, when the target user is detected to send the address book query request through the enterprise WeChat, the query authority of the target user is determined. If the target user has the query authority, the text content in the address book query request is obtained, and the text content can be the address book query content input by the user through a session interface. Determining whether the text content meets a query specification; if not, extracting the initial keywords, developing a session with the target user on a session interface, acquiring session content sent by the user in a question-and-answer mode, generating a keyword set when the session content sent by the user meets the query specification, searching corresponding address book information in enterprise WeChat through the keyword set, and sending the address book information to the target user. And after the target user exits the session interface, representing that the target user finishes inquiring the address book information, withdrawing the address book information in the session interface, wherein the withdrawn user can not see the session content and the address book information in the session interface any more, and finishing the address book inquiring process.
By applying the device provided by the embodiment of the invention, the address book information can be inquired through enterprise WeChat, and the address book information is withdrawn after the inquiry is quitted, so that the private data of the staff is prevented from being leaked.
In the apparatus provided in the embodiment of the present invention, the determining unit 401 includes:
the first acquisition subunit is used for acquiring authority information updated last time, and the authority information comprises an upper frequency limit of the query frequency;
the detection subunit is configured to detect whether the query frequency of the target user within a preset time period exceeds the upper frequency limit;
the first determining subunit is configured to determine that the target user has the query right when the query frequency of the target user in a preset time period does not exceed the upper frequency limit;
and the second determining subunit is used for determining that the target user does not have the query right when the query frequency of the target user in a preset time period exceeds the upper frequency limit.
The device provided by the embodiment of the invention further comprises:
the second obtaining subunit is configured to obtain a historical retrieval record of the target user in the enterprise WeChat, and determine an average query frequency of the target user;
a third obtaining subunit, configured to obtain application information of the enterprise WeChat applied by the target user, and determine a date type of a date to which the enterprise WeChat is currently used by the user;
and the updating subunit is used for setting the current query frequency of the target user for querying the information through the enterprise WeChat based on the average query frequency, the application information and the date type, and updating the authority information based on the current query frequency.
In the apparatus provided in the embodiment of the present invention, the search unit 407 includes:
the searching subunit is configured to search whether history search information corresponding to the keyword set exists in the history search record, where the history search information is address list information that has been searched by a user;
the first sending subunit is configured to send the history retrieval information to the target user through the session interface when the history retrieval information corresponding to the keyword set exists in the history retrieval record of the enterprise WeChat;
and the second sending subunit is configured to, when the historical retrieval record of the enterprise WeChat does not include the historical retrieval information corresponding to the keyword set, search the address book information corresponding to the keyword set from the database corresponding to the enterprise WeChat, and send the address book information to the target user through the session interface.
The device provided by the embodiment of the invention further comprises:
and the desensitization unit is used for desensitizing the address book information and saving the desensitized address book information as history retrieval information to the history retrieval record.
The specific working processes of each unit and sub-unit in the address book query device based on enterprise WeChat disclosed in the above embodiment of the present invention can refer to the corresponding contents in the address book query method based on enterprise WeChat disclosed in the above embodiment of the present invention, and are not described again here.
The embodiment of the invention also provides a storage medium which comprises a stored instruction, wherein when the instruction runs, the equipment where the storage medium is located is controlled to execute the address book query method based on the enterprise WeChat.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 5, which specifically includes a memory 501 and one or more instructions 502, where the one or more instructions 502 are stored in the memory 501, and are configured to be executed by one or more processors 503 to perform the following operations according to the one or more instructions 502:
when detecting that a target user sends an address book query request in enterprise WeChat, determining the query authority of the target user;
when the target user has the query right, acquiring the text content in the address book query request;
judging whether the text content meets a preset query specification;
when the text content does not meet the preset query specification, extracting an initial keyword in the text content, and carrying out conversation with the target user on a conversation interface in the enterprise WeChat based on the initial keyword;
acquiring the conversation content sent by the target user in the conversation interface each time;
if the session content currently sent by the target user meets the query specification, constructing a keyword set corresponding to the target user, wherein the keyword set comprises the initial keywords and session keywords in the session content sent by the target user each time;
searching address book information corresponding to the keyword set in the enterprise WeChat, and sending the address book information to the target user through the session interface;
and when the target user is detected to exit the session interface, withdrawing the address book information in the session interface, and ending the address book query process.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An address book query method based on enterprise WeChat is characterized by comprising the following steps:
when detecting that a target user sends an address book query request in enterprise WeChat, determining the query authority of the target user;
when the target user has the query right, acquiring the text content in the address book query request;
judging whether the text content meets a preset query specification;
when the text content does not meet the preset query specification, extracting an initial keyword in the text content, and carrying out conversation with the target user on a conversation interface in the enterprise WeChat based on the initial keyword;
acquiring the conversation content sent by the target user in the conversation interface each time;
if the session content currently sent by the target user meets the query specification, constructing a keyword set corresponding to the target user, wherein the keyword set comprises the initial keywords and session keywords in the session content sent by the target user each time;
searching address book information corresponding to the keyword set in the enterprise WeChat, and sending the address book information to the target user through the session interface;
and when the target user is detected to exit the session interface, withdrawing the address book information in the session interface, and ending the address book query process.
2. The method of claim 1, wherein the determining the query right of the target user comprises:
acquiring authority information updated last time, wherein the authority information comprises an upper frequency limit of query frequency;
detecting whether the query frequency of the target user in a preset time period exceeds the upper frequency limit;
when the query frequency of the target user in a preset time period does not exceed the upper frequency limit, determining that the target user has the query authority;
and when the query frequency of the target user in a preset time period exceeds the upper frequency limit, determining that the target user does not have the query authority.
3. The method of claim 2, wherein updating the rights information comprises:
acquiring a historical retrieval record of the target user in the enterprise WeChat, and determining the average query frequency of the target user;
acquiring application information of the enterprise WeChat applied by the target user, and determining the date type of the date to which the user currently uses the enterprise WeChat;
and setting the current query frequency of the target user for querying information through the enterprise WeChat based on the average query frequency, the application information and the date type, and updating the authority information based on the current query frequency.
4. The method of claim 3, wherein the searching for the address book information corresponding to the keyword set in the enterprise WeChat and sending the address book information to the target user through the session interface comprises:
searching whether historical retrieval information corresponding to the keyword set exists in the historical retrieval record or not, wherein the historical retrieval information is address book information which is retrieved by a user;
when the history retrieval record of the enterprise WeChat contains history retrieval information corresponding to the keyword set, sending the history retrieval information to the target user through the session interface;
and when the historical retrieval information corresponding to the keyword set does not exist in the historical retrieval record of the enterprise WeChat, searching address book information corresponding to the keyword set from a database corresponding to the enterprise WeChat, and sending the address book information to the target user through the session interface.
5. The method of claim 4, further comprising:
desensitizing the address book information, and storing the desensitized address book information as history retrieval information to the history retrieval record.
6. An address book inquiry device based on enterprise WeChat, characterized by comprising:
the system comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining the query authority of a target user when the target user is detected to send an address book query request in enterprise WeChat;
the first acquisition unit is used for acquiring the text content in the address book query request when the target user has the query right;
the judging unit is used for judging whether the text content meets a preset query specification;
the extraction unit is used for extracting initial keywords in the text content when the text content does not meet the preset query specification, and carrying out conversation with the target user on a conversation interface in the enterprise WeChat based on the initial keywords;
the second acquisition unit is used for acquiring the conversation content sent by the target user on the conversation interface each time;
a constructing unit, configured to construct a keyword set corresponding to the target user if the session content currently sent by the target user meets the query specification, where the keyword set includes the initial keyword and a session keyword in the session content sent by the target user each time;
the searching unit is used for searching the address book information corresponding to the keyword set in the enterprise WeChat and sending the address book information to the target user through the session interface;
and the withdrawing unit is used for withdrawing the address book information in the session interface and ending the address book query process when the target user is detected to exit the session interface.
7. The apparatus of claim 6, wherein the determining unit comprises:
the first acquisition subunit is used for acquiring authority information updated last time, wherein the authority information comprises an upper frequency limit of the query frequency;
the detection subunit is configured to detect whether the query frequency of the target user within a preset time period exceeds the upper frequency limit;
the first determining subunit is configured to determine that the target user has a query right when the query frequency of the target user in a preset time period does not exceed the upper frequency limit;
and the second determining subunit is used for determining that the target user does not have the query right when the query frequency of the target user in a preset time period exceeds the upper frequency limit.
8. The apparatus of claim 7, further comprising:
the second acquiring subunit is configured to acquire a historical retrieval record of the target user in the enterprise WeChat, and determine an average query frequency of the target user;
a third obtaining subunit, configured to obtain application information of the enterprise WeChat applied by the target user, and determine a date type of a date to which the enterprise WeChat is currently used by the user;
and the updating subunit is used for setting the current query frequency of the target user for querying the information through the enterprise WeChat based on the average query frequency, the application information and the date type, and updating the authority information based on the current query frequency.
9. The apparatus of claim 8, wherein the lookup unit comprises:
the searching subunit is configured to search whether history search information corresponding to the keyword set exists in the history search record, where the history search information is address book information that has been searched by a user;
the first sending subunit is configured to send the history retrieval information to the target user through the session interface when the history retrieval information corresponding to the keyword set exists in the history retrieval record of the enterprise WeChat;
and the second sending subunit is configured to, when the history search record of the enterprise WeChat does not include the history search information corresponding to the keyword set, search, from the database corresponding to the enterprise WeChat, address book information corresponding to the keyword set, and send the address book information to the target user through the session interface.
10. The apparatus of claim 9, further comprising:
and the desensitization unit is used for desensitizing the address book information and saving the desensitized address book information as history retrieval information to the history retrieval record.
CN202210674198.6A 2022-06-15 2022-06-15 Address book query method and device based on enterprise WeChat Pending CN115086269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210674198.6A CN115086269A (en) 2022-06-15 2022-06-15 Address book query method and device based on enterprise WeChat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210674198.6A CN115086269A (en) 2022-06-15 2022-06-15 Address book query method and device based on enterprise WeChat

Publications (1)

Publication Number Publication Date
CN115086269A true CN115086269A (en) 2022-09-20

Family

ID=83251914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210674198.6A Pending CN115086269A (en) 2022-06-15 2022-06-15 Address book query method and device based on enterprise WeChat

Country Status (1)

Country Link
CN (1) CN115086269A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853723A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Contact information query method, server and terminal
CN105631356A (en) * 2015-12-21 2016-06-01 福建星网锐捷通讯股份有限公司 Method and system for filtering address book information based on privacy policy
CN112000992A (en) * 2020-10-29 2020-11-27 腾讯科技(深圳)有限公司 Data leakage prevention protection method and device, computer readable medium and electronic equipment
CN112463839A (en) * 2020-12-21 2021-03-09 深圳供电局有限公司 Enterprise information query method and system
CN113507462A (en) * 2021-07-05 2021-10-15 中国联合网络通信集团有限公司 Zero-trust data monitoring and early warning method, device, system and storage medium
CN114091477A (en) * 2021-11-26 2022-02-25 中国建设银行股份有限公司 Data processing method and device
CN114244795A (en) * 2021-12-16 2022-03-25 北京百度网讯科技有限公司 Information pushing method, device, equipment and medium
US20220114200A1 (en) * 2020-10-13 2022-04-14 Verint Americas Inc. System and method for developing a common inquiry response

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853723A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Contact information query method, server and terminal
CN105631356A (en) * 2015-12-21 2016-06-01 福建星网锐捷通讯股份有限公司 Method and system for filtering address book information based on privacy policy
US20220114200A1 (en) * 2020-10-13 2022-04-14 Verint Americas Inc. System and method for developing a common inquiry response
CN112000992A (en) * 2020-10-29 2020-11-27 腾讯科技(深圳)有限公司 Data leakage prevention protection method and device, computer readable medium and electronic equipment
CN112463839A (en) * 2020-12-21 2021-03-09 深圳供电局有限公司 Enterprise information query method and system
CN113507462A (en) * 2021-07-05 2021-10-15 中国联合网络通信集团有限公司 Zero-trust data monitoring and early warning method, device, system and storage medium
CN114091477A (en) * 2021-11-26 2022-02-25 中国建设银行股份有限公司 Data processing method and device
CN114244795A (en) * 2021-12-16 2022-03-25 北京百度网讯科技有限公司 Information pushing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110083789B (en) Applet page acquisition method, server, client and electronic equipment
CN107992523B (en) Function option searching method of mobile application and terminal equipment
CN104767858A (en) Information display method and device
CN111353065A (en) Voice archive storage method, device, equipment and computer readable storage medium
CN113051389B (en) Knowledge pushing method and device
CN114265969A (en) Ticket information processing method and device combining RPA and AI, electronic equipment and storage medium
CN113221036B (en) Method and device for processing electronic bill mail
CN107465797B (en) Incoming call information display method and device for terminal equipment
CN113468613A (en) Log file processing method and device
CN113487328A (en) Service identity switching method and device
CN111427972B (en) Method, device, service searching system and storage medium for searching service data
CN109375963B (en) Method, storage medium and application server based on automatic log collection of collection system
CN115086269A (en) Address book query method and device based on enterprise WeChat
US20110246380A1 (en) Locating technology centers in an organization using a patent search engine
US20030162559A1 (en) Mobile communications terminal, information transmitting system and information receiving method
CN109327806B (en) Method, server and client for determining position information
CN113421565A (en) Search method, search device, electronic equipment and storage medium
JP6223739B2 (en) Function execution instruction system and function execution instruction method
CN112015773A (en) Knowledge base retrieval method and device, electronic equipment and storage medium
CN112954106A (en) Method and device for marking call records
JP6885217B2 (en) User dialogue support system, user dialogue support method and program
CN109104523B (en) Incoming call marking method and device, computer device and computer readable storage medium
KR101064422B1 (en) Mobile communication terminal and computer for telephone number searching and registration and controlling method for the same
CN110364181B (en) Electronic business card generation method, device, computer equipment and storage medium
CN110418020B (en) List state information processing method and device, electronic terminal and storage medium

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