Communication method and apparatus, electronic device, and storage medium
Patent Information
- Application Number
- CN202310347910.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2043-04-03
AI Technical Summary
这样一来,电商小二与商家需要下载额外的第三方即时通信APP,以及身份认证操作,电商小二与商家需要与数据处理终端进行多次复杂的人机交互,严重影响了电商小二与商家的即时通信效率
[0025]本公开提供的技术方案至少带来以下有益效果:通过第一服务端获取第一会话消息;第一会话消息包括第一服务端内第一账户的标识、第二服务端内第二账户的标识,以及第一账户请求向第二账户发送的第一内容;由于第一服务端与第二服务端为不同的即时通信软件,即第一会话消息为第一账户跨APP向第二账户发送的消息。进一步的,将第一内容进行格式转换,得到转换后的第一内容,转换后的第一内容用于在第二服务端的客户端中显示。这样,可以将第一内容的格式转换为第二服务端可识别的格式,避免第二服务端无法识别第一内容,引起乱码等异常。还可以根据第一账户的标识、第二账户的标识以及转换后的第一内容,生成第二会话消息,并向第二服务端发送第二会话消息;第二会话消息用于指示第二服务端向第二账户的客户端发送第一账户的标识和转换后的第一内容。如此,可以将第二服务端可以识别的第一内容转发到对应的第二账户,实现将不同终端不同即时通信APP之间的跨APP的多媒体数据的转发。相比于现有技术中需要用户双方下载第三方即时通信APP,并在第三方即时通信APP进行身份认证、相互建立好友关系等多次复杂的人机交互,本公开可以使得用户在使用即时通信APP时,即使终端的操作系统不同、终端设备不同、使用的即时通信APP的种类不同,也可同其他用户进行即时通信,实现了跨APP的即时通信,且期间不必进行即时通信APP间的切换,减少了人与终端设备间的人机交互操作,提高了用户之间的即时通信效率。
Smart Images

Figure CN116418769B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to a communication method, apparatus, electronic device and storage medium. Background Technology
[0002] With the increasing popularity of the Internet, especially wireless Internet, more and more users are starting to use various instant messaging applications (APPs) for instant communication.
[0003] In related technologies, instant messaging can only be conducted between the same type of app. For example, in e-commerce platforms, when e-commerce staff and merchants communicate, they typically need to download a third-party instant messaging app and complete identity verification and friend establishment within that app. This requires both e-commerce staff and merchants to download additional third-party instant messaging apps and undergo identity verification, necessitating multiple complex human-computer interactions with the data processing terminal, severely impacting the efficiency of instant messaging between them. Summary of the Invention
[0004] This disclosure provides a communication method, apparatus, electronic device, and storage medium, aiming to realize cross-app instant messaging and improve the efficiency of instant messaging. The technical solution of this disclosure is as follows:
[0005] According to a first aspect of the present disclosure, a communication method is provided, the method comprising: receiving a first session message sent by a client of a first account within a first server; the first session message including an identifier of the first account, an identifier of a second account within a second server, and first content requested by the first account to be sent to the second account; the first server and the second server being different instant messaging software; converting the format of the first content to obtain converted first content; the converted first content being used to display in a client of the second server; generating a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content, and sending the second session message to the second server; the second session message being used to instruct the second server to send the identifier of the first account and the converted first content to the client of the second account.
[0006] Optionally, the method further includes: obtaining a list of master accounts from the second server and displaying the list of master accounts in the client of the first account; the list of master accounts includes the identifiers of all master accounts in the second server; in response to the first account's selection operation of a target master account in the list of master accounts in the client of the first account, displaying a first dialog box in the client of the first account; the first dialog box is used to input first content.
[0007] Optionally, in response to the first account's selection of a target master account from the master account list within the first account's client, a first dialog box is displayed in the first account's client, including: in response to the first account's selection of the target master account, determining whether the first account has the target permission; the target permission is the permission to communicate with the target master account; if the first account has the target permission, displaying the first dialog box in the first account's client.
[0008] Optionally, if the first account has the target permissions, a first dialog box is displayed in the client of the first account, including: displaying a list of sub-accounts of the target master account in the client of the first account; the list of sub-accounts of a master account includes the identifier of a master account and the identifiers of all sub-accounts under a master account; in response to the first account's selection operation on the list of sub-accounts, a second account is determined, and a first dialog box including the identifier of the second account is displayed in the client of the first account.
[0009] Optionally, in response to the first account's selection operation of a target master account in the master account list within the first account's client, a first dialog box is displayed in the first account's client, including: in response to the first account's selection operation of a target master account in the master account list, displaying a list of sub-accounts of the target master account in the first account's client; the list of sub-accounts of a master account includes an identifier of a master account and identifiers of all sub-accounts under a master account; in response to the first account's selection operation of the sub-account list, displaying the first dialog box in the first account's client.
[0010] Optionally, the method further includes: receiving a permission update message sent by a second server; the permission update message includes permission changes for a preset master account within the second server, and permission changes for sub-accounts of the preset master account; and updating the list of sub-accounts of the preset master account within the first server in response to the permission update message.
[0011] Optionally, the method further includes: receiving a third session message sent by a second server, the third session message including the identifier of a first account, the identifier of a second account, and second content requested by the second account to be sent to the first account; converting the format of the second content to obtain the converted second content, and displaying the converted second content in a first session box in the client of the first account; the first dialog box includes the identifier of the first account, the identifier of the second account, and the first content.
[0012] According to a second aspect of the present disclosure, a communication method is provided, the method comprising: displaying a list of master accounts of a second server; the list of master accounts includes identifiers of all master accounts within the second server; the first server and the second server are different instant messaging software; in response to a first account's selection operation of a target master account in the list of master accounts within a client of the first server, determining a second account and displaying a first dialog box; the first dialog box includes an identifier of the second account; in response to an input operation of the first account in the first dialog box, obtaining first content; generating a first session message based on the identifier of the second account and the first content, and sending the first session message to the first server; the first session message is used to request the display of the first content in the client of the second account within the second server.
[0013] Optionally, in response to the first account's selection of a target master account in the master account list within the client, determining the second account includes: in response to the first account's selection of a target master account in the master account list, displaying a list of sub-accounts of the target master account; a master account's sub-account list includes an identifier of a master account and identifiers of all sub-accounts under a master account; in response to the first account's selection of the sub-account list, determining the second account.
[0014] According to a third aspect of the present disclosure, a communication apparatus is provided, comprising a receiving unit, a processing unit, and a sending unit; the receiving unit is configured to receive a first session message sent by a client of a first account within a first server; the first session message includes an identifier of the first account, an identifier of a second account within a second server, and first content requested by the first account to be sent to the second account; the first server and the second server are different instant messaging software; the processing unit is configured to convert the format of the first content to obtain converted first content; the converted first content is used to be displayed in a client of the second server; the processing unit is configured to generate a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content; the sending unit is configured to send the second session message to the second server; the second session message is used to instruct the second server to send the identifier of the first account and the converted first content to the client of the second account.
[0015] Optionally, the acquisition unit is further configured to: acquire a list of main accounts from the second server and display the list of main accounts in the client of the first account; the list of main accounts includes the identifiers of all main accounts in the second server; the processing unit is further configured to: in response to the first account's selection operation of a target main account in the list of main accounts in the client of the first account, display a first dialog box in the client of the first account; the first dialog box is used to input first content.
[0016] Optionally, the processing unit is specifically used to: in response to the first account's selection operation on the target master account, determine whether the first account has the target permission; the target permission is the permission to communicate with the target master account; if the first account has the target permission, display the first dialog box in the first account's client.
[0017] Optionally, the processing unit is specifically configured to: display a list of sub-accounts of the target master account in the client of the first account when the first account has the target permissions; the list of sub-accounts of a master account includes the identifier of a master account and the identifiers of all sub-accounts under the master account; in response to the first account's selection operation on the list of sub-accounts, determine the second account and display a first dialog box including the identifier of the second account in the client of the first account.
[0018] Optionally, the processing unit is specifically configured to: in response to the first account's selection operation on the target master account in the master account list, display a list of sub-accounts of the target master account in the client of the first account; the list of sub-accounts of a master account includes the identifier of a master account and the identifiers of all sub-accounts under the master account; in response to the first account's selection operation on the sub-account list, display a first dialog box in the client of the first account.
[0019] Optionally, the receiving unit is further configured to: receive a permission update message sent by the second server; the permission update message includes permission changes of the preset master account in the second server, and permission changes of the sub-accounts of the preset master account; the processing unit is further configured to: update the list of sub-accounts of the preset master account in the first server in response to the permission update message.
[0020] Optionally, the receiving unit is further configured to: receive a third session message sent by the second server, the third session message including the identifier of the first account, the identifier of the second account, and second content requested by the second account to be sent to the first account; the processing unit is further configured to: convert the format of the second content to obtain the converted second content, and display the converted second content in a first session box in the client of the first account; the first dialog box includes the identifier of the first account, the identifier of the second account, and the first content.
[0021] According to a fourth aspect of the present disclosure, a communication apparatus is provided, comprising a display unit, a processing unit, and an acquisition unit; the display unit is configured to display a list of master accounts of a second server; the list of master accounts includes identifiers of all master accounts within the second server; the first server and the second server are different instant messaging software; the processing unit is configured to, in response to a first account's selection operation of a target master account in the list of master accounts within a client of the first server, determine a second account and display a first dialog box; the first dialog box includes an identifier of the second account; the acquisition unit is configured to, in response to an input operation of the first account in the first dialog box, acquire first content; the processing unit is further configured to, based on the identifier of the second account and the first content, generate a first session message and send the first session message to the first server; the first session message is used to request the display of the first content in the client of the second account within the second server.
[0022] Optionally, the processing unit is specifically configured to: in response to the first account's selection operation on the target master account in the master account list, display the sub-account list of the target master account; the sub-account list of a master account includes the identifier of a master account and the identifiers of all sub-accounts under a master account; in response to the first account's selection operation on the sub-account list, determine the second account.
[0023] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the communication method of the first or second aspect described above.
[0024] According to a sixth aspect of the present disclosure, a computer-readable storage medium is provided, which stores instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the communication method as described in the first or second aspect above.
[0025] The technical solution provided in this disclosure offers at least the following beneficial effects: A first session message is obtained through a first server; the first session message includes the identifier of a first account within the first server, the identifier of a second account within the second server, and first content requested by the first account to be sent to the second account; since the first server and the second server are different instant messaging software, the first session message is a message sent by the first account to the second account across apps. Furthermore, the first content is format-converted to obtain converted first content, which is then displayed on the client of the second server. This converts the format of the first content into a format recognizable by the second server, avoiding errors such as garbled characters caused by the second server's inability to recognize the first content. A second session message can also be generated based on the identifier of the first account, the identifier of the second account, and the converted first content, and sent to the second server; the second session message instructs the second server to send the identifier of the first account and the converted first content to the client of the second account. Thus, the first content recognizable by the second server can be forwarded to the corresponding second account, enabling the forwarding of cross-app multimedia data between different terminals and different instant messaging apps. Compared to existing technologies that require both users to download a third-party instant messaging app and perform multiple complex human-computer interactions such as identity authentication and establishing friend relationships within the app, this disclosure enables users to communicate instantly with other users even if their operating systems, devices, and apps differ. This achieves cross-app instant messaging without the need to switch between apps, reducing human-computer interaction and improving the efficiency of instant messaging.
[0026] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0027] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0028] Figure 1 This is a schematic diagram illustrating a process for logging into a merchant's app with an account, according to an exemplary embodiment.
[0029] Figure 2 This is a schematic diagram illustrating a process for logging into a merchant's app with an account, according to an exemplary embodiment.
[0030] Figure 3 This is a schematic diagram illustrating the main interface of a merchant's app according to an exemplary embodiment;
[0031] Figure 4 This is a schematic diagram of the structure of a communication system according to an exemplary embodiment;
[0032] Figure 5 This is one of the flowcharts illustrating a communication method according to an exemplary embodiment;
[0033] Figure 6 This is a schematic diagram illustrating a client for a second account according to an exemplary embodiment;
[0034] Figure 7 This is a second flowchart illustrating a communication method according to an exemplary embodiment;
[0035] Figure 8 This is a schematic diagram illustrating a master account list according to an exemplary embodiment;
[0036] Figure 9 This is a schematic diagram illustrating built-in information of a master account according to an exemplary embodiment;
[0037] Figure 10 This is a schematic diagram illustrating an account integration according to an exemplary embodiment;
[0038] Figure 11 This is a schematic diagram illustrating a first dialog box according to an exemplary embodiment;
[0039] Figure 12 This is a schematic diagram illustrating a first dialog box according to an exemplary embodiment;
[0040] Figure 13 This is a schematic diagram illustrating a group function according to an exemplary embodiment;
[0041] Figure 14 This is a third flowchart illustrating a communication method according to an exemplary embodiment;
[0042] Figure 15 This is a fourth flowchart illustrating a communication method according to an exemplary embodiment;
[0043] Figure 16 This is the fifth flowchart illustrating a communication method according to an exemplary embodiment;
[0044] Figure 17 This is a schematic flowchart of a communication method according to an exemplary embodiment, number six.
[0045] Figure 18 This is the seventh flowchart illustrating a communication method according to an exemplary embodiment;
[0046] Figure 19 This is a flowchart illustrating a communication method according to an exemplary embodiment, number eight.
[0047] Figure 20 This is a schematic diagram of the structure of a communication device according to an exemplary embodiment;
[0048] Figure 21 This is a schematic diagram of the structure of a communication device according to an exemplary embodiment;
[0049] Figure 22 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment. Detailed Implementation
[0050] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0051] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0052] Furthermore, in the description of the embodiments of this disclosure, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. The term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, in the description of the embodiments of this disclosure, "multiple" refers to two or more.
[0053] It should be noted that the user information (including but not limited to user device information, user personal information, user behavior information, etc.) and data (including but not limited to program code, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0054] Before providing a detailed explanation of the embodiments of this disclosure, some related terms and technologies involved in the embodiments of this disclosure will be introduced first.
[0055] Instant Messaging (IM) refers to a service that enables the instant sending and receiving of internet information, allowing two or more people to use the network to transmit multimedia resources such as text, pictures, videos, and voice in real time.
[0056] KIM: An instant messaging software developed and designed by Kuaishou for office chat among company employees.
[0057] Merchant App: An app developed by an e-commerce platform, used by merchants for store management, answering buyer inquiries, etc.
[0058] Kafka: An open-source stream processing platform developed by the Apache Software Foundation, it is a high-throughput distributed publish-subscribe messaging system.
[0059] With the increasing popularity of the Internet, especially wireless Internet, and the rapid advancement of data processing terminal devices, especially mobile data processing terminal devices (such as mobile phones and tablets), more and more users are starting to use various instant messaging software (APPs) on various types of data processing terminals for instant communication.
[0060] In current technology, instant messaging can only be conducted between apps of the same type; multimedia information exchange between different apps is not possible. For example, in e-commerce platforms, when e-commerce staff and merchants communicate, they typically need to download a third-party instant messaging app, complete identity verification, and establish friend relationships within that app. This requires users to engage in multiple complex human-computer interactions with the data processing terminal, severely impacting the efficiency of instant messaging.
[0061] For example, such as Figure 1 As shown, when a merchant's main account logs into the merchant app but has not yet been bound, or when a sub-account (employee account) of the merchant's main account logs into the merchant app but the merchant's main account has been bound while the employee account has not, the merchant's main account and employee account can bind a third-party instant messaging app using the one-click binding method.
[0062] For example, such as Figure 2 As shown, when an employee account logs into the merchant app and the main account is not yet bound, the employee account can access the login interface to bind the main account. When the main account logs into the merchant app and the main account is bound to another third-party communication software account, or when an employee account logs into the merchant app and the employee account is bound to another third-party communication software account, both the main account and the employee account can access the login interface to bind the employee account.
[0063] For example, such as Figure 3As shown, when the main account or employee account logs into the merchant APP, and the main account or employee account is bound to the current third-party communication software account, the main account or employee account can add e-commerce assistants, and the main interface of the merchant APP will be displayed after adding the e-commerce assistants.
[0064] In view of this, embodiments of this disclosure provide a communication method, including: receiving a first session message sent by a client of a first account within a first server; the first session message includes an identifier of the first account, an identifier of a second account within a second server, and first content requested by the first account to be sent to the second account; the first server and the second server are different instant messaging software; converting the format of the first content to obtain converted first content; the converted first content is used to display in the client of the second server; generating a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content, and sending the second session message to the second server; the second session message is used to instruct the second server to send the identifier of the first account and the converted first content to the client of the second account.
[0065] The communication method provided in the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.
[0066] The communication method provided in this disclosure can be applied to communication systems. Figure 4 A schematic diagram of one structure of the communication system is shown. For example... Figure 4 As shown, the communication system 10 includes a first user terminal 11, a first server 12, a second server 13, and a second user terminal 14. The first user terminal 11 is connected to the second user terminal 14 via the first server 12 and the second server 13. The first user terminal 11, the first server 12, the second server 13, and the second user terminal 14 can be connected via wired or wireless means; this embodiment does not limit the connection.
[0067] The first user terminal 11 is equipped with a client (also known as the first instant messaging software) for the first account within the first server, and the second user terminal 14 is equipped with a client (also known as the second instant messaging software) for the second account within the second server. The first instant messaging software and the second instant messaging software are different software.
[0068] The first user terminal 11 and the second user terminal 14 can be mobile phones, tablets, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), desktop computers, cloud servers, etc. This disclosure does not limit the specific technology, quantity, or device form of the first user terminal 11 and the second user terminal 14.
[0069] The first server 12 is used to receive a first session message sent by the client of the first account, and to convert the format of the first content in the first session message to obtain the converted first content; the converted first content is used to display in the client of the second server. The first server 12 is also used to generate a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content in the first session message, and to send the second session message to the second server 13; the second session message is used to instruct the second server 13 to send the identifier of the first account and the converted first content to the client of the second account.
[0070] The second server 13 is used to receive the second session message and send the third session message to the first server. The third session message includes the identifier of the first account, the identifier of the second account, and the second content that the second account requests to be sent to the first account.
[0071] The first server 12 and the second server 13 can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. This disclosure does not limit the specific technology, quantity, or device form used in the first server 12 and the second server 13.
[0072] The first server 12 and the second server 13 can implement the communication method of this disclosure embodiment in various electronic devices. For example, the electronic device can be a relay server, a cloud server, etc., and this disclosure embodiment does not limit the specific type of electronic device.
[0073] In different application scenarios, the first server 12, the second server 13 and the electronic device can be independent devices or integrated into the same device. This disclosure does not specifically limit this.
[0074] When the first server 12, the second server 13, and the electronic device are integrated into the same device, the data transmission method between the first server 12, the second server 13, and the electronic device is the data transmission between internal modules of the device. In this case, the data transmission process between them is the same as that between the first server 12, the second server 13, and the electronic device when they are independent of each other.
[0075] In one example, the client for the first account deployed in the first user terminal 11 can be an e-commerce assistant app, and the first server 12 can be the server corresponding to the e-commerce assistant app. The second server 13 can be the server corresponding to the merchant app, and the client for the second account deployed in the second user terminal 14 can be the merchant app.
[0076] In another example, the client of the first account deployed in the first user terminal 11 can be a merchant APP, and the first server 12 can be the server corresponding to the merchant APP. The second server 13 can be the server corresponding to the e-commerce assistant APP, and the client of the second account deployed in the second user terminal 14 can be the e-commerce assistant APP.
[0077] In the following embodiments provided in this disclosure, the first server 12, the second server 13, and the electronic device are described as being set up independently of each other.
[0078] Figure 5 This is a flowchart illustrating a communication method according to some exemplary embodiments. In some embodiments, the above-described communication method can be applied to, for example... Figure 4 The first server 12 shown can also be applied to other similar devices.
[0079] like Figure 5 As shown, the communication method provided in this embodiment includes the following steps S201-S203.
[0080] S201, The first server receives the first session message sent by the client of the first account within the first server.
[0081] The first session message includes the identifier of a first account within a first server, the identifier of a second account within a second server, and the first content that the first account requests to be sent to the second account. The first server and the second server are different instant messaging software. For example, the first server could be KIM, and the second server could be a merchant app.
[0082] As one possible implementation, the first server can monitor messages sent from the first account on the first server to the second account on the second server in real time, thereby receiving the first session message.
[0083] It should be noted that the first content can be text, emoticons, images, videos, etc. The user object corresponding to the first account is the first user object using the first server, and the user object corresponding to the second account is the second user object using the second server.
[0084] In the first server, the first account and the second account have a connection channel. For example, the second account can be in the first account's friend list on the first server, or the first account and the second account can be in the same chat group on the first server.
[0085] Similarly, on the second server, the first account and the second account also have a connection channel. For example, the first account is in the second account's friend list on the second server, or the first account and the second account are in the same chat group on the second server.
[0086] In practical applications, the first session message sent by the client of the first account enters Kafka. The first server listens for messages in Kafka, and when a new first session message enters Kafka, the first server retrieves that first session message from Kafka.
[0087] S202. The first server converts the format of the first content to obtain the converted first content.
[0088] The first content after conversion is used to display in the client on the second server.
[0089] As one possible implementation, the first server determines the first recognizable format of the first server and the second recognizable format of the second server, and converts the first content from the first recognizable format to the second recognizable format to obtain the converted first content.
[0090] For example, the first server deploys a message protocol conversion module. If the first content is text, the first server translates the text string into a format that the second server can recognize; if the first content is an image, the first server translates the image's Uniform Resource Locator (URL), image size, and image format into a format that the second server can recognize; if the first content is video, the first server translates the video file URL, video size, and video playback format into a format that the second server can recognize; if the first content is audio, the first server translates the audio file URL, audio size, and audio playback format into a format that the second server can recognize; if the first content is a file, the first server translates the file URL, file size, and file playback format into a format that the second server can recognize; if the first content is an emoticon (an emoticon is a special text character), the first server translates the text character corresponding to the emoticon into a format that the second server can recognize.
[0091] S203. The first server generates a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content.
[0092] The second session message is used to instruct the second server to send the identifier of the first account and the converted first content to the client of the second account. For example, the client of the first account (also known as the first instant messaging software) can be KIM, and the client of the second account (also known as the second instant messaging software) can be a merchant APP.
[0093] As one possible implementation, the first server can use a pre-set compression tool to compress and package the identifier of the first account, the identifier of the second account, and the converted first content to generate the second session message.
[0094] S204. The first server sends a second session message to the second server.
[0095] As one possible implementation, the first server can send a second session message to the second server via Kafka, so that the second server can output the first content and the identifier of the first account to the second account. That is, at this time, the second user object receives the message sent by the first account through the client of the second account on the second server.
[0096] For example, such as Figure 6As shown, after receiving the second session message, the second server can process the message using a decompression tool to obtain the identifier of the first account, the identifier of the second account, and the converted first content. Based on the identifier of the second account, the server then sends the identifier of the first account and the converted first content to the second account. Correspondingly, the second account receives the identifier of the first account and the converted first content sent by the second server, and generates a notification in the notification bar on the second account's client, as well as displays a red dot alert. Furthermore, the second account can respond to user touch operations by displaying the first content.
[0097] The technical solution provided in this disclosure offers at least the following advantages: A first server obtains a first session message; the first session message includes the identifier of a first account within the first server, the identifier of a second account within the second server, and first content requested by the first account to be sent to the second account; since the first and second servers are different instant messaging software, the first session message is a message sent by the first user object across apps to the second user object. Furthermore, the first server converts the format of the first content to obtain converted first content, which is then displayed on the client of the second server. This converts the format of the first content into a format recognizable by the second server, preventing the second server from being unable to recognize the first content and causing garbled characters or other anomalies. The first server can also generate a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content, and send the second session message to the second server; the second session message instructs the second server to send the identifier of the first account and the converted first content to the client of the second account. Thus, the first content recognizable by the second server can be forwarded to the corresponding second account, enabling the forwarding of cross-app multimedia data between different terminals and different instant messaging apps. Compared to existing technologies that require both users to download a third-party instant messaging app and perform multiple complex human-computer interactions such as identity authentication and establishing friend relationships within the app, this disclosure enables users to communicate instantly with other users even if their operating systems, devices, and apps differ. This achieves cross-app instant messaging without the need to switch between apps, reducing human-computer interaction and improving the efficiency of instant messaging.
[0098] In one design, in order to receive the first session message sent by the client on the first server, such as Figure 7 As shown, the communication method provided in this embodiment further includes:
[0099] S301, The first server obtains the main account list of the second server.
[0100] The main account list includes the identifiers of all main accounts within the second server. For example, such as... Figure 8 As shown, the identifier of the main account can include the account number and name of the main account.
[0101] As one possible implementation, upon receiving a first signal from its client, the first server can send a first subscription message to the second server, requesting a list of master accounts. After receiving the first subscription message, the second server can send the list of master accounts to the first server. Correspondingly, the first server receives the list of master accounts sent by the second server.
[0102] It should be noted that the first signal can be sent based on a click operation of the first account on the client side of the first server, or it can be sent based on a swipe operation of the first account on the client side of the first server.
[0103] The main account list can also include built-in information for all main accounts within the second server. For example, such as... Figure 9 As shown, the built-in information can also include sub-accounts of the main account (for example, if the main account is the store manager of the merchant, the sub-accounts can include administrators, customer service supervisors, operations, etc.), and can also include the main account's business card information, live streaming calendar, etc.
[0104] After obtaining the main account list of the second server, the first server can connect the main account list of the second server with the accounts of the first server.
[0105] For example, such as Figure 10 As shown, when the account on the first server is an e-commerce staff member and the main account list on the second server is a merchant, the account integration process on the first server can include: determining the scope of tags managed by the e-commerce staff member and the tags of the merchants; and, if the merchant's tags fall within the scope of tags managed by the e-commerce staff member, integrating the accounts of the e-commerce staff member and the merchant.
[0106] For example, the information that can be linked to an account may include the employee identity of the e-commerce staff member, the relationship hierarchy, the selection method for merchants (including public and private open selection and public and private selection), the store status of the merchant (including open and closed), the role type of the merchant (including main account and sub-account), and the display type of the merchant (which may include multi-store matrix).
[0107] After the first server connects the accounts of e-commerce staff and merchants, the server-side capabilities can include searching (which may include merchant / staff contacts, conversation details list, group chat), input (image and text emoticons, batch sending, message cards), push (message storage, long connection), receiving (external push, red dot unread number), replying (read receipt, automatic reply, group robot), etc.
[0108] The first server can also encapsulate business capabilities. For example, business capabilities can include information recognition (customer business card, merchant 360 profile), industry task assignment (event recruitment, daily monitoring), growth communication (rule changes, course analysis and learning), and work order system (merchant feedback, progress tracking).
[0109] S302. The first server displays the list of main accounts in the client of the first account.
[0110] As one possible implementation, the first server can use a preset compression tool to compress the main account list, obtain the compressed main account list, and send the compressed main account list to the client of the first account.
[0111] Accordingly, the first client uses a decompression tool to decompress the compressed main account list, and then displays the main account list.
[0112] S303. The first server responds to the first account's selection operation of the target main account in the main account list within the first account's client by displaying the first dialog box in the first account's client.
[0113] The first dialog box is used to input the first content.
[0114] As one possible implementation, the first server can respond to the first account's selection operation of the target main account, determine whether the first account has the permission to communicate with the target main account, and if the first account has the permission to communicate with the target main account, display the first dialog box in the first account's client.
[0115] For example, the first dialog box displayed in the client of the first account can be like this: Figure 11 and Figure 12 As shown.
[0116] For example, when the first dialog box is a group chat dialog box, the first dialog box may include, for example: Figure 13 The multiple group functions shown.
[0117] S304. The client of the first server responds to the input operation of the first account in the first dialog box and obtains the first content.
[0118] The input operation of the first account in the first dialog box can be an instruction input by the user object of the first account through the input device (such as a keyboard) of the terminal device, or a control instruction input by the user object of the first account through the touch screen of the terminal device.
[0119] S305. The client of the first server generates the first session message based on the identifier of the second account and the first content.
[0120] The first session message is used to request the display of the first content in the client of the second account within the second server.
[0121] As one possible implementation, the client of the first server can use a preset compression tool to compress the identifier of the second account and the first content to generate the first session message.
[0122] S306. The client of the first server sends the first session message to the first server.
[0123] In this way, the first server can display the first dialog box in the client of the first account. Users can communicate with the target main account based on the first dialog box without the need for users to switch apps to communicate with the target main account. This reduces human-computer interaction between people and terminal devices and improves the efficiency of real-time communication between users.
[0124] In one design, in order to display the first dialog box in the client of the first account, such as Figure 14 As shown, S303 in this embodiment specifically includes:
[0125] S401. The first server responds to the first account's selection operation of the target master account and determines whether the first account has the target permissions.
[0126] The target permissions are the permissions to communicate with the target master account.
[0127] As one possible implementation, the first server pre-stores a permission database for the first account. This database includes multiple account identifiers that the first account can communicate with. The first server can determine that the first account possesses the target permissions if the target master account is included in the permission database. Conversely, the first server can determine that the first account does not possess the target permissions if the target master account is not included in the permission database.
[0128] As one possible implementation, the first server pre-stores account tags for both the first account and the target master account. The first server can determine that the first account possesses the target permissions if the account tags of the first account and the target master account are the same. Conversely, the first server can determine that the first account does not possess the target permissions if the account tags of the first account and the target master account are different.
[0129] For example, account tags could be women's clothing, men's clothing, and maternity / baby products.
[0130] S402. When the first server has the target permissions, the first dialog box is displayed in the client of the first account.
[0131] As one possible implementation, the first server can call a preset application programming interface to display the first dialog box in the client of the first account.
[0132] For example, the default application programming interface can be the Hypertext Transfer Protocol (HTTP) application programming interface (API).
[0133] In practical applications, the first server can obtain the target master account from the second server, and use an HTTP API to convert the target master account into a format compatible with the account format in the client of the first server. This generates a virtual account corresponding to the target master account in the client of the first server, and then displays the first dialog box in the client of the first account. Similarly, the first server can use an HTTP API to convert the first account into a format compatible with the account format in the second server, thereby generating a virtual account corresponding to the first account in the second server, and then display the first dialog box in the client of the target master account.
[0134] In one design, when the first account does not have the target permissions, the communication method provided in this disclosure embodiment further includes:
[0135] The first server sends a permission request message to the third account.
[0136] The third account is the parent account of the first account, and the permission request message is used to request the target permission.
[0137] As one possible implementation, the first server can send an access request message to the third account upon receiving a control command. The control command can be an instruction generated in response to a user's control action. For example, a control command can be an instruction entered by the user through a computer input device (such as a mouse).
[0138] Furthermore, the third account can receive the permission request message and, upon receiving the control instruction, send a first instruction to the first server. The first instruction can be used to grant the target permissions to the first account.
[0139] In this way, the first server can determine whether the first account has the necessary permissions before displaying the first dialog box in the client of the first account, thus preventing the first account from sending messages to unrelated or non-main accounts and improving system security.
[0140] In one design, in order to display the first dialog box in the client of the first account, such as Figure 15 As shown, S402 in this embodiment specifically includes:
[0141] S501. When the first server has the target account's permissions, it displays a list of sub-accounts of the target master account in the client of the first account.
[0142] The list of sub-accounts for a master account includes the identifier of the master account and the identifiers of all sub-accounts under the master account.
[0143] For example, the main account can be identified as Store Manager - User 1. All sub-accounts under the main account can be identified as Administrator - User 2, Customer Service Supervisor - User 3, Operations - User 4, and Operations - User 5.
[0144] S502, the first server responds to the first account's selection operation on the sub-account list, determines the second account, and displays a first dialog box including the identifier of the second account in the first account's client.
[0145] As one possible implementation, the first server can determine the second account in response to a click operation of a user object of the first account on the list of sub-accounts. For example, if a user object of the first account clicks on the display area corresponding to sub-account 1, the first server, upon receiving a click on the display area corresponding to sub-account 1, determines that sub-account 1 is the second account and displays a first dialog box including the identifier of the second account in the client of the first account.
[0146] As another possible implementation, the first server can respond to a double-click operation of the user object of the first account on the list of sub-accounts to determine the second account. For example, the user object of the first account can double-click the display area corresponding to sub-account 1. When the first server receives the double-click operation of the user object of the first account on the display area corresponding to sub-account 1, it determines that sub-account 1 is the second account and displays a first dialog box including the identifier of the second account in the client of the first account.
[0147] In this way, the first server can respond to the first account's selection operation in the sub-account list, determine the second account, and establish a one-on-one online chat dialog box with the second account.
[0148] In one design, in order to obtain the first content after conversion, such as Figure 16 As shown, S303 in this embodiment specifically includes:
[0149] S601. In response to the first account's selection operation of the target master account in the master account list, the first server displays the sub-account list of the target master account in the first account's client.
[0150] The list of sub-accounts of a master account includes the identifier of the master account and the identifiers of all sub-accounts under the master account.
[0151] It should be noted that the specific implementation method of this step can be referred to S401 above, and will not be repeated here.
[0152] S602, The first server responds to the first account's selection operation on the sub-account list by displaying the first dialog box in the first account's client.
[0153] It should be noted that the specific implementation method of this step can be referred to S501 above, and will not be repeated here.
[0154] In one design, to update the list of sub-accounts of a preset master account within the first server, such as... Figure 17 As shown, the communication method in this embodiment further includes:
[0155] S701, The first server receives the permission update message sent by the second server.
[0156] The permission update messages include permission changes for the preset master account within the second server, as well as permission changes for the sub-accounts of the preset master account.
[0157] In one example, if the preset main account ceases to operate (e.g., due to store closure), or if the sub-accounts of the preset main account cease to operate (e.g., due to resignation), the second server can change the permissions of the preset main account and the permissions of the sub-accounts of the preset main account within the second server, and send the permission update message to the first server after generating the permission update message.
[0158] For example, permission changes can be made from having permission to receive messages from the first account to not having permission to receive messages from the first account.
[0159] S702. In response to the permission update message, the first server updates the list of sub-accounts of the preset master account within the first server.
[0160] As another possible implementation, the first server can determine the permission changes of the preset master account and the permission changes of the sub-accounts of the preset master account in the second server based on the permission update message, and update the list of sub-accounts of the preset master account in the first server.
[0161] For example, if sub-account 1 of the preset master account is changed to not have permission to receive messages sent by the first account, the first server can delete sub-account 1 of the preset master account from the sub-account list of the preset master account within the first server.
[0162] Correspondingly, the second server can delete the first account from the contact list of sub-account 1.
[0163] In this way, the first server can update the list of sub-accounts of the preset main account in a timely manner, preventing the first account from contacting invalid accounts in the preset main account where the merchant has closed down or the employee has left.
[0164] In one design, in order to receive second content sent by a second server, such as... Figure 18 As shown, the communication method provided in this embodiment further includes:
[0165] S801, The first server receives the third session message sent by the second server.
[0166] The third session message includes the identifier of the first account, the identifier of the second account, and the second content that the second account requests to be sent to the first account.
[0167] As one possible implementation, the first server can monitor messages sent from the second account on the second server to the first account on the first server in real time, thereby receiving the third session message.
[0168] In practical applications, third-session messages sent by the second account within the second server will enter Kafka. The first server listens for messages in Kafka, and when a new third-session message enters Kafka, the first server retrieves that third-session message from Kafka.
[0169] S802. The first server converts the format of the second content to obtain the converted second content, and displays the converted second content in the first session box in the client of the first account.
[0170] The converted second content is used to display in the client of the first server.
[0171] As one possible implementation, the first server determines the first recognizable format of the first server and the second recognizable format of the second server, and converts the second content from the second recognizable format to the first recognizable format to obtain the converted second content.
[0172] In this way, the first server can convert the format of the second content into a format that the client of the first server can recognize, thus avoiding the second server's inability to recognize the first content and causing garbled characters or other abnormalities.
[0173] In one design, to improve the security of the first content, the first session message also includes an authorization identifier, which identifies the account among the main account and one or more sub-accounts included in the second account that has the authorization to receive the first content.
[0174] In one design, to filter messages, the communication method provided in this disclosure further includes:
[0175] The first server verifies the first content and obtains the verification result. If the verification result passes, the first server sends a second session message to the second server. If the verification result fails, the first server stops sending the converted second session message to the second server.
[0176] For example, messages sent by users (plain text, images, videos, voice) are identified as different message types and entered into the risk control model to determine whether they contain sensitive words or sensitive data. If the risk control verification is passed, the message is allowed to be sent; otherwise, the message is blocked and the user is prompted that the message contains sensitive information.
[0177] In one design, in order to monitor the verification results, the communication method provided in this disclosure embodiment further includes:
[0178] The first server monitors and records the verification results, obtaining the number of messages that passed verification and the number of messages that failed verification.
[0179] In a design, such as Figure 19 As shown, after the client on the first server sends the first session message to the first server, the communication method provided in this embodiment of the disclosure further includes the following steps S307-S316.
[0180] S307. The first server converts the format of the first content to obtain the converted first content.
[0181] The specific implementation method of this step can be referred to in S202 above, and will not be repeated here.
[0182] S308. The first server generates a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content.
[0183] The specific implementation method of this step can be referred to in S203 above, and will not be repeated here.
[0184] S309. The first server sends a second session message to the second server. Correspondingly, the second server receives the second session message sent by the first server.
[0185] The specific implementation method of this step can be referred to in S204 above, and will not be repeated here.
[0186] S310, the second server sends the identifier of the first account and the converted first content to the client of the second account based on the identifier of the second account. Correspondingly, the client of the second account receives the identifier of the first account and the converted first content sent by the second server.
[0187] The specific implementation method of this step can be referred to in S204 above, and will not be repeated here.
[0188] S311. The second server obtains the second content based on the input operation of the second account in the first dialog box.
[0189] The input operation of the second account in the first dialog box can be an instruction entered by the user of the second account through the input device (such as a keyboard) of the terminal device, or a control instruction entered by the user of the second account through the touch screen of the terminal device.
[0190] S312. The client of the second account generates a third session message based on the identifier of the first account and the second content.
[0191] The third session message is used to request the display of the second content in the client of the first account within the first server.
[0192] As one possible implementation, the client of the second server can use a preset compression tool to compress the identifier of the second account and the second content to generate a third session message.
[0193] S313, The client of the second account sends a third session message to the second server. Correspondingly, the second server receives the third session message sent by the client of the second account.
[0194] S314. The second server sends a third session message to the first server. Correspondingly, the first server receives the third session message sent by the second server.
[0195] S315. The first server converts the format of the second content to obtain the converted second content.
[0196] The method for format conversion of the second content is the same as that for format conversion of the second content, and can be referred to S202 above, which will not be repeated here.
[0197] S316. The first server displays the converted second content in the first session box within the first account's client.
[0198] In one example, the first server can send the identifier of a second account and converted second content to the client of the first account, based on the identifier of the first account. Correspondingly, the client of the first account receives the identifier of the second account and the converted second content sent by the first server, and generates a notification message in the notification bar and displays a red dot alert. Furthermore, the second account can respond to the user's touch operation to display the second content.
[0199] The above embodiments primarily describe the solutions provided by the embodiments of this disclosure from the perspective of an apparatus (device). It is understood that, in order to implement the above methods, the apparatus or device includes hardware structures and / or software modules corresponding to the execution of each method flow, and these hardware structures and / or software modules corresponding to the execution of each method flow can constitute an electronic device. Those skilled in the art should readily recognize that, in conjunction with the algorithm steps of the various examples described in the embodiments disclosed herein, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software-driven hardware manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.
[0200] This disclosure embodiment can divide the apparatus or device into functional modules according to the above method examples. For example, the apparatus or device can be divided into functional modules corresponding to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this disclosure embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0201] Figure 20 This is a schematic diagram illustrating the structure of a communication device according to an exemplary embodiment. (Refer to...) Figure 20As shown, the communication device 100 provided in this embodiment includes a receiving unit 1001, a processing unit 1002, and a sending unit 1003. The receiving unit 1001 is configured to receive a first session message sent by a client of a first account in a first server. The first session message includes an identifier of the first account, an identifier of a second account in a second server, and first content requested by the first account to be sent to the second account. The first server and the second server are different instant messaging software. The processing unit 1002 is configured to convert the format of the first content to obtain converted first content. The converted first content is used to be displayed in the client of the second server. The processing unit 1002 is configured to generate a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content. The sending unit 1003 is configured to send the second session message to the second server. The second session message is used to instruct the second server to send the identifier of the first account and the converted first content to the client of the second account.
[0202] Optionally, the acquisition unit is further configured to: acquire a list of main accounts of the second server and display the list of main accounts in the client of the first account; the list of main accounts includes the identifiers of all main accounts in the second server; the processing unit 1002 is further configured to: in response to the first account's selection operation of a target main account in the list of main accounts in the client of the first account, display a first dialog box in the client of the first account; the first dialog box is used to input first content.
[0203] Optionally, the processing unit 1002 is specifically used to: in response to the first account's selection operation on the target main account, determine whether the first account has the target permission; the target permission is the permission to communicate with the target main account; if the first account has the target permission, display the first dialog box in the client of the first account.
[0204] Optionally, the processing unit 1002 is specifically used to: display a list of sub-accounts of the target master account in the client of the first account when the first account has the target permissions; the list of sub-accounts of a master account includes the identifier of a master account and the identifiers of all sub-accounts under the master account; in response to the first account's selection operation on the list of sub-accounts, determine the second account and display a first dialog box including the identifier of the second account in the client of the first account.
[0205] Optionally, the processing unit 1002 is specifically used to: in response to the first account's selection operation on the target master account in the master account list, display a list of sub-accounts of the target master account in the client of the first account; the list of sub-accounts of a master account includes the identifier of a master account and the identifiers of all sub-accounts under a master account; in response to the first account's selection operation on the sub-account list, display a first dialog box in the client of the first account.
[0206] Optionally, the receiving unit 1001 is further configured to: receive a permission update message sent by the second server; the permission update message includes the permission changes of the preset master account in the second server, and the permission changes of the sub-accounts of the preset master account; the processing unit 1002 is further configured to: update the list of sub-accounts of the preset master account in the first server in response to the permission update message.
[0207] Optionally, the receiving unit 1001 is further configured to: receive a third session message sent by the second server, the third session message including the identifier of the first account, the identifier of the second account, and second content requested by the second account to be sent to the first account; the processing unit 1002 is further configured to: convert the format of the second content to obtain the converted second content, and display the converted second content in the first session box in the client of the first account; the first dialog box includes the identifier of the first account, the identifier of the second account, and the first content.
[0208] Figure 21 This is a schematic diagram illustrating the structure of a communication device according to an exemplary embodiment. (Refer to...) Figure 21 As shown, the communication device 110 provided in this embodiment includes a display unit 1101, a processing unit 1102, an acquisition unit 1103, and a sending unit 1104. The display unit 1101 is configured to display a list of master accounts of a second server; the master account list includes identifiers of all master accounts within the second server; the first server and the second server are different instant messaging software; the processing unit 1102 is configured to, in response to a first account's selection operation of a target master account in the master account list within its client, determine a second account and display a first dialog box; the first dialog box includes an identifier of the second account; the acquisition unit 1103 is configured to, in response to an input operation by the first account in the first dialog box, acquire first content; the processing unit 1102 is further configured to generate a first session message based on the identifier of the second account and the first content; the sending unit 1104 is configured to send the first session message to the first server; the first session message is used to request the display of the first content in the client of the second account within the second server.
[0209] Optionally, the processing unit 1102 is specifically configured to display a list of sub-accounts of the target master account in response to the first account's selection operation on the master account list; the sub-account list of a master account includes the identifier of a master account and the identifiers of all sub-accounts under the master account; and determine a second account in response to the first account's selection operation on the sub-account list.
[0210] Figure 22 This is a schematic diagram of the structure of an electronic device provided in this disclosure. For example... Figure 22As shown, the electronic device 120 may include at least one processor 1201 and a memory 1202 for storing processor-executable instructions, wherein the processor 1201 is configured to execute the instructions in the memory 1202 to implement the communication method in the above embodiments.
[0211] In addition, the electronic device 120 may also include a communication bus 1203 and at least one communication interface 1204.
[0212] Processor 1201 may be a processor (central processing unit, CPU), microprocessor unit, ASIC, or one or more integrated circuits for controlling the execution of programs according to the present disclosure.
[0213] The communication bus 1203 may include a path for transmitting information between the aforementioned components.
[0214] Communication interface 1204 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.
[0215] The memory 1202 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed discs, laser discs, optical discs, digital universal discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.
[0216] The memory 1202 stores instructions for executing the present invention, and its execution is controlled by the processor 1201. The processor 1201 executes the instructions stored in the memory 1202 to implement the functions of the communication method of the present invention.
[0217] In a specific implementation, as one example, the processor 1201 may include one or more CPUs, for example... Figure 22 CPU0 and CPU1 in the CPU.
[0218] In a specific implementation, as one example, the electronic device 120 may include multiple processors, such as... Figure 22 Processors 1201 and 1207 are mentioned. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here can refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).
[0219] In a specific implementation, as one embodiment, the electronic device 120 may further include an output device 1205 and an input device 1206. The output device 1205 communicates with the processor 1201 and can display information in various ways. For example, the output device 1205 may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. The input device 1206 communicates with the processor 1201 and can accept input from user objects in various ways. For example, the input device 1206 may be a mouse, keyboard, touchscreen device, or sensing device, etc.
[0220] Those skilled in the art will understand that Figure 22 The structure shown does not constitute a limitation on the electronic device 120, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0221] In addition, this disclosure also provides a computer-readable storage medium that, when the instructions in the computer-readable storage medium are executed by the processor of an electronic device, enables the electronic device to perform the communication method provided in the above embodiments.
[0222] In addition, this disclosure also provides a computer program product, including computer instructions, which, when executed on an electronic device, cause the electronic device to perform the communication method provided in the above embodiments.
[0223] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
Claims
1. A communication method, characterized in that, The method includes: Obtain the main account list of the second server and display the main account list in the client of the first account; the main account list includes the identifiers of all main accounts in the second server; In response to the first account's selection of a target main account from the list of main accounts within its client, it is determined whether the first account possesses the target permission; the target permission is the permission to communicate with the target main account. When the first account has the target permissions, a list of sub-accounts of the target main account is displayed in the client of the first account; the list of sub-accounts of a main account includes the identifier of the main account and the identifiers of all sub-accounts under the main account; In response to the first account's selection operation on the list of sub-accounts, a first dialog box is displayed in the client of the first account; the first dialog box is used to input first content; Receive a first session message sent by a client of a first account within a first server; the first session message includes the identifier of the first account, the identifier of a second account within a second server, and first content requested by the first account to be sent to the second account; the first server and the second server are different instant messaging software; The first content is formatted and converted to obtain the converted first content; the converted first content is used to display in the client of the second server. Based on the identifier of the first account, the identifier of the second account, and the converted first content, a second session message is generated and sent to the second server; the second session message is used to instruct the second server to send the identifier of the first account and the converted first content to the client of the second account; Receive a third session message sent by the second server, the third session message including the identifier of the first account, the identifier of the second account, and the second content requested by the second account to be sent to the first account; The second content is formatted and converted to obtain the converted second content, which is then displayed in a first dialog box within the client of the first account; the first dialog box includes the identifier of the first account, the identifier of the second account, and the first content; Receive permission update messages sent by the second server; the permission update messages include permission changes of a preset main account within the second server, and permission changes of sub-accounts of the preset main account; In response to the permission update message, update the list of sub-accounts of the preset master account in the first server.
2. The method according to claim 1, characterized in that, When the first account has the target permissions, displaying the first dialog box in the client of the first account includes: When the first account has the target permissions, a list of sub-accounts of the target main account is displayed in the client of the first account; the list of sub-accounts of a main account includes the identifier of the main account and the identifiers of all sub-accounts under the main account; In response to the first account's selection operation on the list of sub-accounts, the second account is determined, and the first dialog box including the identifier of the second account is displayed in the client of the first account.
3. A communication method, characterized in that, The method includes: Displays a list of main accounts on the second server; the list of main accounts includes the identifiers of all main accounts within the second server; the first server and the second server are different instant messaging software; In response to the first account's selection of a target main account from the list of main accounts within the client of the first server, it is determined whether the first account has the target permission; the target permission is the permission to communicate with the target main account. If the first account has the target permissions, a list of sub-accounts of the target main account is displayed; the list of sub-accounts of a main account includes the identifier of the main account and the identifiers of all sub-accounts under the main account. In response to the first account's selection operation on the list of sub-accounts, a second account is determined and a first dialog box is displayed; the first dialog box includes an identifier of the second account. In response to the input operation of the first account in the first dialog box, the first content is obtained; Based on the identifier of the second account and the first content, a first session message is generated and sent to the first server; the first session message includes the identifier of the first account, the identifier of the second account within the second server, and the first content that the first account requests to be sent to the second account; the first session message is used to request the display of the first content in the client of the second account within the second server.
4. A communication device, characterized in that, The device includes an acquisition unit, a receiving unit, a processing unit, and a sending unit; The acquisition unit is configured to acquire a list of main accounts from the second server and display the list of main accounts in the client of the first account; the list of main accounts includes the identifiers of all main accounts in the second server. The processing unit is specifically used for: In response to the first account's selection of a target main account from the list of main accounts within its client, it is determined whether the first account possesses the target permission; the target permission is the permission to communicate with the target main account. When the first account has the target permissions, a list of sub-accounts of the target main account is displayed in the client of the first account; the list of sub-accounts of a main account includes the identifier of the main account and the identifiers of all sub-accounts under the main account; In response to the first account's selection operation on the list of sub-accounts, a first dialog box is displayed in the client of the first account; The first dialog box is used to input the first content; The receiving unit is configured to receive a first session message sent by a client of a first account within a first server. The first session message includes the identifier of the first account, the identifier of the second account within the second server, and the first content that the first account requests to be sent to the second account; the first server and the second server are different instant messaging software; The processing unit is configured to convert the format of the first content to obtain the converted first content; The converted first content is used to display in the client of the second server; The processing unit is configured to generate a second session message based on the identifier of the first account, the identifier of the second account, and the converted first content; The sending unit is configured to send the second session message to the second server; The second session message is used to instruct the second server to send the identifier of the first account and the converted first content to the client of the second account; The receiving unit is further configured to: receive a third session message sent by the second server, the third session message including the identifier of the first account, the identifier of the second account, and second content requested by the second account to be sent to the first account; The processing unit is further configured to: convert the format of the second content to obtain the converted second content, and display the converted second content in a first dialog box within the client of the first account; the first dialog box includes the identifier of the first account, the identifier of the second account, and the first content; The receiving unit is further configured to: receive a permission update message sent by the second server; the permission update message includes permission changes of a preset main account within the second server, and permission changes of sub-accounts of the preset main account; The processing unit is further configured to: update the list of sub-accounts of the preset master account in the first server in response to the permission update message.
5. A communication device, characterized in that, The device includes a display unit, a processing unit, an acquisition unit, and a sending unit; The display unit is configured to display a list of main accounts of the second server; the list of main accounts includes the identifiers of all main accounts within the second server. The first server and the second server are different instant messaging software; The processing unit is configured to, in response to a first account's selection operation of a target main account in the main account list within the client of the first server, determine whether the first account has the target permission; the target permission is the permission to communicate with the target main account. The processing unit is further configured to display a list of sub-accounts of the target master account when the first account has the target permissions; the list of sub-accounts of a master account includes the identifier of the master account and the identifiers of all sub-accounts under the master account; in response to the first account's selection operation on the list of sub-accounts, a second account is determined and a first dialog box is displayed; the first dialog box includes the identifier of the second account. The acquisition unit is configured to acquire first content in response to an input operation by the first account in the first dialog box; The processing unit is further configured to generate a first session message based on the identifier of the second account and the first content; the first session message includes the identifier of the first account, the identifier of the second account in the second server, and the first content that the first account requests to be sent to the second account; The sending unit is further configured to send the first session message to the first server; the first session message is used to request the display of the first content in the client of the second account within the second server.
6. An electronic device, characterized in that, include: A processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute instructions to implement the communication method of any one of claims 1-2 or 3.
7. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the communication method as described in any one of claims 1-2 or 3.
Citation Information
Patent Citations
Association relationship establishment method and data interaction method and device
CN113645320A
Instant communication message display method and device, equipment and storage medium
CN114979049A
Method and system for creating multi-accounting number users in instant communicating system
CN1960345A