Session creation method and device, electronic equipment and storage medium
By obtaining and grouping displaying company employee lists, using the search bar to match keywords and obtaining the user ID of the third-party server, the problem of employee information exposure and information entry is solved when using the third-party instant messaging SDK, and the protection of employee information and data updates are achieved.
Patent Information
- Application Number
- CN202411601945.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-11
AI Technical Summary
During the frequent Internet project release and iteration, how to complete upgrade iteration without users' feelings, especially when using third-party instant messaging SDK, how to protect employee information from being completely exposed to third-party servers, reduce the workload of information entry and ensure data accuracy.
By obtaining the company's employee list and displaying it in groups, entering keywords using the search bar to match and filter, obtaining the employee's work number matches the user name in the instant messaging, and obtaining the user ID of the third-party server to create a session. This method maximizes employee information, reduces the workload of information entry, and only needs to be updated in the internal company database when data is updated.
It achieves the maximum protection of identity messages of company employees, reduces the workload of information entry, ensures the accuracy of information, and gets rid of the dependence on third-party SDKs in data retrieval, simplifying the process of employee information update.
Smart Images

Figure CN119603267A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of instant messaging technology, and in particular, relates to a session creation method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of the Internet industry and the derivative variability of C-end business, the development cycle of Internet projects is also constantly shortening. The general direction is to deliver and launch first, and then continuously iterate and release according to demand. Especially for projects based on the Internet C-end, the iteration is as slow as 2 weeks and as fast as 1 week. Sometimes there will be some hot fix versions in between.
[0003] In order to minimize the impact on users, these releases are likely to be made at night when there are fewer users. With such frequent releases, how to complete the upgrade without stopping the service during the release period and without users noticing has become a very difficult, but important problem that must be solved.
[0004] A third-party instant messaging SDK is one that has a complete client, database, network protocol, etc., and can work together to complete a closed loop of communication functions. To integrate a third-party SDK application address book, it is necessary to enter all the information of the company's internal personnel into the third-party database. On the one hand, the workload is large and the messages that need to be entered are large. On the other hand, it will cause the leakage of employee information and cause security risks. In the current data age, every data resource is particularly important. In addition, there is no API for online search of address book employee information. If all contacts are pulled at once, local retrieval will cause the local data to be too heavy, and it is easy to cause data synchronization problems when using it. In addition, once employee information is updated (such as position, contact information, etc.), the data needs to be updated to the third-party database, which will greatly increase the workload. Summary of the invention
[0005] In view of this, the present application aims to propose a session creation method, device, electronic device and storage medium to solve the problem that employee information is completely exposed on a third-party server.
[0006] To achieve the above purpose, the technical solution of this application is implemented as follows:
[0007] In a first aspect, the present application provides a session creation method, comprising:
[0008] Get the company's employee list and display the employee information in groups;
[0009] Enter keywords in the search bar to match, filter data to obtain corresponding contacts, and display them through the address book interface;
[0010] The employee ID obtained from the address book is matched with the user name in the instant messaging, the user ID of the corresponding third-party server is obtained, and then a session is created.
[0011] In a second aspect, based on the same inventive concept, the present application also provides a session creation device, including:
[0012] The acquisition module is configured to acquire a list of company employees and display the employee information in groups;
[0013] A matching module is configured to enter a keyword in the search bar for matching, filter the data to obtain the corresponding contacts, and display them through the address book interface;
[0014] The creation module is configured to match the employee ID obtained from the address book with the user name in the instant messaging, obtain the user ID of the corresponding third-party server, and then create a session.
[0015] In a third aspect, based on the same inventive concept, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.
[0016] In a fourth aspect, based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0017] Compared with the prior art, the session creation method, device, electronic device and storage medium described in the present application have the following beneficial effects:
[0018] The session creation method, device, electronic device and storage medium described in this application can protect the identity information of company employees to the greatest extent, and use the most public and unique employee number in employee information as a bridge for interaction with third-party SDKs; at the same time, it greatly reduces the workload of entering information and ensures the accuracy of entered information. In addition, in terms of data retrieval, it gets rid of the dependence on third-party SDKs, and the update of employee information can be done by simply updating the company's internal database. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 A flow chart of a session creation method described in an embodiment of the present application;
[0021] Figure 2 A schematic diagram of the structure of a session creation device according to an embodiment of the present application;
[0022] Figure 3 This is a schematic diagram of the hardware structure of the electronic device described in the embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0024] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0025] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0026] See also Figure 1 As shown, this embodiment provides a session creation method, including:
[0027] Step S101: Obtain a list of company employees and display the employee information in groups.
[0028] Specifically, in this embodiment, the company's internal API interface is called to obtain the company's employee list, and the company's employee information is grouped and displayed on the address book panel, which specifically includes the following steps:
[0029] A101. Filter out employee IDs and corresponding encrypted passwords from the company's internal server to retrieve employee information.
[0030] A102. Register the pulled employee information to a third-party server, register the employee ID as the user name for IM login, and the encrypted password as the password for third-party IM login.
[0031] This step obtains complete employee information through the company's internal database to avoid exposing the information to a third-party server. When user information needs to be updated, only the company's internal server needs to be updated to avoid the need for synchronous updates of two databases, thereby reducing workload and ensuring data stability.
[0032] Step S102: Enter keywords in the search bar for matching, filter data to obtain corresponding contacts, and display them through the address book interface.
[0033] In this embodiment, the following steps are specifically included:
[0034] B101. Get the string entered in the search bar and remove the space symbols in the characters;
[0035] B102, determine whether the length of the string is greater than 0, if it is greater than 0, proceed to step B103, if not, return to step B101;
[0036] B103. Call the company's internal API, pass the string to the backend server, perform keyword matching (including employee name, employee name pinyin, employee ID), perform fuzzy matching, return the queried information to the mobile terminal, and display it on the address book interface.
[0037] Step S103: Match the employee ID obtained in the address book with the user name in the instant messaging, obtain the user ID of the corresponding third-party server, and then create a session.
[0038] In this embodiment, the following steps are specifically included:
[0039] C101. By selecting a contact, obtain the employee ID from the company's internal server and store it in the selected contact array.
[0040] C102, by judging whether the number of elements in the array is greater than 0, if so, enter C103, otherwise return to C101.
[0041] C103, if there are session objects in the contact array, if the number of session objects is equal to 1, then the employee ID stored in the array is used as the user name to enter the third-party application to create a single chat session; if the number of session objects in the array is greater than 1, then the employee ID in the object array is put into the API of the third-party application to create a group chat session, and the creator becomes the owner of a group chat session. If the above session is successfully created, enter C104, otherwise continue to C103.
[0042] C104. The session is created successfully, leaving the address book and entering the session interface.
[0043] This step associates a relatively secure work number with a third-party server, and the third-party service can be used normally through this association key.
[0044] In addition, this application also provides another alternative solution that can also meet the above requirements, that is, after logging in through the APP itself on the mobile terminal, the third-party registration function can be called up, and the work number is used as the username to register, and the encrypted password is the registration password. The confidentiality of the message can also be achieved, but this approach has obvious disadvantages: First, it is necessary to register after each login, and it is impossible to determine whether it has been registered, resulting in a waste of resources. Second, once an employee has never logged in, other employees can see this person in the address book. After selecting this person, creating a session will fail, because the other party has not registered in the third-party SDK at all, and the corresponding dialogue cannot be established. During the registration process on the mobile terminal, registration often fails due to network, hardware and other problems, which has an adverse effect on the stability of the mobile terminal.
[0045] The session creation method described in this application can protect the identity information of company employees to the greatest extent, and use the most public and unique employee number in employee information as a bridge for interaction with third-party SDKs. At the same time, it greatly reduces the workload of entering information and ensures the accuracy of entered information. In terms of data retrieval, it gets rid of the dependence on third-party SDKs, and the update of employee information can be done by simply updating the company's internal database. This is because the relative uniqueness and stability of the employee number only requires keeping the corresponding key values of the third-party SDK and the company's internal employee information unchanged, and the mutual calling function between the two can be opened.
[0046] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0047] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application also provides a session creation device.
[0048] like Figure 2 As shown, the session creation device includes:
[0049] The acquisition module 11 is configured to acquire a list of company employees and display the employee information in groups;
[0050] The matching module 12 is configured to enter a keyword in the search bar for matching, filter the data to obtain the corresponding contacts, and display them through the address book interface;
[0051] The creation module 13 is configured to match the employee ID obtained from the address book with the user name in the instant messaging, obtain the user ID of the corresponding third-party server, and then create a session.
[0052] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0053] The device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0054] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any of the above embodiments is implemented.
[0055] Figure 3 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0056] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0057] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0058] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0059] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0060] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0061] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0062] The electronic device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0063] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in any of the above embodiments.
[0064] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0065] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0066] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0067] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0068] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art based on the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0069] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A session creation method, characterized in that: include: Get the company's employee list and display the employee information in groups; Enter keywords in the search bar to match, filter data to obtain corresponding contacts, and display them through the address book interface; The employee ID obtained from the address book is matched with the user name in the instant messaging, the user ID of the corresponding third-party server is obtained, and then a session is created.
2. The method according to claim 1, characterized in that The method of obtaining a company employee list and displaying employee information in groups includes: Filter and obtain the employee ID and corresponding encrypted password from the company server; The obtained employee information is registered to a third-party server, wherein the employee ID is registered as the user name for logging into the third-party application, and the encrypted password is the password for logging into the third-party application.
3. The method according to claim 1, characterized in that The step of entering a keyword in the search bar for matching, filtering data to obtain corresponding contacts, and displaying them through the address book interface includes: Get the string entered in the search bar and remove the space characters; Determine whether the length of the string is greater than a first predetermined threshold value, and in response to the length of the string being greater than the first predetermined threshold value, call the company's internal API to transmit the string to a backend server for keyword matching, wherein fuzzy matching is performed on the keyword, and the keyword includes the employee's name, the employee's name pinyin, and the employee's work number; The employee information obtained after matching is returned to the mobile terminal and displayed on the address book interface.
4. The method according to claim 3, characterized in that Also includes: In response to the length of the character string being less than a first predetermined threshold, a keyword is re-entered in the search bar for matching until the length of the character string is greater than the first predetermined threshold.
5. The method according to claim 1, characterized in that The matching of the employee ID obtained from the address book with the user name in the instant messaging to obtain the user ID of the corresponding third-party server row and then create a session includes: By selecting a contact, get the employee ID from the company's internal server and store it in the selected contact array; By determining whether the number of elements in the array is greater than a second predetermined threshold, in response to the number of elements in the array being greater than the second predetermined threshold, determining that a session object exists in the contact array; If the number of the session objects is equal to a third predetermined threshold, entering the third-party application to create a single chat session using the stored employee ID as a user name; If the number of the session objects is not equal to the third predetermined threshold, the employee ID in the array is put into the API of the third-party application to create a group chat session, and the creator becomes the owner of the group chat session; The session is created successfully, leaving the address book and entering the session interface.
6. The method according to claim 5, characterized in that Also includes: In response to the number of elements in the array being less than or equal to the second predetermined threshold, a contact is reselected, and the acquired employee ID is stored in the selected contact array.
7. A session creation device, characterized in that: include: The acquisition module is configured to acquire a list of company employees and display the employee information in groups; A matching module is configured to enter a keyword in the search bar for matching, filter the data to obtain the corresponding contacts, and display them through the address book interface; The creation module is configured to match the employee ID obtained from the address book with the user name in the instant messaging, obtain the user ID of the corresponding third-party server, and then create a session.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium, characterized in that: in, The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 6.