A data processing method, device, electronic device and storage medium

Through the instant messaging interoperability component, user relationships are established between enterprise WeChat and personal WeChat, and application data is obtained and processed, which solves the problem that enterprise WeChat and personal WeChat cannot be interconnected, and improves the security and convenience of data processing.

CN114721841BActive Publication Date: 2025-08-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110003952.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-04
Publication Date
2025-08-01
Estimated Expiration
2041-01-04

AI Technical Summary

Technical Problem

Enterprise WeChat and personal WeChat cannot process application data, resulting in untimely and poor scalability of message interactions between instant messaging applications.

Method used

The instant messaging intercom components obtain user information of different instant messaging clients, establish user association relationships, and obtain and process application data, trigger corresponding program components to realize data processing.

Benefits of technology

It realizes timely processing of application data across applications, improves the security and convenience of data processing, and reduces the communication complexity between different instant messaging clients.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114721841B_ABST
    Figure CN114721841B_ABST
Patent Text Reader

Abstract

The present invention provides a data processing method, including: an instant messaging interoperability component obtains first user information in a first client and second user information in a second client, and establishes an association relationship between the first user and the second user; obtains application data transmitted between the first client and the second client, and receives an operation matching the data type of the application data; in response to the received operation, triggers a corresponding program component in the first client or triggers a corresponding processing component of the second client; so as to implement the processing of the application data through the first client or the second client. The present invention also provides a device, an electronic device and a storage medium. Thereby, it is possible to implement the timely processing of cross-application data through the instant messaging interoperability component, improve the security of cross-application data processing, improve the convenience of application data processing, and reduce the complexity of communication between different instant messaging clients.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to data processing technologies, and in particular, to data processing methods, devices, electronic devices, and storage media. Background Art

[0002] With the continuous development of computer technologies and mobile Internet technologies, a large number of instant messaging applications have emerged, providing many conveniences for user communication. In related technologies, a user can run WeCom for enterprise and WeChat for personal use on a terminal. Among them, WeCom is a service platform for enterprise-level one-stop software as a service (SAAS), and the main objects it serves are enterprises and various merchants. WeChat for personal use is a free application program that provides instant messaging services for smart terminals, supporting the rapid sending of voice messages, videos, pictures, and texts across communication carriers and operating system platforms through the network. WeCom and WeChat for personal use both belong to service platforms provided by the same enterprise, but it is impossible to process application data through WeCom and WeChat for personal use. Therefore, it is necessary to achieve message intercommunication between various instant messaging applications to improve the timeliness of message interaction in various instant messaging applications and enhance the scalability of instant messaging applications. Summary of the Invention

[0003] In view of this, the data processing methods, devices, electronic devices, and storage media provided by the embodiments of the present invention can implement the processing of application data through a first client or a second client, ensure the interaction of application data in different instant messaging clients, improve the convenience of application data processing, and reduce the complexity of communication between different instant messaging clients.

[0004] The technical solutions of the embodiments of the present invention are implemented as follows:

[0005] The embodiments of the present invention provide a data processing method, including:

[0006] An instant messaging intercommunication component obtains first user information in a first client and second user information in a second client, where the first client and the second client are different types of instant messaging clients;

[0007] Based on the first user information and the second user information, through the instant messaging intercommunication component, an association relationship between the first user and the second user is established;

[0008] Obtain application data transmitted between the first client and the second client, and receive an operation matching the data type of the application data;

[0009] In response to the received operation, trigger a corresponding program component in the first client, or

[0010] Trigger the corresponding processing component of the second client; to implement the processing of the application data through the first client or the second client.

[0011] An embodiment of the present invention further provides a data processing device, the device includes:

[0012] An information transmission module, configured to obtain first user information in a first client and second user information in a second client, where the first client and the second client are instant messaging clients of different types;

[0013] An information processing module, configured to establish an association relationship between the first user and the second user through the instant messaging intercommunication component based on the first user information and the second user information;

[0014] The information processing module is configured to obtain application data transmitted between the first client and the second client, and receive an operation matching the data type of the application data;

[0015] The information processing module is configured to trigger a corresponding program component in the first client in response to the received operation;

[0016] The information processing module is configured to trigger the corresponding processing component of the second client; to implement the processing of the application data through the first client or the second client.

[0017] In the above solution,

[0018] The information processing module is configured to obtain the digital identity recognition framework of the first user;

[0019] The information processing module is configured to determine the first client type and the account information of the first user based on the digital identity recognition framework of the first user;

[0020] The information processing module is configured to obtain the digital identity recognition framework of the second user through the instant messaging intercommunication component;

[0021] The information processing module is configured to determine the second client type and the account information of the second user based on the digital identity recognition framework of the second user.

[0022] In the above solution,

[0023] The information processing module is configured to receive and forward a contact addition request through the instant messaging intercommunication component based on the account information of the first user and the account information of the second user, where the contact addition request is used to represent the contact addition information initiated by the first user in the first client to the second user in the second client;

[0024] The information processing module is configured to receive the contact addition response information sent by the second user in the second client.

[0025] The information processing module is configured to forward the contact addition response information to the first user in the first client based on the contact addition response information, so as to process the contact addition response information through a two-phase transaction processing process and establish an association relationship between the first user and the second user.

[0026] The information processing module is configured to receive and forward a receipt of the contact addition response information to the second client, so as to enable the second client to save the established association relationship between the first user and the second user.

[0027] In the above solution,

[0028] The information processing module is configured to obtain the contact addition response information through an instant messaging intercommunication component and forward the contact addition response information to the first user in the first client, so as to achieve at least one of the following:

[0029] Check the service information permissions corresponding to the contact addition response information through a two-phase transaction processing process, and register transaction information matching the contact addition response information through the instant messaging intercommunication component; or,

[0030] When the association relationship between the first user and the second user is not established, repeatedly send the contact addition response information through the second client until the association relationship between the first user and the second user is established.

[0031] In the above solution,

[0032] The information processing module is configured to, when the second client saves the association relationship between the first user and the second user and the first client does not save the association relationship between the first user and the second user, repeatedly forward corresponding instruction information to the second client based on the transaction information registered by the instant messaging intercommunication component and matching the contact addition response information until the first client saves the association relationship between the first user and the second user.

[0033] In the above solution,

[0034] The information processing module is configured to, when the second client does not save the association relationship between the first user and the second user, trigger an inquiry interface through the instant messaging intercommunication component to achieve at least one of the following:

[0035] The second client saves the association relationship between the first user and the second user, and the first client saves the association relationship between the first user and the second user; or,

[0036] Neither the first client nor the second client saves the association relationship between the first user and the second user.

[0037] In the above solution,

[0038] The information processing module is used to save the friend relationship data between the first user and the second user, and update the friend relationship data to the friend lists of the first user and the second user;

[0039] The information processing module is used to send the updated friend list of the first user to the first client, so that the first client updates the friend list of the first user in the first client based on the updated friend list of the first user;

[0040] The information processing module is used to send the updated friend list of the second user to the second client, so that the second client updates the friend list of the second user in the second client based on the updated friend list of the second user.

[0041] In the above solution,

[0042] The information processing module is used to obtain the application data transmitted between the first client and the second client and the information transmission operation instruction, and determine the association relationship between the first user and the second user;

[0043] The information processing module is used to asynchronously deliver the application data transmitted between the first client and the second client to the instant messaging intercommunication component;

[0044] The information processing module is used to enable the instant messaging intercommunication component to save the received application data in the first message queue and transmit it to the first client;

[0045] The information processing module is used to send a failure flag to the second client when it is determined that the first client does not save the association relationship between the first user and the second user, so as to notify the second user in the second client that the information transmission fails.

[0046] In the above solution,

[0047] The information processing module is used to receive a group data change trigger request sent by the server corresponding to the group data when the first user and the second user are in the same communication group, and the group data change request carries a group identifier and group change data;

[0048] The information processing module is configured to trigger a request to update the latest group data corresponding to the group identifier and the local group data change identifier according to the change of the group data;

[0049] The information processing module is configured to synchronize the latest group data to the server of the message system to which the member accounts in the group session belong according to the updated local group data change identifier, so that the server of the message system to which the member accounts belong synchronizes the latest group data to the terminals corresponding to the member accounts.

[0050] An embodiment of the present invention further provides an electronic device, which includes:

[0051] A memory for storing executable instructions;

[0052] A processor, when running the executable instructions stored in the memory, implements the foregoing data processing method.

[0053] An embodiment of the present invention further provides a computer-readable storage medium storing executable instructions, and when the executable instructions are executed by a processor, the foregoing data processing method is implemented.

[0054] The embodiments of the present invention have the following beneficial effects:

[0055] The instant messaging interoperability component obtains the first user information in the first client and the second user information in the second client, where the first client and the second client are instant messaging clients of different types; based on the first user information and the second user information, through the instant messaging interoperability component, an association relationship between the first user and the second user is established; the application data transmitted between the first client and the second client is obtained, and an operation matching the data type of the application data is received; in response to the received operation, the corresponding program component in the first client or the corresponding processing component of the second client is triggered; so as to implement the processing of the application data through the first client or the second client; thereby, it is possible to implement the timely processing of cross-application data through the instant messaging interoperability component, improve the security of cross-application data processing, and ensure the interaction of application data in different instant messaging clients, improve the convenience of application data processing, and reduce the complexity of communication between different instant messaging clients. Description of the Drawings

[0056] Figure 1 It is a schematic diagram of the usage scenario of the data processing method provided by the embodiment of the present invention;

[0057] Figure 2 It is a schematic diagram of the composition structure of the data processing device provided by the embodiment of the present invention;

[0058] Figure 3 An optional flowchart of the data processing method provided by an embodiment of the present invention;

[0059] Figure 4 A data interaction diagram of the data processing method provided by an embodiment of the present invention;

[0060] Figure 5 A data update diagram in an embodiment of the present invention;

[0061] Figure 6 An optional flowchart of the data processing method provided by an embodiment of the present invention;

[0062] Figure 7 A friend update diagram in the data processing method provided by an embodiment of the present invention;

[0063] Figure 8 A data transmission diagram of friend update in the data processing method provided by an embodiment of the present invention;

[0064] Figure 9 A client display diagram of the data processing method in the present invention. Detailed implementation manners

[0065] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be construed as limiting the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present invention.

[0066] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the technical field to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.

[0067] It should be noted that in the following descriptions, reference is made to "some embodiments", which describe subsets of all possible embodiments. However, it can be understood that "some embodiments" can be the same subsets or different subsets of all possible embodiments and can be combined with each other without conflict.

[0068] Before further elaborating on the embodiments of the present invention, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following explanations.

[0069] 1) Application data, including: cross-application data and single-application data. Among them, cross-application data allows users to process data on different clients, while single-application data only allows users to process it on a fixed client but can only be viewed on other clients.

[0070] 2) Terminals, including but not limited to: ordinary terminals and dedicated terminals. Among them, the ordinary terminal maintains a long connection and / or a short connection with the sending channel, and the dedicated terminal maintains a long connection with the sending channel.

[0071] 3) Client, a carrier for implementing specific functions in a terminal. For example, a mobile client (APP) is a carrier for specific functions in a mobile terminal, such as performing an online live broadcast function or an online video playback function.

[0072] 4) In response to, used to represent the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more executed operations can be real-time or can have a set delay; without special instructions, there is no restriction on the execution order of multiple executed operations.

[0073] 5) Mini Program, a program developed based on a front-end-oriented language (such as JavaScript) and implemented services in a Hyper Text Markup Language (HTML) page. It is software downloaded by a client (such as a browser or any client embedded with a browser core) via a network (such as the Internet) and interpreted and executed in the browser environment of the client, saving the steps of installation on the client. For example, in a social network client, mini programs for implementing various services such as flight ticket purchase and ride code can be downloaded and run.

[0074] Figure 1 Schematic diagram of the usage scenario of the data processing method provided by the embodiments of the present invention, see Figure 1, software clients (i.e., 110-1 and 110-2) capable of performing instant messaging functions are set on terminals (including terminal 10-1 and terminal 10-2), such as clients or plugins of enterprise WeChat, personal WeChat, or chat software QQ. Users can perform corresponding communication functions through the corresponding clients, and during the operation of the instant messaging clients, information transmission and instruction processing are carried out on users in different instant messaging clients through the instant messaging interconnection component. The instant messaging interconnection (Instant Messaging Union, instant messaging interconnection component) component is connected. The instant messaging interconnection component of the server is used to perform the following operations: heterogeneous account management, message logic, event center, KV storage. The instant messaging interconnection component of the interconnection server mainly relays messages between two heterogeneous systems, the first application and the second application. The terminal is connected to the server 200 through the network 300. The network 300 can be a wide area network, a local area network, or a combination of the two, and uses a wireless link to achieve data transmission.

[0075] As an example, terminal 10-1 or terminal 10-2 is used to deploy the data processing device to implement the data processing method provided by the present invention, so as to obtain the first user information in the first client and the second user information in the second client through the instant messaging interconnection component. Among them, the first client and the second client are different types of instant messaging clients; based on the first user information and the second user information, through the instant messaging interconnection component, an association relationship between the first user and the second user is established; the application data transmitted between the first client and the second client is obtained, and an operation matching the data type of the application data is received; in response to the received operation, the corresponding program component in the first client or the corresponding processing component of the second client is triggered; so as to implement the processing of the application data through the first client or the second client.

[0076] The structure of the data processing device in the embodiment of the present invention will be described in detail below. The data processing device can be implemented in various forms, such as a dedicated terminal with data processing device processing functions, or a server provided with data processing device processing functions, such as the server 200 in the previous Figure 1 article. Figure 2 is a schematic diagram of the composition structure of the data processing device provided by the embodiment of the present invention. It can be understood that Figure 2 only shows the exemplary structure of the data processing device rather than all structures, and can implement Figure 2 the partial structure or all structures shown according to needs.

[0077] The data processing device provided by the embodiments of the present invention includes: at least one processor 201, a memory 202, a user interface 203, and at least one network interface 204. Each component in the data processing device is coupled together through a bus system 205. It can be understood that the bus system 205 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 205 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 2 the various buses are all labeled as the bus system 205.

[0078] Among them, the user interface 203 may include a display, a keyboard, a mouse, a trackball, a click wheel, a button, a touchpad, or a touch screen, etc.

[0079] It can be understood that the memory 202 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The memory 202 in the embodiments of the present invention can store data to support the operation of the terminal (such as 10-1). Examples of these data include: any computer programs for operating on the terminal (such as 10-1), such as an operating system and application programs. Among them, the operating system contains various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs.

[0080] In some embodiments, the data processing device provided by the embodiments of the present invention can be implemented in a combination of software and hardware. As an example, the data processing device provided by the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the data processing method provided by the embodiments of the present invention. For example, a processor in the form of a hardware decoding processor may employ one or more application-specific integrated circuits (ASICs, Application Specific Integrated Circuits), DSPs, programmable logic devices (PLDs, Programmable Logic Devices), complex programmable logic devices (CPLDs, Complex Programmable Logic Devices), field-programmable gate arrays (FPGAs, Field-Programmable Gate Arrays), or other electronic components.

[0081] As an example of the data processing device provided by the embodiments of the present invention implemented by combining software and hardware, the data processing device provided by the embodiments of the present invention can be directly embodied as a software module combination executed by the processor 201. The software module can be located in a storage medium, and the storage medium is located in the memory 202. The processor 201 reads the executable instructions included in the software module in the memory 202 and combines the necessary hardware (for example, including the processor 201 and other components connected to the bus 205) to complete the data processing method provided by the embodiments of the present invention.

[0082] As an example, the processor 201 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0083] As an example of the data processing device provided by the embodiments of the present invention implemented by hardware, the device provided by the embodiments of the present invention can be directly executed and completed by the processor 201 in the form of a hardware decoding processor. For example, it is executed by one or more application-specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), complex programmable logic device (CPLD, Complex Programmable Logic Device), field programmable gate array (FPGA, Field-Programmable Gate Array) or other electronic components to implement the data processing method provided by the embodiments of the present invention.

[0084] The memory 202 in the embodiments of the present invention is used to store various types of data to support the operation of the data processing device. Examples of these data include: any executable instructions for operating on the data processing device, such as executable instructions, and the program for implementing the data processing method of the embodiments of the present invention can be included in the executable instructions.

[0085] In some other embodiments, the data processing device provided by the embodiments of the present invention can be implemented in a software manner. Figure 2The data processing device stored in the memory 202 is shown. It can be software in the form of programs and plugins, etc., and includes a series of modules. As an example of the program stored in the memory 202, it can include a data processing device, and the data processing device includes the following software module information transmission module 2081 and information processing module 2082. When the software modules in the data processing device are read into the RAM by the processor 201 and executed, the data processing method provided by the embodiments of the present invention will be implemented. Among them, the functions of each software module in the data processing device include:

[0086] The information transmission module 2081 is used to obtain the first user information in the first client and the second user information in the second client, where the first client and the second client are different types of instant messaging clients.

[0087] The information processing module 2082 is used to establish an association relationship between the first user and the second user based on the first user information and the second user information through the instant messaging interoperability component.

[0088] The information processing module is used to obtain the application data transmitted between the first client and the second client and receive an operation matching the data type of the application data.

[0089] The information processing module 2082 is used to trigger the corresponding program component in the first client in response to the received operation.

[0090] The information processing module 2082 is used to trigger the corresponding processing component of the second client; to implement the processing of the application data through the first client or the second client.

[0091] According to Figure 2 The data processing device shown, in one aspect of the present application, the present application also provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes different embodiments and combinations of the embodiments provided in various alternative implementations of the above data processing method.

[0092] Combined with Figure 2 The data processing device shown to illustrate the data processing method provided by the embodiments of the present invention. See Figure 3 , Figure 3 is an optional flowchart of the data processing method provided by the embodiments of the present invention. It can be understood that Figure 3The steps shown can be executed by various electronic devices running a data processing device, such as a mobile phone or a tablet computer with data processing capabilities. The following is for Figure 3 the steps shown for illustration.

[0093] Step 301: The instant messaging interoperability component obtains the first user information in the first client and the second user information in the second client.

[0094] In some embodiments of the present invention, the instant messaging interoperability component obtains the first user information in the first client and the second user information in the second client, which can be achieved in the following manner:

[0095] The instant messaging interoperability component obtains the digital identity recognition framework of the first user; based on the digital identity recognition framework of the first user, determines the type of the first client and the account information of the first user; the instant messaging interoperability component obtains the digital identity recognition framework of the second user; based on the digital identity recognition framework of the second user, determines the type of the second client and the account information of the second user. Among them, the obtained OpenID corresponding to the user identity. OpenID is the only identifier corresponding to the user identity on the website or in the application. The website or application can store this ID to facilitate the user to identify their identity when logging in next time, or bind it to the user's original account on the website or in the application. The openid type is in the email address format; different suffixes are used to distinguish accounts from different systems. For example, when the instant messaging client is the WeChat process: aaaa@wechat; aaaa represents the unique ID of WeChat, and wechat represents the WeChat system account; when the instant messaging client is the WeCom process: bbbb@wxwork, bbbb represents the unique ID within WeCom, and wxwork represents the WeCom system account.

[0096] In some embodiments of the present invention, the first client and the second client belonging to different users can run on the same terminal. The interoperability server can send the application data received from the two clients to the first client server corresponding to the first client, and send the application data to the first client through the first client server, so as to enable the first client to receive the application data. For example, the first client can be Personal WeChat (abbreviated as WeChat), and the second client can be WeCom.

[0097] Step ۳۰۲: Based on the first user information and the second user information, establish an association relationship between the first user and the second user through the instant messaging interoperability component.

[0098] In some embodiments of the present invention, based on the first user information and the second user information, an association relationship between the first user and the second user is established through the instant messaging interoperability component, which can be achieved in the following manner:

[0099] Based on the account information of the first user and the account information of the second user, receive and forward a contact addition request through the instant messaging interoperability component, where the contact addition request is used to represent the contact addition information initiated by the first user in the first client to the second user in the second client; receive the contact addition response information sent by the second user in the second client; based on the contact addition response information, forward the contact addition response information to the first user in the first client to implement processing of the contact addition response information through a two-stage transaction processing process, and establish the association relationship between the first user and the second user; receive and forward a receipt of the contact addition response information to the second client to enable the second client to save the established association relationship between the first user and the second user. Where reference Figure 4 , Figure 4 is a schematic diagram of data interaction of the data processing method provided by an embodiment of the present invention. WxA in the first client (WeChat client) initiates a friend addition request to wwB in the second client (Enterprise WeChat client), and the WeChat server forwards the request to the Enterprise WeChat server through the instant messaging interoperability component; the Enterprise WeChat server performs relevant logic checks and synchronously returns an indication information of success or failure; if successful, save the application information list for wwb. Since Figure 4 in the processing of the two steps shown as 1.1 WeChat sending a request to Enterprise WeChat and 1.2 the instant messaging interoperability component requesting Enterprise WeChat, situations such as network failure and timeout may occur, and the WeChat client wxA prompts a request timeout; this does not affect data consistency, and wxA can retry the request.

[0100] In some embodiments of the present invention, based on the contact addition response information, forward the contact addition response information to the first user in the first client to implement processing of the contact addition response information through a two-stage transaction processing process, and establish the association relationship between the first user and the second user, which can be achieved in the following manner:

[0101] The instant messaging interoperability component obtains the contact addition response information and forwards the contact addition response information to the first user in the first client to achieve at least one of the following:

[0102] Check the business information permission corresponding to the response information added to the contact through the two-phase transaction processing process, and register transaction information matching the contact addition response information through the instant messaging interoperability component; or, when the association relationship between the first user and the second user is not established, repeatedly send the contact addition response information through the second client until the association relationship between the first user and the second user is established. Among them, refer to Figure 4 , when wwB agrees to wxA's request, if the enterprise WeChat initiates an agreement to go to the WeChat server, after the WeChat client passes the logical verification; the relationship of wxA->wwB is successfully written, but at this time, the response packet to the enterprise WeChat times out due to network and other problems, which will cause the relationship chain of the enterprise WeChat client wwB->wxA not to be written successfully. Data inconsistency occurs. To achieve consistent processing, in the approval process, save either all successfully or all unsuccessfully; the two-phase transaction processing process is as Figure 4 shown: 2.1 The enterprise WeChat sends a prepare approval request to imuion; the instant messaging interoperability component synchronously initiates a 2.2 prepare request to WeChat; after receiving the prepare approval request, WeChat only performs relevant business permission checks (without saving relationship data), and returns failure directly if it fails; if it is successful, the instant messaging interoperability component will register transaction A in its own transaction center; when the abnormal situation is handled and fails, wwb can initiate a retry.

[0103] In some embodiments of the present invention, when the second client saves the association relationship between the first user and the second user, and the first client does not save the association relationship between the first user and the second user,

[0104] Based on the transaction information registered by the instant messaging interoperability component that matches the contact addition response information, repeatedly forward the corresponding instruction information to the second client until the first client saves the association relationship between the first user and the second user. Among them, taking the previous embodiment as an example, after the enterprise WeChat client receives the successful response packet of the prepare approval, it saves the relationship of wwB->wxA in the system storage; when the saving is completed, it can call 3.1 commit approval to submit the transaction. If the relationship saving fails, the submission will not be made. After receiving the 3.1 commit request, Imunoin will submit 3.2 commit to the WeChat client to save the relationship of wxA->wwB. If 3.2 commit fails due to an abnormal request failure (WeChat has performed logical verification on the prepare request in 2.2, so 3.2 commit logically needs to ensure success), the transaction will be retried until it succeeds to ensure the storage consistency of different instant messaging clients.

[0105] In some embodiments of the present invention, when the second client does not save the association relationship between the first user and the second user, the instant messaging interoperability component triggers an inquiry interface to achieve at least one of the following:

[0106] The second client saves the association relationship between the first user and the second user, and the first client saves the association relationship between the first user and the second user; or, neither the first client nor the second client saves the association relationship between the first user and the second user. Among them, if the 3.1 commit submission of the instant messaging interoperability component fails, or the enterprise WeChat processes the access of wwB->wxA for saving but does not request the 3.1 commit due to an abnormal request. Then, after the transaction times out, the 4.1 query interface will be called to inquire the enterprise WeChat client whether the relationship of wwB->wxA passes; if it passes, continue to submit the 4.2 commit to the WeChat client until the save is successful. If the save is not successful, do not continue to submit the commit instruction. Thus, data consistency can be ensured.

[0107] In some embodiments of the present invention, the friendship data between the first user and the second user can also be saved, and the friendship data is updated to the friend lists of the first user and the second user;

[0108] The updated friend list of the first user is sent to the first client so that the first client can update the friend list of the first user in the first client based on the updated friend list of the first user; the updated friend list of the second user is sent to the second client so that the second client can update the friend list of the second user in the second client based on the updated friend list of the second user.

[0109] Step 303: Obtain the application data transmitted between the first client and the second client, and receive an operation that matches the data type of the application data.

[0110] In some embodiments of the present invention, receiving an operation that matches the data type of the application data can be achieved in the following ways:

[0111] When the data type of the application data is the application data of a single application, receive an operation matching the application data of the single application; the operation matching the application data of the single application includes at least one of the following: adjusting the display position, display parameters, and display time of the application data of the single application. Among them, taking the first client as the client of WeCom and the second client as the client of WeChat as an example, the process of receiving an operation matching the application data of the single application is described. Among them, when the client of WeCom is in the open state, when the server of the client of WeChat receives the application data of a single application (where the application data of the single application can be various messages such as session messages, official account messages, and mini-program messages), the received application data of the single application is sent to the client of WeCom, and the user can trigger the corresponding components of the client of WeChat to process the received application data of the single application through the operation on the client of WeCom. Thus, it is possible to timely learn the application data of a single application received by the client of WeChat in the client of WeCom, and at the same time avoid the low-security processing of the application data of a single application in the client of WeCom, improving the security of processing the application data of a single application.

[0112] Step 304: In response to the received operation, trigger the corresponding program component in the first client, or trigger the corresponding processing component of the second client; to implement the processing of the application data through the first client or the second client.

[0113] Thus, it is possible to implement the processing of the application data through the first client or the second client.

[0114] In some embodiments of the present invention, when the data type of the application data is cross-application application data, in response to the operation, the corresponding program component in the first client can be triggered; to implement, based on the corresponding program component in the first client, performing an operation matching the data type of the application data to process the cross-application application data. Among them, taking the first client as the client of WeCom and the second client as the client of WeChat as an example, the process of processing the application data according to the data type of the application data is described. Among them, when the client of WeCom receives cross-application application data, the user can perform corresponding processing through the client of WeCom as the first client. For example, when the cross-application application data is payment reminder information, the user can trigger, through corresponding operations, to share the payment reminder information received by the client of WeChat with the contacts in the client of WeCom, or click on the hyperlink in the payment reminder information through the program component of the client of WeCom to achieve page jump.

[0115] Reference Figure 5 , Figure 5 is a schematic diagram of data update in an embodiment of the present invention. When updating the communication group data of an instant messaging client, the group data includes: group profile (group name, group announcement, group owner, etc.), and group member list. The data is required to be consistent among all third parties. The modification and synchronization adopt the primary-backup synchronization method. All modifications must be completed successfully on the instant messaging interoperability component. After completion, the instant messaging interoperability component pushes notifications to each third-party application process, and the third-party application process incrementally pulls the changed data through the version number to ensure final consistency. The following takes the process of adding the wx3 account to the group by the enterprise WeChat account ww2 (when the instant messaging client is the enterprise WeChat process, a user in the enterprise WeChat can pull other users into the same communication group) to illustrate the group data update in this embodiment, which specifically includes:

[0116] Step 501: The enterprise WeChat process sends a request of "ww2 add wx3 to room1" to the instant messaging interoperability component for permission verification.

[0117] Among them, the instant messaging interoperability component first synchronously checks whether ww2 has the permission to pull people. If it passes, it uses the checkadd interface to check with the WeChat server (the system of the pulled account wx3) whether it can be pulled in (logically, wx3 must have added ww2 as a friend to be pulled into the group). After the check is successful, the instant messaging interoperability component stores wx3 in the group member list and generates the latest version number ver3 (a monotonically increasing ratio, larger than the ver of the existing members in the group). And it will successfully send to the enterprise WeChat server

[0118] Step 502: The enterprise WeChat client performs update processing based on the successful return information of the instant messaging interoperability component.

[0119] Among them, wx3 can be saved in the group member category of this system first (but the version information is not saved), so that the user can perceive that they have been pulled into the group. Since there may be other changes with version numbers smaller than ver3 in the group that have not been updated from the instant messaging interoperability component yet, if the maximum version of the group members is increased to ver3, it may cause those changes smaller than ver3 to be unable to be synchronized in the future. Therefore, the version number information can be not saved.

[0120] Further, when different users in different instant messaging clients in a communication group communicate, it includes the following steps:

[0121] Step 503: After the instant messaging interoperability component updates wx3-ver3, it broadcasts the change information to all systems where group members are located.

[0122] Among them, after the third-party system receives the change notice, through the sync interface, it can pull data larger than the current version in the instant messaging interoperability component. The change updates the incremental data (members and version) to the storage of this system, thereby ensuring the consistency of the final data.

[0123] In some embodiments of the present invention, obtaining the application data transmitted between the first client and the second client and receiving an operation matching the data type of the application data can be implemented in the following manner:

[0124] Obtain the application data transmitted between the first client and the second client and the information transmission operation instruction, and determine the association relationship between the first user and the second user; asynchronously deliver the application data transmitted between the first client and the second client to the instant messaging interoperability component; the instant messaging interoperability component saves the received application data in the first message queue and transmits it to the first client; when it is determined that the first client does not save the association relationship between the first user and the second user, send a failure flag to the second client to notify the second user in the second client that the information transmission fails. Among them, refer to Figure 6 , Figure 6 is an optional flowchart of the data processing method provided by the embodiment of the present invention. wwB can send a message to wxA, which is to check whether wxA has added wwB (wxA->wwB); although the reverse relationship wwB<-wxA may be saved in the enterprise WeChat system, since users can delete communication information, it cannot be guaranteed that the reverse relationship is necessarily accurate. Figure 7 is a schematic diagram of friend update in the data processing method provided by the embodiment of the present invention, which specifically includes the following steps:

[0125] Step 601: wwB sends a message to wxA.

[0126] Among them, after requesting to the enterprise WeChat, the relationship of wwB<-wxA can be checked first, and the request can be asynchronously delivered to IMUnion and return to the enterprise WeChat client to display success.

[0127] Step 602: IMUnion stores the received message in the message queue and delivers it to the WeChat server.

[0128] Among them, when delivering the message to the WeChat server and the permission check wxA->wwB fails, Imunion will deliver a markfail message to the enterprise WeChat server. The server makes the client message display as failed through markfail.

[0129] Step 603: After receiving the request, the enterprise WeChat server performs information check.

[0130] The WeChat server group can include both enterprise WeChat servers and personal WeChat servers. The enterprise WeChat server can use local data to check whether ww2 is in the group (only members in the group can send messages). If the check is successful, the message is delivered to the enterprise WeChat message queue and a success message is returned to the client.

[0131] Step 604: The enterprise WeChat message queue sends the message request to imunion (until the retry is successful due to abnormal conditions such as network), and imunion synchronously checks whether ww2 is in the group.

[0132] in, Figure 8 This is a diagram illustrating the data transmission of friend updates in the data processing method provided by an embodiment of the present invention. Specifically, imunion data is the primary data, and the WeChat Work system check may be incorrect, perhaps because ww2 is no longer in the group. If the check fails, WeChat Work sends a markfail message to the client, indicating that the message failed (also to improve the user experience of sending messages).

[0133] When the check is successful, imunion stores the message and the current group member's maximum version ver3 in the local message queue and returns it to the enterprise WeChat member.

[0134] Step 605: The imuion message queue delivers the message and the member maximum version ver3 to the third-party process involved in the group.

[0135] Among them, ww2 and wx3 deliver to enterprise WeChat and WeChat system respectively; and in abnormal situations such as network, it can be iteratively retried until delivery is successful.

[0136] Step 606: WeChat receives the message delivered by imuion and makes adjustments based on the version number information.

[0137] Among them, when it is found that the largest version number of the group members is ver2 <ver3,说明群数据是比imunion落后的(群变更比消息来更慢)。这种情况,可以先触发先群成员数据的同步;进行数据对齐处理,再投递微信账号wx3,由此可以保证消息的完整传输。

[0138] In some embodiments of the present invention, the enterprise WeChat client can also receive messages from the personal WeChat client 2. The messages can be conversation messages, public account messages, mini-program messages, and other messages. Among them, the front-end interface for receiving and synchronizing messages between the personal WeChat client and the enterprise WeChat client is as follows: Figure 9 As shown, Figure 9Schematic diagram of client display for the data processing method in the present invention; among them, the application data includes session messages, official account messages, and mini-program messages. Users can trigger the corresponding components of the personal WeChat client to process the received application data through the operations on the enterprise WeChat client, so that it can be realized to timely learn the application data received by the personal WeChat client in the enterprise WeChat client, and at the same time avoid the low-security processing of application data in the enterprise WeChat client, improving the convenience of processing application data.

[0139] Beneficial technical effects:

[0140] The instant messaging interconnection component obtains the first user information in the first client and the second user information in the second client, where the first client and the second client are instant messaging clients of different types; based on the first user information and the second user information, through the instant messaging interconnection component, establish an association relationship between the first user and the second user; obtain the application data transmitted between the first client and the second client, and receive an operation matching the data type of the application data; in response to the received operation, trigger the corresponding program component in the first client, or trigger the corresponding processing component of the second client; to realize the processing of the application data through the first client or the second client; thus, it can be realized to timely process the cross-application data through the instant messaging interconnection component, improve the security of processing cross-application data, and ensure the interaction of application data in different instant messaging clients, improve the convenience of processing application data, and reduce the complexity of communication between different instant messaging clients.

[0141] As mentioned above, it is only a preferred embodiment of the present invention and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data processing method, characterized in that, The method includes: An instant messaging interoperability component obtains first user information in a first client and second user information in a second client, where the first client and the second client are instant messaging clients of different types; Based on the account information of the first user and the account information of the second user, the instant messaging interoperability component receives and forwards a contact addition request through the instant messaging interoperability component, where the contact addition request is used to represent the contact addition information initiated by the first user in the first client to the second user in the second client; receives the contact addition response information sent by the second user in the second client; based on the contact addition response information, forwards the contact addition response information to the first user in the first client to implement processing of the contact addition response information through a two-stage transaction processing process and establish an association relationship between the first user and the second user; receives and forwards a receipt of the contact addition response information to the second client to enable the second client to save the established association relationship between the first user and the second user; Obtains the application data transmitted between the first client and the second client and receives an operation matching the data type of the application data; In response to the received operation, triggers the corresponding program component in the first client, or Triggers the corresponding processing component of the second client; to implement processing of the application data through the first client or the second client.

2. The method according to claim 1, wherein The instant messaging interoperability component obtains first user information in a first client and second user information in a second client, including: The instant messaging interoperability component obtains the digital identity recognition framework of the first user; Based on the digital identity recognition framework of the first user, determines the first client type and the account information of the first user; The instant messaging interoperability component obtains the digital identity recognition framework of the second user; Based on the digital identity recognition framework of the second user, determines the second client type and the account information of the second user.

3. The method according to claim 1, wherein The forwarding the contact addition response information to the first user in the first client based on the contact addition response information to implement processing of the contact addition response information through a two-stage transaction processing process and establish an association relationship between the first user and the second user includes: The instant messaging interoperability component obtains the contact addition response information and forwards the contact addition response information to the first user in the first client to implement at least one of the following: Checking the business information permissions corresponding to the contact addition response information through a two-stage transaction processing process and registering transaction information matching the contact addition response information through the instant messaging interoperability component; or, When the association relationship between the first user and the second user is not established, repeatedly sending the contact addition response information through the second client until the association relationship between the first user and the second user is established.

4. The method according to claim 3, wherein The method further includes: When the second client saves the association relationship between the first user and the second user, and the first client does not save the association relationship between the first user and the second user, Based on the transaction information registered by the instant messaging interoperability component that matches the contact addition response information, repeatedly forward the corresponding instruction information to the second client until the first client saves the association relationship between the first user and the second user.

5. The method according to claim 1, characterized in that, The method further includes: When the second client does not save the association relationship between the first user and the second user, the instant messaging interoperability component triggers an inquiry interface to achieve at least one of the following: The second client saves the association relationship between the first user and the second user, and the first client saves the association relationship between the first user and the second user; or, Neither the first client nor the second client saves the association relationship between the first user and the second user.

6. The method according to claim 1, characterized in that The method further includes: Save the friend relationship data between the first user and the second user, and update the friend relationship data to the friend lists of the first user and the second user; Send the updated friend list of the first user to the first client, so that the first client updates the friend list of the first user in the first client based on the updated friend list of the first user; Send the updated friend list of the second user to the second client, so that the second client updates the friend list of the second user in the second client based on the updated friend list of the second user.

7. The method according to claim 1, wherein Obtain the application data transmitted between the first client and the second client, and receive an operation that matches the data type of the application data, including: Obtain the application data transmitted between the first client and the second client and the information transmission operation instruction, and determine the association relationship between the first user and the second user; Asynchronously deliver the application data transmitted between the first client and the second client to the instant messaging interoperability component; The instant messaging interoperability component saves the received application data in the first message queue and transmits it to the first client; When it is determined that the first client does not save the association relationship between the first user and the second user, send a failure flag to the second client to notify the second user in the second client that the information transmission fails.

8. The method according to claim 1, wherein The method further includes: When the first user and the second user are in the same communication group, Receive a group data change trigger request sent by the server corresponding to the group data, where the group data change request carries a group identifier and group change data; Update the latest group data corresponding to the group identifier and the local group data change identifier according to the group data change trigger request; Synchronize the latest group data to the server of the message system to which the member accounts in the group session belong according to the updated local group data change identifier, so that the server of the message system to which the member accounts belong synchronizes the latest group data to the terminals corresponding to the member accounts.

9. A data processing device, characterized in that, The device includes: An information transmission module, configured to obtain first user information in a first client and second user information in a second client, where the first client and the second client are instant messaging clients of different types; An information processing module, configured to receive and forward a contact addition request through an instant messaging intercommunication component based on the account information of the first user and the account information of the second user, where the contact addition request is used to represent contact addition information initiated by the first user in the first client to the second user in the second client; receive contact addition response information sent by the second user in the second client; based on the contact addition response information, forward the contact addition response information to the first user in the first client, so as to process the contact addition response information through a two-stage transaction processing process and establish an association relationship between the first user and the second user; receive and forward a receipt of the contact addition response information to the second client, so as to enable the second client to save the established association relationship between the first user and the second user; The information processing module is configured to obtain application data transmitted between the first client and the second client, and receive an operation matching the data type of the application data; The information processing module is configured to trigger a corresponding program component in the first client in response to the received operation; The information processing module is configured to trigger a corresponding processing component of the second client; so as to implement processing of the application data through the first client or the second client.

10. The device according to claim 9, wherein The information processing module is configured to obtain a digital identity recognition framework of the first user; The information processing module is configured to determine the first client type and the account information of the first user based on the digital identity recognition framework of the first user; The information processing module is configured to obtain a digital identity recognition framework of the second user through an instant messaging intercommunication component; The information processing module is configured to determine the second client type and the account information of the second user based on the digital identity recognition framework of the second user.

11. The device according to claim 9, wherein The information processing module is configured to, when the first user and the second user are in the same communication group, receive a group data change trigger request sent by a server corresponding to the group data, where the group data change request carries a group identifier and group change data; The information processing module is configured to update the latest group data corresponding to the group identifier and the local group data change identifier according to the group data change trigger request; The information processing module is configured to synchronize the latest group data to a server of a message system to which a member account in the group session belongs according to the updated local group data change identifier, so that the server of the message system to which the member account belongs synchronizes the latest group data to a terminal corresponding to the member account.

12. The device according to claim 9, characterized in that The device further includes: The information processing module is configured to, when the second client does not save the association relationship between the first user and the second user, trigger an inquiry interface by the instant messaging interoperability component to achieve at least one of the following: the second client saves the association relationship between the first user and the second user, and the first client saves the association relationship between the first user and the second user; or, neither the first client nor the second client saves the association relationship between the first user and the second user.

13. The device according to claim 9, characterized in that, The device further includes: The information processing module is configured to save the friend relationship data between the first user and the second user, and update the friend relationship data to the friend lists of the first user and the second user; the information processing module is configured to send the updated friend list of the first user to the first client, so that the first client updates the friend list of the first user in the first client based on the updated friend list of the first user; the information processing module is configured to send the updated friend list of the second user to the second client, so that the second client updates the friend list of the second user in the second client based on the updated friend list of the second user.

14. An electronic device, characterized in that, The electronic device includes: A memory for storing executable instructions; A processor for implementing the data processing method according to any one of claims 1 to 8 when running the executable instructions stored in the memory.

15. A computer-readable storage medium storing executable instructions, characterized in that, The executable instructions, when executed by the processor, implement the data processing method according to any one of claims 1 to 8.

16. A computer program product, comprising executable instructions, characterized in that, The executable instructions, when executed by the processor, implement the data processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Processing method, device and system of instant message

    CN103973545A