[go: up one dir, main page]

CN120342988A - Method, device, equipment, medium and program product for creating upstream and downstream group chat - Google Patents

Method, device, equipment, medium and program product for creating upstream and downstream group chat

Info

Publication number
CN120342988A
CN120342988A CN202410069658.1A CN202410069658A CN120342988A CN 120342988 A CN120342988 A CN 120342988A CN 202410069658 A CN202410069658 A CN 202410069658A CN 120342988 A CN120342988 A CN 120342988A
Authority
CN
China
Prior art keywords
upstream
group chat
downstream
group
account
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410069658.1A
Other languages
Chinese (zh)
Inventor
王瑶
李斌
曾楚伟
吕阳阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202410069658.1A priority Critical patent/CN120342988A/en
Publication of CN120342988A publication Critical patent/CN120342988A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种上下游群聊的创建方法、装置、设备、介质和程序产品,涉及计算机技术领域,包括如下步骤:接收第一客户端发送的接口调用请求,第一客户端登录有第一帐号,第一客户端处于内网环境下,接口调用请求用于请求调用外网服务器的数据交互接口;在接口调用请求通过的情况下,接收第一客户端通过数据交互接口发送的群聊创建请求,群聊创建请求用于请求创建上下游群,上下游群是指包含上级帐号和下级帐号的群聊,上级帐号和下级帐号属于不同企业;基于群聊创建请求生成上下游群聊并将上下游群聊的群聊信息发送至第一客户端。能够通过数据交互交口使处于内网环境下的客户端成功调用外网服务创建上下游群聊。

The present application discloses a method, device, equipment, medium and program product for creating an upstream and downstream group chat, which relates to the field of computer technology and includes the following steps: receiving an interface call request sent by a first client, the first client has a first account logged in, the first client is in an intranet environment, and the interface call request is used to request to call a data interaction interface of an external network server; when the interface call request is passed, receiving a group chat creation request sent by the first client through the data interaction interface, the group chat creation request is used to request to create an upstream and downstream group, and the upstream and downstream group refers to a group chat including a superior account and a subordinate account, and the superior account and the subordinate account belong to different enterprises; generating an upstream and downstream group chat based on the group chat creation request and sending the group chat information of the upstream and downstream group chat to the first client. Through the data interaction interface, the client in the intranet environment can successfully call the external network service to create an upstream and downstream group chat.

Description

Method, device, equipment, medium and program product for creating upstream and downstream group chat
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, equipment, a medium and a program product for creating upstream and downstream group chat.
Background
The upstream and downstream group refers to group chat established between an upper enterprise and a lower enterprise, and assists communication cooperation, service butt joint and the like between enterprises, and the management efficiency of the enterprises can be improved by establishing the upstream and downstream group.
In the related art, an upper enterprise may establish an upstream group and a downstream group through an application program having a function of establishing the upstream group and the downstream group, and pull lower enterprise members that need to perform service communication into the group chat.
However, for some upper level enterprises that use an intranet, it is not possible to create upstream and downstream groups directly through an application.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment, a medium and a program product for creating an upstream and downstream group chat, which can enable a client side in an intranet environment to successfully call an extranet service to create the upstream and downstream group chat through a data interaction interface. The technical scheme is as follows:
In one aspect, a method for creating an upstream and downstream group chat is provided, the method comprising:
Receiving an interface calling request sent by a first client, wherein the first client logs in with a first account, the first client is in an intranet environment, the interface calling request is used for requesting to call a data interaction interface of an extranet server, and the extranet server is a server which is outside the intranet environment and is used for providing group management service;
Receiving a group chat creation request sent by the first client through the data interaction interface under the condition that the interface call request passes, wherein the group chat creation request is used for requesting to create an upstream group chat and a downstream group chat, the upstream group chat is a group chat comprising an upper-level account and a lower-level account, the upper-level account belongs to an upper-level enterprise in the upstream and the downstream, the lower-level account belongs to a lower-level enterprise in the upstream and the downstream, the upstream and the downstream are used for indicating the relationship when business interaction is performed between enterprises, and the group chat creation request comprises first information of the first account initiating the group chat creation request;
And generating the upstream and downstream group chat based on the group chat creation request and sending group chat information of the upstream and downstream group chat to the first client.
In another aspect, there is provided a creation apparatus of an upstream and downstream group chat, the apparatus comprising:
the system comprises a receiving module, a first client and a second client, wherein the receiving module is used for receiving an interface calling request sent by the first client, the first client logs in with a first account, the first client is in an intranet environment, the interface calling request is used for requesting to call a data interaction interface of an extranet server, and the extranet server is a server which is outside the intranet environment and is used for providing group management service;
The receiving module is further configured to receive, when the interface call request passes, a group chat creation request sent by the first client through the data interaction interface, where the group chat creation request is used to request creation of an upstream group chat and a downstream group chat, where the upstream group chat includes a group chat including an upper account and a lower account, the upper account belongs to an upper enterprise in an upstream and a downstream, the lower account belongs to a lower enterprise in the upstream and the downstream, and the upstream and the downstream are used to indicate a relationship when service interaction is performed between enterprises, and the group chat creation request includes first information of the first account that initiates the group chat creation request;
and the group chat generating module is used for generating the upstream and downstream group chat based on the group chat creating request and sending the group chat information of the upstream and downstream group chat to the first client.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, where the at least one instruction, the at least one program, the set of codes, or the set of instructions are loaded and executed by the processor to implement a method for creating an upstream and downstream group chat according to any of the embodiments of the present application.
In another aspect, a computer readable storage medium is provided, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored, where the at least one instruction, the at least one program, the set of codes, or the set of instructions are loaded and executed by a processor to implement a method for creating an upstream and downstream group chat according to any of the embodiments of the present application.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions 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 performs the method for creating the upstream and downstream group chat according to any of the above embodiments.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
And receiving an interface calling request sent by the first client, and enabling the first client in an intranet environment to have authority for calling a data interaction interface of the extranet server under the condition that the interface calling request passes, so that the first client can call a background service of the extranet server. After receiving a group chat creation request sent by a first client through a data interaction interface, generating an upstream group chat and a downstream group chat based on the group chat creation request, and solving the problem that an external network server cannot be called to create the upstream group and the downstream group in an internal network environment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a creation process of an upstream and downstream group chat according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an update process of an upstream group chat and a downstream group chat according to an exemplary embodiment of the present application;
fig. 3 is a schematic diagram of an information acquisition process of an upstream and downstream group chat according to an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
fig. 5 is a flowchart of a method for creating an upstream and downstream group chat according to an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of an input interface provided by an exemplary embodiment of the present application;
Fig. 7 is a schematic diagram of a process for sending a group chat creation request according to an exemplary embodiment of the application;
fig. 8 is a flowchart of a method for creating an upstream and downstream group chat according to another exemplary embodiment of the present application;
Fig. 9 is a flowchart of a method for updating an upstream and downstream group chat according to an exemplary embodiment of the application;
Fig. 10 is a block diagram of a creation device of an upstream and downstream group chat according to an exemplary embodiment of the present application;
fig. 11 is a block diagram of a creation apparatus of an upstream and downstream group chat according to another exemplary embodiment of the present application;
Fig. 12 is a block diagram of a computer device according to another exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be noted that, the information and the data related to the present application are all information and data authorized by the user or fully authorized by each party, and the collection, the use and the processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
It should be understood that, although the terms first, second, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first parameter may also be referred to as a second parameter, and similarly, a second parameter may also be referred to as a first parameter, without departing from the scope of the application. The term "if" as used herein may be interpreted as "at..once" or "when..once" or "in response to a determination", depending on the context.
First, a brief description will be made of terms involved in the embodiments of the present application:
upstream, enterprise links established between enterprises responsible for different businesses, such as suppliers and distributors, on the same industry chain. When business interaction is performed, different enterprises are located at different positions on the upstream and downstream of the industry chain. Upstream and downstream include upstream enterprises and downstream enterprises, wherein upstream enterprises refer to enterprises that create upstream and downstream, and downstream enterprises refer to enterprises that join upstream and downstream.
Upstream and downstream group chat, wherein the upstream and downstream group chat is created by an upper enterprise and the lower enterprise joins the business docking group chat comprising the upper enterprise and the lower enterprise. In the upstream and downstream group chat, the number of the upper enterprises is one, and the number of the lower enterprises is at least one.
In the upstream and downstream group chat, the enterprise can know whether the message is read or not, and can efficiently communicate with business partners such as dealers, suppliers and the like, so that the upstream and downstream group chat becomes an important way for communicating between upstream and downstream. In some applications or websites supporting creation of upstream and downstream group chat, an upstream enterprise may create upstream and downstream group chat by invoking a background service, including upstream enterprises and downstream enterprises that have business communication and collaboration needs.
In the related technology, the upper enterprise can share the shared application to the lower enterprise needing to enter the upstream and downstream group chat, and the lower enterprise receives the shared application shared by the upper enterprise and performs online identity verification, and then is located in the visible range of the shared application. The upper level enterprise can establish the upstream and downstream group chat through the related application program, and the lower level enterprise positioned in the visible range of the shared application can enter the upstream and downstream group chat.
However, in the above manner, the upper enterprise needs to call the background service of the external network server through the internet or the external network to create the upstream and downstream group chat, and the enterprise in the intranet environment cannot directly call the background service provided by the external network server to create the upstream and downstream group chat.
The application provides a method for creating upstream and downstream group chat, which can solve the problem that an enterprise cannot create upstream and downstream group chat in an intranet environment.
And configuring interface call information corresponding to an enterprise white list (also called list) and a data interaction interface, wherein the data interaction interface can be used as a medium for calling background service of an external network server, and an enterprise in an intranet environment can access internet service through the data interaction interface to realize creation of upstream and downstream group chat.
The enterprise white list comprises at least one upper enterprise, and the upper enterprises in the enterprise white list have the authority to access the interface calling information. The interface calling information provides interface parameters of the data interaction interface, when a higher-level enterprise has the requirement of creating upstream and downstream group chat, the interface parameters can be obtained by accessing the interface calling information, and an interface calling request is sent to the server based on the interface parameters, wherein the interface calling request comprises input parameters.
And when the input parameters in the interface call request are matched with the interface parameters in the interface call information, the request is called through the interface, and at the moment, the upper enterprise successfully calls the data interaction interface of the external network server.
The method comprises the steps that a superior enterprise sends a group chat creation request to an external network server through a data interaction interface, wherein the group chat creation request is used for creating an upstream group chat and a downstream group chat, and the group chat creation request contains information of a first application used for creating the upstream group chat and the downstream group chat and information of a group member enterprise.
After receiving the group chat creation request, in order to ensure security in creating the upstream and downstream group chat, the external network server performs further security verification based on information contained in the group chat creation request. An enterprise that sends a group chat creation request is hereinafter referred to as a creation member.
The security verification process includes, but is not limited to, the following links.
(1) Checking the number of group members indicated by the group chat creation request, and confirming that the number of group members does not exceed a preset value, for example, the number of group members cannot exceed 2000 people.
(2) And acquiring basic information of the first application according to the names of the creation members and the first application, and confirming whether the first application is an upstream and downstream sharing application, wherein the sharing application is an application shared by a superior enterprise to a subordinate enterprise, and the sharing application is a basis for creating an upstream and downstream group chat.
If the first application is a shared application, acquiring an upstream and downstream ID (Industrial Design, identity) of the shared application and a visible range of the shared application, otherwise intercepting a group chat creation request.
The upstream and downstream IDs of the sharing application refer to names of upper enterprises which initiate sharing the application, and the sharing scope of the sharing application refers to lower enterprises which receive the sharing application, for example, if the upper enterprise A shares the sharing application B to the lower enterprise C and the lower enterprise D, the upstream and downstream IDs of the sharing application B are the upper enterprise A, and the sharing scope of the sharing application B includes the lower enterprise C and the lower enterprise D.
(3) It is checked whether the creation member is a superior enterprise, only the superior enterprise has the right to create the upstream and downstream group chat.
(4) Acquiring an upstream and downstream address book, wherein the upstream and downstream address book comprises information of a plurality of upstream enterprises and a plurality of downstream enterprises, acquiring enterprise information of group owner and group members of the upstream and downstream group chat, and determining whether the group owner and the group members are in the upstream and downstream address book; if both the swarm and the swarm member belong to the enterprises in the upstream and downstream address books, further determining whether the swarm and the swarm member are in the visible range of the shared application. If members in the group and the group members exist, the members are not in the upstream address book and the downstream address book or are not in the visible range of the sharing application, the group chat creation request is intercepted.
(5) When the information of the group owner member is checked, the default creation member (the upper enterprise) is the group owner member when the group chat is created, the group owner member can set a switch for allowing the group members to view each other in the upstream and downstream group chat, if the switch is on, the group members can view the respective enterprise information and the like, and if the switch is off, the group members cannot view the respective enterprise information and the like. In some cases, when a group chat is created, the group owner member is changed, and if the group owner member is temporarily empty, one member is randomly selected from the group members (subordinate enterprises) as a new group owner, and when the group owner member is a subordinate enterprise, it is necessary to check whether a switch for "allowing the group members to see each other" is turned on. If the switch is turned on, the group owner member is replaced, and if the switch is turned off, the group chat creation request is intercepted.
When all the checking links pass, the upstream and downstream group chat is created, and group chat information of the upstream and downstream group chat is set, including information such as group main information, group member information, group name and the like. And writing the name of the first application into the upstream and downstream group chat as a group member, and encrypting and returning the group chat information of the upstream and downstream group chat to the member initiating the creation of the group chat.
In summary, through the method provided by the application, the client in the intranet environment can successfully call the extranet service to create the upstream and downstream group chat through the data interaction interface.
Schematically, as shown in fig. 1, fig. 1 is a schematic diagram of a creation process of an upstream and downstream group chat, which is performed by an external network server.
The creation process 100 includes first checking whether the creator enterprise is an upper enterprise (i.e., checking whether the first account number that initiates the group chat request belongs to the upper enterprise), if the creator enterprise is not an upper enterprise, returning the creation failure, if the creator enterprise is an upper enterprise, continuously checking whether the first application used when creating the upstream group chat is a shared application, if the first application is not a shared application, returning the creation failure, if the first application is a shared application, continuously checking whether both the group member and the group member are in the upstream address book, if the account number in the group member and the group member do not belong to the upstream address book, returning the creation failure, if both the group member and the group member belong to the upstream address book, continuously checking whether the group member is in the visible range of the group owner (i.e., checking whether the functions that allow the group members to view each other are on), if the account number in the group member is not in the visible range of the group owner, returning the creation failure, and if both the group member are in the visible range of the group owner, creating the upstream group member and the downstream group member.
In some embodiments, after the creation of the upstream and downstream group chat is successful, the upper enterprise creating the group chat may also update or view the group chat information of the upstream and downstream group chat by sending a corresponding group chat update request or information acquisition request to the external network server.
Schematically, as shown in fig. 2, fig. 2 is a schematic diagram of an update process of an upstream and downstream group chat, which is performed by an external network server.
After the creation of the upstream and downstream group chat is successful, the external network server writes the first application as a group member into the group member list, and returns encrypted group chat information to the upper enterprise creating the group chat, where the group chat information includes a group ID. When the upper enterprise sends a group chat update request to the external network server, the group chat update request contains a group ID. The external network server decrypts the group ID in the group chat update request, acquires group basic information of an upstream group chat and a downstream group chat to determine whether the upstream group chat and the downstream group chat are effective (namely, whether the upstream group chat and the downstream group chat are scattered is checked), returns an update failure if the upstream group chat and the downstream group chat are scattered, acquires a group member list and checks whether a first application is in the group member list if the upstream group chat and the downstream group chat are not scattered, returns an update failure if the first application is not in the group member list, acquires information of the first application if the first application is in the group member list, checks whether the first application is a shared application, and checks whether the update failure returns if the first application is a shared application based on update data in the group chat creation request, wherein the update data is used for indicating an update mode of the group chat information of the upstream group chat and the downstream group chat, returns an update failure if the update data does not meet the preset group update request, and updates the update failure if the update data meets the preset group update request based on the upstream group update data.
Schematically, as shown in fig. 3, fig. 3 is a schematic diagram of an information acquisition process of an upstream and downstream group chat, which is performed by an external network server.
The information acquisition process 300 is such that when the upper enterprise sends a group chat information acquisition request to the extranet server, the group chat information acquisition request includes a group ID. The external network server decrypts the group ID in the group chat information acquisition request, acquires group basic information of an upstream group chat and a downstream group chat to determine whether the upstream group chat and the downstream group chat are effective (namely, whether the upstream group chat and the downstream group chat are disintegrated or not), returns an information acquisition failure if the upstream group chat and the downstream group chat are disintegrated, acquires a group member list and checks whether a first application is in the group member list if the upstream group chat and the downstream group chat are not disintegrated, returns the information acquisition failure if the first application is not in the group member list, acquires information of the first application if the first application is in the group member list, checks whether the first application is a sharing application, returns the information acquisition failure if the first application is not a sharing application, acquires a visible range of the first application and an upstream address book and a downstream address book if the first application is a sharing application, and then encrypts and sends the group chat information to an upper enterprise after filtering the group members in the visible range of the first application and the upstream address book range, wherein the group chat information comprises the information of the members in the visible range of the first application and the upstream group address book and the downstream group address book.
Next, an implementation environment according to an embodiment of the present application will be described, schematically, with reference to fig. 4, where a terminal 400 and an external network server 420 are involved, and the terminal 400 and the external network server 420 are connected through a communication network 440. Wherein the terminal 400 logs in the first account, the terminal 400 is in the intranet environment, the extranet server 420 is a server which is outside the intranet environment and can provide management service,
Wherein the extranet server 420 is capable of providing a background service that creates upstream and downstream group chat.
The terminal 400 in the intranet environment can send a group chat creation request to the extranet server 420 by calling the data interaction interface of the extranet server 420, so as to create an upstream and downstream group chat.
The extranet server 420 is preconfigured with a whitelist (call list), where the whitelist includes at least one enterprise name of a higher-level enterprise, and the enterprises in the whitelist have authority to call the data interaction interface. The white list configuration process is that an enterprise calling the data interaction interface needs applies to the external network server 420 to become an enterprise in the white list, the external network server 420 performs qualification judgment on the enterprise initiating the application, and if the qualification judgment passes, the enterprise name is written into the white list.
Illustratively, the first account belongs to the upper enterprise a, and applies to the extranet server 420 that the upper enterprise a enters the white list, and the extranet server 420 obtains the enterprise information of the upper enterprise a and performs qualification determination. Illustratively, the enterprise information includes the name of the upper enterprise a, the type of service responsible, the registration duration, and the like. If the enterprise information of the upper enterprise A meets the requirement of adding the white list, the application passes.
Optionally, the first account logged on the terminal 400 is located in the white list and has authority to access interface call information, where the interface call information is used to indicate interface parameters required by the terminal 400 when applying for calling the data interaction interface. After the terminal 400 obtains the interface call information, it sends an interface call request to the external network server 420 based on the interface parameters in the interface call information. After the external network server 420 determines that the interface call request passes, the terminal 400 successfully calls the data interaction interface of the external network server 420. The terminal 400 sends a group chat creation request to the external network server 420 through the data interaction interface, the external network server 420 performs security verification based on the group chat creation request, and if the security verification is passed, the external network server 420 creates an upstream group chat and a downstream group chat based on the creation group chat request and returns group chat information of the upstream group chat and the downstream group chat to the terminal 400.
The terminal may be a mobile phone, a tablet computer, a desktop computer, a portable notebook computer, an intelligent television, a vehicle-mounted terminal, an intelligent home device, or other terminal devices, which is not limited in the embodiment of the present application.
It should be noted that the external network server may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, a content distribution network (Content Delivery Network, CDN), and basic cloud computing services such as big data and an artificial intelligence platform.
Cloud technology (Cloud technology) refers to a hosting technology that unifies serial resources such as hardware, software, networks and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data. The cloud technology is based on the general names of network technology, information technology, integration technology, management platform technology, application technology and the like applied by the cloud computing business mode, can form a resource pool, and is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
In some embodiments, the servers described above may also be implemented as nodes in a blockchain system.
The method for creating the upstream and downstream group chat provided by the application is described by combining the noun introduction and the application scene, and the method can be executed by a server or a terminal, or can be executed by the server and the terminal together, in the embodiment of the application, the method is described by taking the execution of the server as an example, wherein the server is an extranet server, as shown in fig. 5, fig. 5 is a flowchart of a method for creating an upstream and downstream group chat according to an exemplary embodiment of the present application, and the method includes the following steps.
Step 510, receiving an interface call request sent by a first client.
The first client logs in with a first account, the first client is in an intranet environment, and an interface calling request is used for requesting to call a data interaction interface of the extranet server. The extranet server is a server for providing a group management service outside the intranet environment.
Optionally, the first account refers to a superior enterprise account. In the upstream and downstream concepts, for example, in an industry chain where a supplier enterprise provides raw materials to a dealer enterprise, the supplier enterprise is an upstream enterprise in the industry chain and the dealer enterprise is a downstream enterprise in the industry chain.
In some embodiments, the upper enterprise may initiate an upstream and downstream group chat through a background service provided by the server, and pull the lower enterprise into the upstream and downstream group chat for service docking.
Before the first client sends the interface calling request to the external network server, the external network server determines the account list with calling interface authority.
Optionally, generating interface call information and a call list, wherein the call list contains an account number with authority for acquiring the interface call information, and the interface call information contains interface parameters required for calling the data interaction interface, that is, the account number in the call list has authority for calling the data interaction interface. For enterprises which cannot directly access the server under the intranet environment, the authority of calling the data interaction interface can be obtained by applying for entering a calling list, and then the services such as group management and the like provided by the server can be accessed by calling the data interaction interface.
The interface calling information comprises preset interface parameters, and the interface parameters are used for indicating a mode of calling the data interaction interface. The call list includes account names corresponding to the first account, the second account and the third account, and the first account, the second account and the third account belong to different upper enterprises. The upper enterprise may apply for adding a call list to the external network server, for example, the account a belongs to the upper enterprise a, and the upper enterprise a applies for becoming a member in the call list to the external network server, and adds the account a in the call list when the application passes.
The first client logs in with a first account, the first account belongs to a call list, and the first account has the authority of accessing interface call information and can call a data interaction interface based on the interface call information.
And receiving an interface call information viewing request sent by the first client, and matching the first account corresponding to the first client by the external network server through a call list to determine whether the first client has the authority to view the interface call information. The enterprise account opening interface through verification in the call list has access to call information, and when the enterprise applies for calling the data interaction interface, the data interaction interface can be directly matched according to the name information of the enterprise, so that the verification process is simplified.
And responding to the enterprise account number of the enterprise to which the first account number belongs in the call list, indicating that the interface call information viewing request passes, and sending the interface call information to the first client by the external network server. After the first client receives the interface call information, an interface call request is sent to the external network server based on the interface parameters in the interface call information, and the external network server receives the interface call request sent by the first client based on the interface call information.
The method includes the steps that (1) a contracted network exists between the first client and the external network server and can be used for data transmission, (2) enterprise personnel to which a first account logged in by the first client belongs and management personnel of the external network server communicate in other modes to achieve sending of the interface call request, and (3) the first client can directly input interface parameters to an input interface through an application program or a website with an interface call function to achieve interface call and the like.
Step 520, receiving a group chat creation request sent by the first client through the data interaction interface, where the interface call request passes.
Optionally, the interface call request includes an input parameter when the interface is called. And displaying an input interface when the data interaction interface is called on a screen of the first client, and inputting the interface parameters as input parameters when the input interface initiates an interface call request.
Schematically, as shown in fig. 6, fig. 6 is a schematic diagram of an input interface.
The input interface 600 includes a plurality of input areas 610, and the data interaction interface can be invoked by inputting interface parameters in the input areas 610 and triggering the confirmation control 611. If the call is successful, the call success prompt content is displayed in the data interaction interface call result display area 620.
And the external network server determines that the interface call request passes under the condition that the interface parameters in the interface call information are matched with the input parameters in the interface call request, namely, if the interface parameters are matched with the input parameters, the interface call request passes, and if the interface parameters are not matched with the input parameters, the interface call request does not pass. Only the enterprise account with the interface calling authority can acquire the interface parameters, and when the interface parameters are used for calling the data interaction interface, the server only needs to check the identity and the authority of the enterprise account through the matching condition of the interface parameters in the request by the interface calling information, and the efficiency of the interface calling verification process can be improved without verifying the information of the enterprise.
And under the condition that the interface parameters in the interface call information are matched with the input parameters in the interface call request, receiving a group chat creation request sent by the first client through the data interaction interface. The data interaction interface can provide a channel for accessing the server background service for enterprises in an intranet environment, breaks through the limitation of the intranet and the extranet, and enables the enterprises in different environments to freely establish group chat for interaction.
The group chat creation request is used for requesting to create an upstream and downstream group chat, the upstream and downstream group chat refers to group chat comprising an upper account and a lower account, the upper account and the lower account belong to different enterprises, the upper account belongs to an upper enterprise in the upstream and downstream, the lower account belongs to a lower enterprise in the upstream and downstream, the upstream and downstream are used for indicating a relationship when business interaction is performed between the enterprises, and the group chat creation request comprises first information of a first account initiating the group chat creation request.
The group chat creation request is initiated by a first account, which is an upper level account, that is, an enterprise to which the first account belongs is an upper level enterprise.
Optionally, the group chat creation request includes a group main member and a group member, the group main member defaults to a first account for initiating the group chat creation request, which is an upper account, and the group members are all lower accounts.
Optionally, the first information of the first account includes an account name of the first account, a case that the first account belongs to an upper member or a lower member in an upstream and downstream, enterprise information of an enterprise to which the first account belongs, an identification header of the first account, and the like.
Schematically, as shown in fig. 7, fig. 7 is a schematic process of sending a group chat creation request.
The group chat creation interface 700 is displayed on the first client, and the group chat creation interface 700 comprises at least one functional control, wherein each functional control is used for calling different services of the foreign network server background.
The group chat creation interface 700 also includes an upstream and downstream management area 710, where the upstream and downstream management area 710 includes an upstream and downstream functionality control 701, and triggering the upstream and downstream functionality control 701 may initiate creation of an upstream and downstream group chat. The group chat creation interface 700 correspondingly displays prompt information, namely, "upstream and downstream groups are created through the data interaction interface", "upstream and downstream group information is filled in".
Optionally, the group chat creation interface 700 includes the following area for filling up the upstream and downstream group chat information.
(1) A name key-in area 711 for inputting the names of the upstream and downstream group chat;
(2) The group main member selection area 712 is configured to select a group main member from a candidate list, where the candidate list includes a plurality of accounts, and belongs to different enterprises, and the plurality of accounts includes accounts such as an enterprise account that performs service interaction with an enterprise to which the first account belongs, and an enterprise account that shares the same application with the enterprise to which the first account belongs;
(3) Candidate list group member selection area 713 for selecting group members in the candidate list;
(4) The shared application selection area 714 is used for selecting an application from the shared application candidate list as an application used when creating the upstream and downstream group chat, for example, during a history period, the first account shares the first application to account a, account B and account C, and the second application to account a and account D, and the shared application candidate list includes the first application and the second application.
When the upstream and downstream group chat information are configured, after the creation confirmation control 715 is triggered, a group chat creation request is generated, and the group chat creation request is sent to an external network server.
In step 530, an upstream and downstream group chat is generated based on the group chat creation request and group chat information of the upstream and downstream group chat is sent to the first client.
Optionally, when the group chat creation request sent by the first client is received, the group chat creation request is verified, so that the security in the upstream and downstream group chat creation process can be ensured.
And acquiring first creation information based on the group chat creation request, wherein the first creation information is used for indicating information configured when the first account creates the upstream and downstream group chat. The first creation information contains various information, and is used for multi-aspect verification in the verification process, so that the verification process is more comprehensive.
Optionally, the first creation information includes first information, a name of a first application used when creating the upstream and downstream group chat, and second information of group member accounts in the upstream and downstream group chat. Whether to generate the upstream and downstream group chat is determined based on the fact that the first creation information meets the condition of creating the upstream and downstream group chat.
Optionally, when the upstream group chat and the downstream group chat are created, the upstream account shares the pre-prepared shared application to the downstream account, and the downstream account receives the shared application to complete identity verification, obtains the use authority of the shared application and is located in the visible range of the shared application. Before the upstream and downstream group chat is created, the shared application is used as the identity of the lower accounts, so that whether each lower account is qualified to enter the upstream and downstream group chat or not can be directly determined according to the visible range of the shared application when the upstream and downstream group chat is created, and the identity verification process of the lower accounts is simplified.
The upstream and downstream group chat conditions are established in such a way that the first application is a sharing application and the group member accounts are located in the courseware range of the first application.
When the shared application is used for creating the upstream and downstream group chat, only accounts in the visible range of the shared application can be added into the upstream and downstream group chat to become members in the upstream and downstream group chat.
Illustratively, the first account creates the upstream and downstream group chat through the first application, and before sending the group chat creation request, the first client obtains the first application and shares the first application to the group member account.
The account number of the group member located in the visible range of the first application can be added to the upstream and downstream group chat, that is, when the first account number creates the upstream and downstream group chat based on the first application, only the account number located in the visible range of the first application can be invited as the group member of the upstream and downstream group chat.
And generating the upstream and downstream group chat and sending the group chat information of the upstream and downstream group chat to the first client in response to the first creation information meeting the conditions for creating the upstream and downstream group chat.
In some embodiments, the number of group members that can be included in the upstream and downstream group chat cannot exceed a preset value, for example, the preset value is 2000, which indicates that at most 2000 group member accounts can be included in the upstream and downstream group chat, if the group chat creation request indicates that the number of group members in the upstream and downstream group chat exceeds 2000, the group chat creation request is intercepted, and creation of the upstream and downstream group chat is canceled. The number of the group members is limited, so that excessive number of the members in the upstream and downstream group chat can be avoided, and the upper enterprise can manage the lower enterprise conveniently.
In some embodiments, the first creation information further includes information of a group main member account of the group chat creation request, where the group main member account is one of the first account and a group member account in the upstream and downstream group chat.
When the upstream and downstream group chat is created, the group main member account defaults to the first account initiating the creation request of the group chat, but the group main member account can also be confirmed by means of assignment or random lottery. That is, the group main member account can be the first account or can be replaced by other accounts, so that the flexibility of member information configuration when creating the upstream and downstream group chat is improved.
Under the condition that the group main member account numbers of the upstream and downstream group chat are replaced, the condition that the replaced group main member account numbers belong to the upper-level account numbers or the lower-level account numbers is determined.
Optionally, the method for replacing the group main member account comprises (1) designating a second account in the group member account as the group main member account when the first account initiates the group chat creation request, and (2) selecting a target account in the group member account as the group main member account in a random manner when the first account initiates the group chat creation request.
The target account may be determined in a random manner according to the name of the group member account and information such as the enterprise to which the group member account belongs, which is not limited in this embodiment.
And determining the starting state of the member account information checking function in response to the changed group main member account belonging to the lower-level account, wherein the member account information checking function is started or closed by the first account under the condition that the member account information checking function is started, and the account information can be checked between the group member accounts in the upstream and downstream group chat. The on-off state of the member account information viewing function can reflect the condition that the upper account opens the group owner transfer authority, so that the lower account is prevented from viewing the enterprise information of other enterprise accounts under the condition that the authority is not obtained, the security of group chat is ensured, and the conditions such as enterprise information loss are avoided.
And generating an upstream and downstream group chat based on the group chat creation request and sending group chat information of the upstream and downstream group chat to the first client in response to determining that the member account information viewing function is in an on state.
That is, when the upstream and downstream group chat is created, only the first account (the upper account) that initiates the group chat creation request has authority to turn on or off the member account information viewing function, and when the first account desires to replace the group main member account with the lower enterprise account, the member account information viewing function needs to be turned on. If the member account information viewing function is in a closed state and the group main member account is a lower enterprise account, an upstream and downstream group chat cannot be created.
Generating an upstream and downstream group chat based on the group chat creation request, wherein the group member account number of the upstream and downstream group chat comprises a first application, the group chat information comprises group member account number name information, and the group member account number name information comprises the name of the first application. The first application is written into the upstream and downstream group chat as the group member, whether the upstream and downstream group chat is created based on the sharing application can be rapidly determined according to the condition that the name of the first application is contained in the account name of the group member, and the authentication efficiency can be improved. The group chat information of the upstream and downstream group chat is encrypted and sent to the first client, so that the security of the group chat information can be ensured.
In summary, according to the method provided by the application, by receiving the interface call request sent by the first client, the first client in the intranet environment has the authority to call the data interaction interface of the extranet server under the condition that the interface call request passes, so that the first client can call the background service of the extranet server. After receiving a group chat creation request sent by a first client through a data interaction interface, generating an upstream group chat and a downstream group chat based on the group chat creation request, and solving the problem that an external network server cannot be called to create the upstream group and the downstream group in an internal network environment.
According to the method provided by the embodiment, the permission of each enterprise account to call the data interaction interface can be determined by configuring the call list and the interface call information in advance, a mode of calling the data interaction interface is provided for the enterprise account with the permission, and the safety of data is ensured.
According to the method provided by the embodiment, the input parameters in the interface call request are matched through the interface parameters configured in the interface call information, whether the permission of calling the data interaction interface is opened to the first account is determined based on the matching result, and the safety in the data interaction interface calling process is ensured.
According to the method provided by the embodiment, the security in the upstream and downstream group chat creation process can be improved by performing security verification on the first account, the group member account and the information of the first application and generating the upstream and downstream group chat under the condition that the upstream and downstream group chat creation conditions are met.
According to the method provided by the embodiment, the starting state of the member account information checking function is checked under the condition that the group main member account is replaced, and the function starting state can only be controlled by the upper-level account, so that when the group main member account is replaced, the upper-level account determines to start the information checking function, and the safety of the lower-level account serving as the group main member account can be ensured.
Fig. 8 is a flowchart of a method for creating an upstream and downstream group chat according to another embodiment of the application, including the following steps.
Step 801, acquiring first creation information based on a group chat creation request.
The first creation information is used for indicating information configured when the first account creates the upstream and downstream group chat. Optionally, the first creation information includes first information, a name of a first application used when creating the upstream and downstream group chat, and second information of group member accounts in the upstream and downstream group chat. The first information refers to information of a first account number which initiates a group chat creation request.
The group member accounts comprise 3 accounts, namely a second account, a third account and a fourth account, wherein the second information comprises the enterprise of the second account, the account name of the third account, the account name of the fourth account and the account names of the fourth account.
In some embodiments, the first creation information further includes member number information of the upstream and downstream group chat, where the number of group members that can be included in the upstream and downstream group chat cannot exceed a preset value, for example, the preset value is 2000, which indicates that at most 2000 group member accounts can be included in the upstream and downstream group chat, and if the group chat creation request indicates that the number of group members in the upstream and downstream group chat exceeds 2000, the group chat creation request is intercepted, and creation of the upstream and downstream group chat is cancelled.
Step 802, determining, based on a name of the first application, a case where the first application is an upstream and downstream sharing application.
And acquiring first application information based on the name of the first application, wherein the first application information is used for indicating the condition that the first application information belongs to the upstream and downstream sharing application.
Optionally, the first application information includes an originating account number of the first application, an application type of the first application, and whether the first application belongs to the shared application.
The application type of the first application is a custom application, and the custom application is an application program customized by a superior enterprise, for example, the first application is an application program customized by the superior enterprise to which the first account belongs. The first application belongs to a sharing application, and the first account can share the first application to other accounts.
Optionally, the manner of determining whether the first application belongs to the shared application according to the first application information includes, but is not limited to, the following. (1) The method comprises the steps of determining according to application names of first applications, wherein an external network server comprises a shared application list, the shared application list comprises names of a plurality of shared applications, if the shared application list comprises the application names of the first applications, the first applications belong to the shared applications, and (2) the first application information directly comprises the condition that a first account belongs to the shared applications.
If the first application does not belong to the sharing application, the group chat creation request is intercepted, and creation of the upstream and downstream group chat is canceled.
In step 803, in response to the first application being an upstream and downstream sharing application, the visible range of the first application is obtained.
Wherein the visible range includes accounts sharing the first application.
Optionally, the first application is an application shared by the first account to other accounts, and the visible range of the first application comprises a second account, a third account, a fourth account and a fifth account.
For example, if the group member account number in the upstream and downstream group chat includes the second account number, the third account number, and the fourth account number, the group member account numbers are all within the visible range of the first application.
Illustratively, the group member account in the upstream and downstream group chat includes a second account, a third account, and a sixth account, and the sixth account in the group member account is not in the visible range of the first application.
If the account number exists in the group member account number and is no longer in the visible range of the first application, the group chat creation request is intercepted, and creation of the upstream and downstream group chat is canceled.
Step 804, obtaining the upper and lower level information of the first account.
The upper and lower level information is used for indicating the condition that the first account belongs to the upper level account or the lower level account. The upper account has the right to create the upstream and downstream groups, and the lower account does not have the right to create the upstream and downstream groups.
Optionally, the first account is an upper account, and the first account has authority to create the upstream and downstream group. If the first account is the lower account, the group chat creation request is intercepted, and creation of the upstream and downstream group chat is canceled.
In step 805, in response to the first account being the upper account, an upstream address book and a downstream address book are obtained.
The upstream and downstream address book comprises a plurality of upper accounts and lower accounts. The account number contained in the upstream and downstream address books can request management services from the extranet server. The verification of the condition that the group member accounts belong to the upstream and downstream address books can prevent abnormal member accounts or accounts without enterprise qualification from entering the upstream and downstream group chat when the upstream and downstream group chat is created, and the security of the group chat is ensured.
Optionally, the upstream account number contained in the upstream and downstream address book is a first account number, an upstream account number A and an upstream account number B, and the downstream account number contained in the upstream and downstream address book is a second account number, a third account number, a fourth account number, a downstream account number C and a downstream account number D.
The account number initiating the group chat creation request is exemplified as a first account number, and the group member account number in the upstream and downstream group chat creation includes a second account number, a third account number and a fourth account number, so that the first account number and the group member account number exist in the upstream and downstream address book.
If the accounts in the first account and the group member accounts do not belong to the upstream and downstream address books, the group chat creation request is intercepted, and the creation of the upstream and downstream group chat is canceled.
Step 806, generating an upstream and downstream group chat based on the upstream and downstream address book and the visible range of the first application, and sending group chat information of the upstream and downstream group chat to the first client.
And determining that the first account number and the group member account number in the upstream and downstream group chat belong to the visible range in response to the existence of the first account number and the group member account number in the upstream and downstream group chat in the upstream and downstream address book.
For example, if the first account shares the first application to the group member account, the first account and the group member account in the upstream and downstream group chat belong to the visible range.
And determining that the first creation information accords with the conditions for creating the upstream and downstream group chat in response to the fact that the first account and the group member account in the upstream and downstream group chat belong to the visible range.
When the first account and the group member account belong to the visible range of the upstream and downstream address book and the first application, the first creation information is determined to be in accordance with the conditions for creating the upstream and downstream group chat, the external network server generates the upstream and downstream group chat based on the first creation information, and when any account in the first account and the group member account does not belong to the visible range of the upstream and downstream address book or the first application, the first creation information is determined to be not in accordance with the conditions for creating the upstream and downstream group chat.
And generating the upstream and downstream group chat and sending the group chat information of the upstream and downstream group chat to the first client under the condition that the first creation information meets the conditions of creating the upstream and downstream group chat.
Optionally, the group chat information of the upstream and downstream group chat includes, but is not limited to, information of group main member accounts of the upstream and downstream group chat, information of group member accounts of the upstream and downstream group chat, group chat names of the upstream and downstream group chat, information of the number of group members contained in the upstream and downstream group chat, and the like.
In some embodiments, to ensure security of the upstream and downstream group chat, the group chat information may be encrypted and returned to the first client.
In summary, according to the method provided by the application, by receiving the interface call request sent by the first client, the first client in the intranet environment has the authority to call the data interaction interface of the extranet server under the condition that the interface call request passes, so that the first client can call the background service of the extranet server. After receiving a group chat creation request sent by a first client through a data interaction interface, generating an upstream group chat and a downstream group chat based on the group chat creation request, and solving the problem that an external network server cannot be called to create the upstream group and the downstream group in an internal network environment.
According to the method provided by the embodiment, the safety in the upstream and downstream group chat creation process is ensured by confirming whether the group member account included in the upstream and downstream group chat belongs to the upstream and downstream address book, whether the group member account belongs to the visible range of the first application, whether the first account belongs to the upper account and the like.
After generating the upstream and downstream group chat, the external network server encrypts and sends the group chat information to the first client. The group chat information includes group IDs (Industrial Design, identity identifiers) of the upstream and downstream group chat, and the first client determines that the upstream and downstream group chat is successfully created after acquiring the group IDs. After the upstream and downstream group chat is successfully created, the first client can update the group chat information of the upstream and downstream group chat by sending a group chat update request to the extranet server. Fig. 9 is a flowchart of an update method of the upstream and downstream group chat, which is performed by the extranet server, including the following steps.
Step 910, a group chat update request for an upstream and downstream group chat sent by a first client is received.
The group chat updating request is used for updating the group chat information of the upstream and downstream group chat, and improves the flexibility of the upper account when managing the upstream and downstream group chat.
The group chat update request comprises a group ID of an upstream group chat and a downstream group chat, account information of a first account initiating the group chat update request and update data of the group chat information, wherein the update data of the group chat information is used for indicating a mode of updating the group chat information in the upstream group chat and the downstream group chat.
Optionally, the update data of the group chat information indicated by the group chat update request includes, but is not limited to, the following.
(1) And updating the group member accounts of the upstream and downstream group chat, such as deleting at least one account in the group member accounts and adding at least one account in the group member accounts.
The upstream and downstream group chat includes group member accounts including an account A, an account B, an account C and an account D, and updating data of the group chat information is deleting the account A in the group member accounts.
The updated group chat information includes the group member accounts including account B, account C and account D.
The upstream and downstream group chat includes group member accounts including an account A, an account B, an account C and an account D, wherein the update data of the group chat information is to add an account E to the group member accounts.
The updated group chat information includes the group member accounts including account A, account B, account C, account D and account E.
(2) And updating the group main member accounts in the upstream and downstream group chat, such as replacing the group main member account from the first account to the appointed account in the group member accounts.
The group main member account in the upstream and downstream group chat is a first account for initiating a group chat creation request, and the upstream and downstream group chat comprises group member accounts including an account A, an account B, an account C and an account D, wherein the update data of the group chat information is to change the group main member account from the first account to the account C.
And the updated group chat information includes the group main member account number as account number C, and the group member account number includes the following account numbers of the first account number, the account number A, the account number B and the account number D.
(3) And updating the group names of the upstream and downstream group chat, such as changing the group names from the upstream and downstream group chat A to the upstream and downstream group chat B.
It should be noted that the update data of the group chat information is only used as an example, and the information such as the group main member account number, the group name and the like contained in the upstream and downstream group chat may be arbitrary, and the manner and type of updating the upstream and downstream group chat may also be arbitrary.
In some embodiments, since the external network server may simultaneously receive group chat update requests sent by multiple clients for different upstream and downstream group chat, in order to improve the efficiency of the external network server in updating the upstream and downstream group chat, after receiving the group chat update request, the external network server may first decrypt according to the group ID indicated in the group chat update request, and obtain group chat basic information of the upstream and downstream group chat, so as to determine whether the upstream and downstream group chat is broken down.
If the upstream and downstream group chat are not disintegrated, the external network server performs security verification based on the group chat update request, and updates the group chat information based on update data indicated by the group chat update request after verification.
In step 920, the first creation information is acquired based on the group chat update request.
The first creation information comprises first information, a name of a first application used when creating the upstream and downstream group chat and second information of group member accounts in the upstream and downstream group chat. The first information refers to information of a first account number which initiates a group chat creation request.
The extranet server determines the group member account numbers in the upstream and downstream group chat based on the group chat update request, and checks the condition that the names of the first applications exist in the upstream and downstream group chat, thereby authenticating whether the upstream and downstream group chat is created by the first applications.
If the group member account does not contain the name of the first application, the upstream and downstream group chat are not created by the first application, the external network server intercepts the group chat update request and returns prompt information to the first client to prompt failure of updating the group chat information, if the group member account contains the name of the first application, the upstream and downstream group chat are created by the first application, the external network server performs security verification based on the first creation information, and after verification, the group chat information is updated based on the update type indicated by the group chat update request.
In step 930, in response to the group member account of the upstream and downstream group chat including the first application and the first creation information conforming to the update upstream and downstream group chat condition, it is determined that the update data indicated by the group chat update request conforms to the update upstream and downstream group chat condition.
The update data comprises at least one of updating the number of group member accounts of the upstream and downstream group chat, updating the group main member accounts of the upstream and downstream group chat and updating the names of the upstream and downstream group chat.
When the first creation information and the update data indicated by the group chat update request both accord with the condition of updating the upstream and downstream group chat, the external network server updates the group chat information.
Optionally, update upstream and downstream group chat conditions are as follows.
1. The first application is an upstream and downstream sharing application;
2. the group member accounts of the upstream and downstream group chat contain a first application;
3. After updating the upstream and downstream group chat based on the update data, the updated group member accounts and the updated group main member accounts are in the visible range of the upstream and downstream address book and the sharing application;
4. after updating the upstream and downstream group chat based on the update data, the number of the updated group member accounts meets the preset number requirement, for example, the number of the updated group member accounts is not more than 2000;
5. If the update data is used for indicating to change the group main member accounts of the upstream and downstream group chat, checking whether a member account information checking function of the upstream and downstream group chat is started, and if not, not conforming to the condition of updating the upstream and downstream group chat;
6. After updating the upstream and downstream group chat based on the update data, the updated group name meets the preset naming requirement, for example, the updated group name needs to contain at least one of numbers, chinese characters, english characters and punctuation marks, and the updated group name cannot contain special characters.
Step 940, when the update data meets the update upstream and downstream group chat conditions, updating the group chat information of the upstream and downstream group chat based on the update data.
The group member accounts of the upstream and downstream group chat before updating are exemplified by an account A, an account B and an account C, wherein the account A, the account B and the account C are lower accounts, the group main member account is a first account, the first account is an upper account, a sharing application used in the process of establishing the upstream and downstream group chat is a first application, the first application initiates sharing by the first account, the upstream and downstream address book comprises the accounts including the first account, the account A, the account B, the account C, the account D, the account E and the account F, the visible range of the first application is the first account, the account A, the account B, the account C, the account D and the account E, and the member account information viewing function is in an open state.
The updating data is as follows, deleting account number C and increasing account number E in the group member account number, and changing the group main member account number from the first account number to account number A.
The process of the external network server updating the group chat information based on the update data is as follows.
(1) Determining whether an account to be added is in the visible range of the upstream and downstream address books and the first application, wherein an account E is in the visible range of the upstream and downstream address books and the first application;
(2) Determining whether the account to be deleted is a group main member account, wherein the account C is not the group main member account;
(3) And determining whether the replaced group main member account is a lower-level account, if so, checking the starting state of the member account information checking function, wherein the replaced group main member account is an account A, is the lower-level account, and is in the starting state.
In summary, the update data meets the update upstream and downstream group chat conditions, and updated group chat information is as follows. The group member accounts are a first account, an account B and an account E, and the group main member account is an account A.
In some embodiments, after the external network server creates the upstream and downstream group chat, the group chat information is sent to the first client in an encrypted manner. The group chat information includes group IDs of upstream and downstream group chat, and the first client may decrypt the group IDs and then send a group chat information acquisition request to the external network server to acquire the group chat information of the upstream and downstream group chat. When the group chat information is acquired, the external network server also needs to perform security verification based on the group chat information acquisition request, and after the verification is passed, the group chat information is sent to the first client.
Optionally, a group chat information acquisition request for the upstream and downstream group chat sent by the first client is received, where the group chat information acquisition request is used for requesting to acquire group chat information of the upstream and downstream group chat, and the group chat information acquisition request includes a group ID.
The external network server decrypts the group ID, checks whether the upstream and downstream group chat are disintegrated, and if so, returns prompt information to the first client, wherein the prompt information is used for indicating that the group chat information acquisition fails.
In the case of the upstream group chat not being broken up, the first creation information is acquired based on the group chat information acquisition request.
The first creation information comprises a visible range of the first application, wherein the visible range comprises an account sharing the first application.
And checking whether the first application is an upstream and downstream sharing application, and if the first application is the upstream and downstream sharing application, acquiring the visible range of the first application and initiating an account number for sharing the first application. Illustratively, the first application is shared by the first account, and shared to account A, account B, and account C.
The extranet server determines the group member account numbers in the upstream and downstream group chat based on the group chat update request, and checks the condition that the names of the first applications exist in the upstream and downstream group chat, thereby authenticating whether the upstream and downstream group chat is created by the first applications.
If the group member account does not contain the name of the first application, the upstream and downstream group chat is not created by the first application, and the extranet server intercepts the group chat information acquisition request and returns prompt information to the first client to prompt that the group chat information acquisition fails.
And responding to the condition that the group member accounts of the upstream and downstream group chat comprise the first application and the first creation information accords with the group chat information acquisition condition, acquiring an upstream and downstream address book, wherein the upstream and downstream address book comprises a plurality of upper accounts and lower accounts.
Optionally, the group chat information is acquired under the condition that the group member account comprises a first application, the first application is an upstream and downstream sharing application, and the group member account and the first account are in the visible range of the first application.
And filtering group member accounts in the visible range and the upstream and downstream address book range, and determining that abnormal member accounts exist in the upstream and downstream group chat, wherein the abnormal member accounts refer to group chat member accounts outside the visible range and the upstream and downstream address book range.
And under the condition that no abnormal member account exists in the upstream and downstream group chat, sending the group chat information of the upstream and downstream group chat to the first client based on the group chat information acquisition request.
The group chat information includes the number of group member accounts of the upstream group chat and the downstream group chat, information of the group member accounts, information of group main member accounts, and the like, and the group chat information is encrypted and then sent to the first client.
In summary, according to the method provided by the application, by receiving the interface call request sent by the first client, the first client in the intranet environment has the authority to call the data interaction interface of the extranet server under the condition that the interface call request passes, so that the first client can call the background service of the extranet server. After receiving a group chat creation request sent by a first client through a data interaction interface, generating an upstream group chat and a downstream group chat based on the group chat creation request, and solving the problem that an external network server cannot be called to create the upstream group and the downstream group in an internal network environment.
According to the method provided by the embodiment, the group chat update request is received, and the security verification is performed based on the group chat update request, so that the information update of the upstream group chat and the downstream group chat can be realized under the condition that the verification passes, and the efficiency and the security of the update process are ensured.
According to the method provided by the embodiment, the group chat information acquisition request is received, the security verification is carried out based on the group chat information acquisition request, and the group chat information can be sent to the first client under the condition that the verification is passed, so that the first client can check the upstream and downstream group chat information, and the efficiency and the security of the information transmission process are ensured.
Fig. 10 is a block diagram of a creation apparatus of an upstream and downstream group chat according to an exemplary embodiment of the present application, and the apparatus includes the following parts as shown in fig. 10.
The receiving module 1010 is configured to receive an interface call request sent by a first client, where the first client logs in to a first account, and the first client is in an intranet environment, where the interface call request is used for requesting to call a data interaction interface of an external network server, and the external network server is a server that is outside the intranet environment and is used for providing group management service;
The receiving module 1010 is further configured to receive, when the interface call request passes, a group chat creation request sent by the first client through the data interaction interface, where the group chat creation request is used to request creation of an upstream group chat and a downstream group chat, where the upstream group chat is a group chat including an upper account and a lower account, the upper account belongs to an upper enterprise in an upstream and a downstream, the lower account belongs to a lower enterprise in the upstream and the downstream, and the upstream and the downstream are used to indicate a relationship when service interaction is performed between enterprises, and the group chat creation request includes first information of the first account that initiates the group chat creation request;
and a group chat generating module 1020, configured to generate the upstream and downstream group chat based on the group chat creation request and send group chat information of the upstream and downstream group chat to the first client.
In an optional embodiment, the receiving module 1010 is further configured to generate interface call information and a call list, where the call list includes an account number with authority to obtain the interface call information, the interface call information includes an interface parameter required for invoking the data interaction interface, receive an interface call information viewing request sent by the first client, send the interface call information to the first client in response to an enterprise account number including an enterprise to which the first account number belongs in the call list, and receive the interface call request sent by the first client based on the interface call information.
In an alternative embodiment, the interface call request includes an input parameter when the interface is called;
the receiving module 1010 is further configured to receive the group chat creation request sent by the first client through the data interaction interface when the interface parameter in the interface call information matches the input parameter in the interface call request.
In an optional embodiment, the group chat generating module 1020 is further configured to obtain first creation information based on the group chat creation request, where the first creation information is configured to indicate information configured when the first account creates the upstream and downstream group chat, and generate the upstream and downstream group chat and send the group chat information of the upstream and downstream group chat to the first client in response to the first creation information conforming to a condition for creating the upstream and downstream group chat.
In an optional embodiment, the first creation information includes the first information, a name of a first application used when creating the upstream and downstream group chat, and second information of group member accounts in the upstream and downstream group chat;
The group chat generation module 1020 is further configured to determine that the first application is an upstream and downstream sharing application based on a name of the first application, obtain, in response to the first application being the upstream and downstream sharing application, a visible range of the first application, where the visible range includes an account sharing the first application, obtain upper and lower level information of the first account, where the upper and lower level information is used to indicate that the first account belongs to an upper level account or a lower level account, obtain, in response to the first account being an upper level account, an upstream and downstream address book, where the upstream and downstream address book includes a plurality of upper level accounts and a plurality of lower level accounts, and where the accounts included in the upstream and downstream address book can request a management service from the external network server, generate, in response to the upstream and downstream address book and the visible range of the first application, the upstream and downstream group chat and send the group chat information of the upstream and downstream group chat to the first client.
In an optional embodiment, the group chat generating module 1020 is further configured to determine that the first account number and the group member account number in the upstream and downstream group chat belong to the visible range in response to the first account number and the group member account number in the upstream and downstream group chat existing in the upstream and downstream address book, determine that the first creation information meets the condition of creating the upstream and downstream group chat in response to the first account number and the group member account number in the upstream and downstream group chat belong to the visible range, and generate the upstream and downstream group chat and send the group chat information of the upstream and downstream group chat to the first client.
In an optional embodiment, the first creation information further includes information of a group main member account of the group chat creation request, where the group main member account is one of the first account and a group member account in the upstream group chat;
The group chat generating module 1020 is further configured to determine, when the group main member account of the upstream group chat is changed, that the changed group main member account belongs to an upper account or a lower account, and determine an on state of a member account information viewing function in response to the changed group main member account belonging to the lower account, where, when the member account information viewing function is on, account information can be viewed between the group member accounts in the upstream group chat and the downstream group chat, and the member account information viewing function is turned on or turned off by the first account, and generate the upstream group chat and the downstream group chat based on the group chat creation request and send the group chat information of the upstream group chat and the downstream group chat to the first client in response to the determination that the member account information viewing function is in the on state.
In an optional embodiment, the group chat generating module 1020 is further configured to generate the upstream and downstream group chat based on the group chat creation request, where the group member account of the upstream and downstream group chat includes the first application, the group chat information includes group member account name information, the group member account name information includes a name of the first application, and encrypt the group chat information of the upstream and downstream group chat and send the encrypted group chat information to the first client.
In an alternative embodiment, after the group chat generation module 1020, as shown in fig. 11, the apparatus further includes:
The group chat updating module 1030 is configured to receive a group chat updating request for the upstream and downstream group chat sent by the first client, where the group chat updating request is used to update group chat information of the upstream and downstream group chat, obtain first creation information based on the group chat updating request, determine, in response to the group member account of the upstream and downstream group chat including the first application and the first creation information conforming to an update upstream and downstream group chat condition, that update data indicated by the group chat updating request conforms to the update upstream and downstream group chat condition, where the update data includes at least one of updating a number of group member accounts of the upstream and downstream group chat, updating a name of the upstream and downstream group chat, and update the upstream and downstream group chat based on the update data if the update data conforms to the update upstream and downstream group chat condition.
In an alternative embodiment, after the group chat generation module 1020, the apparatus further comprises:
The group chat information acquisition module 1040 is configured to receive a group chat information acquisition request for the upstream group chat and the downstream group chat sent by the first client, where the group chat information acquisition request is used for requesting to acquire group chat information of the upstream group chat and the downstream group chat, acquire first creation information based on the group chat information acquisition request under the condition that the upstream group chat is not dispersed, where the first creation information includes a visible range of the first application, the visible range includes an account sharing the first application, respond to a condition that a group member account of the upstream group chat includes the first application and the first creation information accords with a condition of acquiring group chat information, acquire an upstream address book and a downstream address book including a plurality of upstream accounts and a plurality of downstream accounts, filter group members in the visible range and the upstream address book range, determine that there is an abnormality in the upstream group chat group member account, and send the abnormality to the account of the downstream group member account, and the upstream account is not in the upstream account, and send the abnormality to the first account.
In summary, in the device provided by the application, by receiving the interface call request sent by the first client, the first client in the intranet environment has the authority to call the data interaction interface of the extranet server under the condition that the interface call request passes, so that the first client can call the background service of the extranet server. After receiving a group chat creation request sent by a first client through a data interaction interface, generating an upstream group chat and a downstream group chat based on the group chat creation request, and solving the problem that an external network server cannot be called to create the upstream group and the downstream group in an internal network environment.
It should be noted that, the creation apparatus for upstream and downstream group chat provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for creating the upstream and downstream group chat provided in the foregoing embodiment and the method embodiment for creating the upstream and downstream group chat belong to the same concept, and detailed implementation processes of the device and the method embodiment are detailed and are not described herein.
Fig. 12 shows a block diagram of a computer device 1200 provided in accordance with an exemplary embodiment of the present application. The computer device 1200 may be a smart phone, tablet, MP3 player (Moving Picture Experts Group Audio Layer III, MPEG 3), MP4 (Moving Picture Experts Group Audio Layer IV, MPEG 4) player, notebook, or desktop. Computer device 1200 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, and the like.
In general, computer device 1200 includes a processor 1201 and a memory 1202.
Processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1201 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). Processor 1201 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor, which is a low-power processor for processing data in a standby state. In some embodiments, the processor 1201 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 1201 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 1202 may include one or more computer-readable storage media, which may be non-transitory. Memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1202 is used to store at least one instruction for execution by processor 1201 to implement the method of creation of upstream and downstream group chat provided by the method embodiments of the present application.
In some embodiments, computer device 1200 also includes other components, and those skilled in the art will appreciate that the structure illustrated in FIG. 12 is not limiting of computer device 1200, and may include more or less components than those illustrated, or may combine certain components, or employ a different arrangement of components.
Alternatively, the computer readable storage medium may include a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), a Solid state disk (SSD, solid STATE DRIVES), an optical disk, or the like. The random access memory may include resistive random access memory (ReRAM, RESISTANCE RANDOM ACCESS MEMORY) and dynamic random access memory (DRAM, dynamic Random Access Memory), among others. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The embodiment of the application also provides a computer device, which comprises a processor and a memory, wherein at least one instruction, at least one section of program, code set or instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the method for creating the upstream and downstream group chat according to any one of the embodiment of the application.
The embodiment of the application also provides a computer readable storage medium, wherein at least one instruction, at least one section of program, code set or instruction set is stored in the storage medium, and the at least one instruction, the at least one section of program, the code set or instruction set is loaded and executed by a processor to realize the creation method of the upstream and downstream group chat according to any one of the embodiments of the application.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions 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 performs the method for creating the upstream and downstream group chat according to any of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but rather, the application is to be construed as limited to the appended claims.

Claims (14)

1.一种上下游群聊的创建方法,其特征在于,所述方法包括:1. A method for creating an upstream and downstream group chat, characterized in that the method comprises: 接收第一客户端发送的接口调用请求,所述第一客户端登录有第一帐号,所述第一客户端处于内网环境下,所述接口调用请求用于请求调用外网服务器的数据交互接口,所述外网服务器是处于所述内网环境以外用于提供群管理服务的服务器;Receiving an interface call request sent by a first client, the first client having a first account logged in, the first client being in an intranet environment, the interface call request being used to request calling a data interaction interface of an external network server, the external network server being a server outside the intranet environment for providing group management services; 在所述接口调用请求通过的情况下,接收所述第一客户端通过所述数据交互接口发送的群聊创建请求,所述群聊创建请求用于请求创建上下游群聊,所述上下游群聊是指包含上级帐号和下级帐号的群聊,上级帐号属于上下游中的上级企业,所述下级帐号属于所述上下游中的下级企业,所述上下游用于指示企业之间进行业务交互时的关系,所述群聊创建请求中包括发起所述群聊创建请求的所述第一帐号的第一信息;In the case where the interface call request is passed, receiving a group chat creation request sent by the first client through the data interaction interface, the group chat creation request is used to request the creation of an upstream and downstream group chat, the upstream and downstream group chat refers to a group chat including an upper-level account and a lower-level account, the upper-level account belongs to an upper-level enterprise in the upstream and downstream, the lower-level account belongs to a lower-level enterprise in the upstream and downstream, the upstream and downstream are used to indicate the relationship between enterprises when performing business interaction, and the group chat creation request includes first information of the first account that initiates the group chat creation request; 基于所述群聊创建请求生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端。The upstream and downstream group chats are generated based on the group chat creation request, and group chat information of the upstream and downstream group chats is sent to the first client. 2.根据权利要求1所述的方法,其特征在于,所述接收第一客户端发送的接口调用请求,包括:2. The method according to claim 1, wherein the receiving the interface call request sent by the first client comprises: 生成接口调用信息和调用名单,所述调用名单中包含具有获取所述接口调用信息权限的帐号,所述接口调用信息中包含调用所述数据交互接口时所需的接口参数;Generate interface call information and a call list, wherein the call list contains accounts with permission to obtain the interface call information, and the interface call information contains interface parameters required when calling the data interaction interface; 接收所述第一客户端发送的接口调用信息查看请求;Receiving an interface call information viewing request sent by the first client; 响应于所述调用名单中包括所述第一帐号所属企业的企业帐号,将所述接口调用信息发送至所述第一客户端;In response to the calling list including the enterprise account of the enterprise to which the first account belongs, sending the interface calling information to the first client; 接收所述第一客户端基于所述接口调用信息发送的所述接口调用请求。Receive the interface calling request sent by the first client based on the interface calling information. 3.根据权利要求2所述的方法,其特征在于,所述接口调用请求中包含调用接口时的输入参数;3. The method according to claim 2, characterized in that the interface call request includes input parameters when calling the interface; 所述在所述接口调用请求通过的情况下,接收所述第一客户端通过所述数据交互接口发送的群聊创建请求,包括:When the interface call request is passed, receiving the group chat creation request sent by the first client through the data interaction interface includes: 在所述接口调用信息中的所述接口参数与所述接口调用请求中的所述输入参数匹配的情况下,接收所述第一客户端通过所述数据交互接口发送的所述群聊创建请求。When the interface parameters in the interface call information match the input parameters in the interface call request, the group chat creation request sent by the first client through the data interaction interface is received. 4.根据权利要求1所述的方法,其特征在于,所述基于所述群聊创建请求生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端,包括:4. The method according to claim 1, characterized in that the generating the upstream and downstream group chats based on the group chat creation request and sending the group chat information of the upstream and downstream group chats to the first client comprises: 基于所述群聊创建请求获取第一创建信息,所述第一创建信息用于指示所述第一帐号创建所述上下游群聊时所配置的信息;Acquire first creation information based on the group chat creation request, where the first creation information is used to indicate information configured when the first account creates the upstream and downstream group chats; 响应于所述第一创建信息符合创建上下游群聊条件,生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端。In response to the first creation information meeting a condition for creating an upstream and downstream group chat, the upstream and downstream group chat is generated and group chat information of the upstream and downstream group chat is sent to the first client. 5.根据权利要求4所述的方法,其特征在于,所述第一创建信息包含所述第一信息、创建所述上下游群聊时所使用的第一应用的名称和所述上下游群聊中的群成员帐号的第二信息;5. The method according to claim 4, characterized in that the first creation information includes the first information, the name of the first application used when creating the upstream and downstream group chat, and second information of the group member account in the upstream and downstream group chat; 所述响应于所述第一创建信息符合创建上下游群聊条件,生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端,包括:In response to the first creation information meeting the conditions for creating an upstream and downstream group chat, generating the upstream and downstream group chat and sending group chat information of the upstream and downstream group chat to the first client, comprises: 基于所述第一应用的名称确定所述第一应用是上下游共享应用的情况;Determining, based on the name of the first application, that the first application is an upstream and downstream shared application; 响应于所述第一应用是所述上下游共享应用,获取所述第一应用的可见范围,所述可见范围包含共享所述第一应用的帐号;In response to the first application being the upstream and downstream shared application, obtaining a visible scope of the first application, the visible scope including an account that shares the first application; 获取所述第一帐号的上下级信息,所述上下级信息用于指示所述第一帐号属于上级帐号或下级帐号的情况;Acquire superior and subordinate information of the first account, where the superior and subordinate information is used to indicate whether the first account is a superior account or a subordinate account; 响应于所述第一帐号为上级帐号,获取上下游通讯录,所述上下游通讯录包含多个上级帐号和多个下级帐号,所述上下游通讯录中包含的帐号能够向所述外网服务器请求管理服务;In response to the first account being a superior account, obtaining an upstream and downstream address book, the upstream and downstream address book comprising a plurality of superior accounts and a plurality of subordinate accounts, the accounts included in the upstream and downstream address book being able to request management services from the external network server; 基于所述上下游通讯录和所述第一应用的所述可见范围生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端。The upstream and downstream group chat is generated based on the upstream and downstream address books and the visible range of the first application, and group chat information of the upstream and downstream group chat is sent to the first client. 6.根据权利要求5所述的方法,其特征在于,所述基于所述上下游通讯录和所述第一应用的所述可见范围生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端,包括:6. The method according to claim 5, characterized in that the generating the upstream and downstream group chat based on the upstream and downstream address books and the visible range of the first application and sending the group chat information of the upstream and downstream group chat to the first client comprises: 响应于所述上下游通讯录中存在所述第一帐号和所述上下游群聊中的群成员帐号,确定所述第一帐号和所述上下游群聊中的群成员帐号属于所述可见范围的情况;In response to the first account and the group member accounts in the upstream and downstream group chat existing in the upstream and downstream address books, determining that the first account and the group member accounts in the upstream and downstream group chat belong to the visible range; 响应于所述第一帐号和所述上下游群聊中的群成员帐号属于所述可见范围,确定所述第一创建信息符合所述创建上下游群聊条件;In response to the first account and the group member accounts in the upstream and downstream group chat belonging to the visible range, determining that the first creation information meets the upstream and downstream group chat creation condition; 生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端。Generate the upstream and downstream group chat and send group chat information of the upstream and downstream group chat to the first client. 7.根据权利要求1至6任一所述的方法,其特征在于,所述第一创建信息中还包括所述群聊创建请求的群主成员帐号的信息,所述群主成员帐号是所述第一帐号和所述上下游群聊中的群成员帐号中的一种;7. The method according to any one of claims 1 to 6, characterized in that the first creation information also includes information of a group owner account of the group chat creation request, and the group owner account is one of the first account and a group member account in the upstream and downstream group chats; 所述基于所述群聊创建请求生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端,还包括:The generating the upstream and downstream group chats based on the group chat creation request and sending the group chat information of the upstream and downstream group chats to the first client further includes: 在所述上下游群聊的群主成员帐号发生更换的情况下,确定更换后的群主成员帐号属于上级帐号或下级帐号的情况;In the case where the group owner member account of the upstream and downstream group chat is changed, determining whether the changed group owner member account belongs to a superior account or a subordinate account; 响应于所述更换后的群主成员帐号属于下级帐号,确定成员帐号信息查看功能的开启状态,其中,在所述成员帐号信息查看功能开启的情况下,所述上下游群聊中的群成员帐号之间能够互相查看帐号信息,所述成员帐号信息查看功能由所述第一帐号开启或关闭;In response to the replaced group owner member account belonging to a subordinate account, determining a turning-on state of a member account information viewing function, wherein when the member account information viewing function is turned on, group member accounts in the upstream and downstream group chats can view each other's account information, and the member account information viewing function is turned on or off by the first account; 响应于所述确定成员帐号信息查看功能处于开启状态,基于所述群聊创建请求生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端。In response to determining that the member account information viewing function is in the turned-on state, the upstream and downstream group chats are generated based on the group chat creation request and group chat information of the upstream and downstream group chats is sent to the first client. 8.根据权利要求1至6任一所述的方法,其特征在于,所述基于所述群聊创建请求生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端,包括:8. The method according to any one of claims 1 to 6, characterized in that the generating the upstream and downstream group chats based on the group chat creation request and sending the group chat information of the upstream and downstream group chats to the first client comprises: 基于所述群聊创建请求生成所述上下游群聊,其中,所述上下游群聊的群成员帐号包括所述第一应用,所述群聊信息中包括群成员帐号名称信息,所述群成员帐号名称信息中包括所述第一应用的名称;generating the upstream and downstream group chat based on the group chat creation request, wherein the group member accounts of the upstream and downstream group chat include the first application, the group chat information includes group member account name information, and the group member account name information includes the name of the first application; 对所述上下游群聊的群聊信息进行加密并发送至所述第一客户端。The group chat information of the upstream and downstream group chats is encrypted and sent to the first client. 9.根据权利要求1至6任一所述的方法,其特征在于,所述基于所述群聊创建请求生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端之后,还包括:9. The method according to any one of claims 1 to 6, characterized in that after generating the upstream and downstream group chats based on the group chat creation request and sending the group chat information of the upstream and downstream group chats to the first client, it also includes: 接收所述第一客户端发送的针对所述上下游群聊的群聊更新请求,所述群聊更新请求用于对所述上下游群聊的群聊信息进行更新;receiving a group chat update request for the upstream and downstream group chats sent by the first client, wherein the group chat update request is used to update group chat information of the upstream and downstream group chats; 基于所述群聊更新请求获取第一创建信息;Acquire first creation information based on the group chat update request; 响应于所述上下游群聊的群成员帐号中包括所述第一应用且所述第一创建信息符合更新上下游群聊条件,确定所述群聊更新请求所指示的更新数据符合所述更新上下游群聊条件的情况,其中,所述更新数据包括对所述上下游群聊的群成员帐号数量进行更新、对所述上下游群聊的群主成员帐号进行更新和对所述上下游群聊的名称进行更新中的至少一种;In response to the group member accounts of the upstream and downstream group chats including the first application and the first creation information meeting the conditions for updating the upstream and downstream group chats, determining whether the update data indicated by the group chat update request meets the conditions for updating the upstream and downstream group chats, wherein the update data includes at least one of updating the number of group member accounts of the upstream and downstream group chats, updating the group owner member accounts of the upstream and downstream group chats, and updating the names of the upstream and downstream group chats; 在所述更新数据符合所述更新上下游群聊条件的情况下,基于所述更新数据对所述上下游群聊的群聊信息进行更新。When the update data meets the condition for updating the upstream and downstream group chats, the group chat information of the upstream and downstream group chats is updated based on the update data. 10.根据权利要求1至6任一所述的方法,其特征在于,所述基于所述群聊创建请求生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端之后,还包括:10. The method according to any one of claims 1 to 6, characterized in that after generating the upstream and downstream group chats based on the group chat creation request and sending the group chat information of the upstream and downstream group chats to the first client, it also includes: 接收所述第一客户端发送的针对所述上下游群聊的群聊信息获取请求,所述群聊信息获取请求用于请求获取所述上下游群聊的群聊信息;receiving a group chat information acquisition request for the upstream and downstream group chats sent by the first client, wherein the group chat information acquisition request is used to request to acquire the group chat information of the upstream and downstream group chats; 在所述上下游群聊未解散的情况下,基于所述群聊信息获取请求获取第一创建信息;其中,所述第一创建信息中包含所述第一应用的可见范围,所述可见范围包含共享所述第一应用的帐号;In the case where the upstream and downstream group chats are not dissolved, obtaining first creation information based on the group chat information acquisition request; wherein the first creation information includes a visible range of the first application, and the visible range includes an account that shares the first application; 响应于所述上下游群聊的群成员帐号中包括所述第一应用且所述第一创建信息符合获取群聊信息的条件,获取上下游通讯录,所述上下游通讯录包含多个上级帐号和多个下级帐号;In response to the group member accounts of the upstream and downstream group chat including the first application and the first creation information meeting the condition for obtaining group chat information, obtaining an upstream and downstream address book, the upstream and downstream address book including a plurality of upper-level accounts and a plurality of lower-level accounts; 过滤所述可见范围和所述上下游通讯录范围内的群成员帐号,确定所述上下游群聊中存在异常成员帐号的情况,所述异常成员帐号是指所述可见范围和所述上下游通讯录范围外的帐号;Filtering the group member accounts within the visible range and the upstream and downstream address book range to determine whether there are abnormal member accounts in the upstream and downstream group chat, wherein the abnormal member accounts refer to accounts outside the visible range and the upstream and downstream address book range; 在所述上下游群聊中不存在异常成员帐号的情况下,基于所述群聊信息获取请求将所述上下游群聊的群聊信息发送至所述第一客户端。In a case where there is no abnormal member account in the upstream and downstream group chats, group chat information of the upstream and downstream group chats is sent to the first client based on the group chat information acquisition request. 11.一种上下游群聊的创建装置,其特征在于,所述装置包括:11. A device for creating an upstream and downstream group chat, characterized in that the device comprises: 接收模块,用于接收第一客户端发送的接口调用请求,所述第一客户端登录有第一帐号,所述第一客户端处于内网环境下,所述接口调用请求用于请求调用外网服务器的数据交互接口,所述外网服务器是处于所述内网环境以外用于提供群管理服务的服务器;A receiving module, configured to receive an interface call request sent by a first client, wherein the first client has a first account logged in, the first client is in an intranet environment, and the interface call request is used to request to call a data interaction interface of an external network server, wherein the external network server is a server located outside the intranet environment and used to provide group management services; 所述接收模块,还用于在所述接口调用请求通过的情况下,接收所述第一客户端通过所述数据交互接口发送的群聊创建请求,所述群聊创建请求用于请求创建上下游群聊,所述上下游群聊是指包含上级帐号和下级帐号的群聊,上级帐号属于上下游中的上级企业,所述下级帐号属于所述上下游中的下级企业,所述上下游用于指示企业之间进行业务交互时的关系,所述群聊创建请求中包括发起所述群聊创建请求的所述第一帐号的第一信息;The receiving module is further configured to receive a group chat creation request sent by the first client through the data interaction interface when the interface call request passes, the group chat creation request being used to request the creation of an upstream and downstream group chat, the upstream and downstream group chat referring to a group chat including an upper-level account and a lower-level account, the upper-level account belonging to an upper-level enterprise in the upstream and downstream, the lower-level account belonging to a lower-level enterprise in the upstream and downstream, the upstream and downstream being used to indicate the relationship between enterprises when performing business interaction, the group chat creation request including first information of the first account initiating the group chat creation request; 群聊生成模块,用于基于所述群聊创建请求生成所述上下游群聊并将所述上下游群聊的群聊信息发送至所述第一客户端。A group chat generation module is used to generate the upstream and downstream group chats based on the group chat creation request and send group chat information of the upstream and downstream group chats to the first client. 12.一种计算机设备,其特征在于,所述计算机设备包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如权利要求1至10任一所述的上下游群聊的创建方法。12. A computer device, characterized in that the computer device includes a processor and a memory, the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for creating an upstream and downstream group chat as described in any one of claims 1 to 10. 13.一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如权利要求1至10任一所述的上下游群聊的创建方法。13. A computer-readable storage medium, characterized in that at least one program is stored in the storage medium, and the at least one program is loaded and executed by a processor to implement the method for creating an upstream and downstream group chat as described in any one of claims 1 to 10. 14.一种计算机程序产品,其特征在于,包括计算机程序,所述计算机程序被处理器执行时实现如权利要求1至10任一所述的上下游群聊的创建方法。14. A computer program product, characterized in that it comprises a computer program, and when the computer program is executed by a processor, it implements the method for creating an upstream and downstream group chat according to any one of claims 1 to 10.
CN202410069658.1A 2024-01-17 2024-01-17 Method, device, equipment, medium and program product for creating upstream and downstream group chat Pending CN120342988A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410069658.1A CN120342988A (en) 2024-01-17 2024-01-17 Method, device, equipment, medium and program product for creating upstream and downstream group chat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410069658.1A CN120342988A (en) 2024-01-17 2024-01-17 Method, device, equipment, medium and program product for creating upstream and downstream group chat

Publications (1)

Publication Number Publication Date
CN120342988A true CN120342988A (en) 2025-07-18

Family

ID=96364249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410069658.1A Pending CN120342988A (en) 2024-01-17 2024-01-17 Method, device, equipment, medium and program product for creating upstream and downstream group chat

Country Status (1)

Country Link
CN (1) CN120342988A (en)

Similar Documents

Publication Publication Date Title
US11627198B2 (en) Resource access based on supervisory-subordinate relationship
CN106998329B (en) File sharing method and device
US10063547B2 (en) Authorization authentication method and apparatus
CN105659558B (en) Computer implemented method, authorization server and computer-readable memory
JP7491967B2 (en) Apparatus and method for managing external permission grants and external messaging communication requests in a group-based communication system - Patents.com
US8340275B1 (en) Selective contact between customers and customer service agents
US11757811B2 (en) System and method for processing user messages among organizations
CN104221039A (en) Presenting metadata from multiple perimeters
US20230379276A1 (en) System and Method for Processing Messages from an External Communication Platform
JP7325590B2 (en) Authorizations associated with external shared communication resources
US20140173706A1 (en) Apparatus and data processing systems for accessing an object
US9516009B2 (en) Authenticating redirection service
US11012394B2 (en) Method and system for providing social media using partition function
CN109565518A (en) Interchangeable content retrieval
US12166889B2 (en) Blockchain-based communication systems and methods
CN113420133A (en) Session processing method, device, equipment and storage medium
US10530729B2 (en) Video retrieval
CN120342988A (en) Method, device, equipment, medium and program product for creating upstream and downstream group chat
JP2023042204A (en) Information processing program, information processing method, and information processing apparatus
CN114978702B (en) Account management method, platform and system, computing device and readable storage medium
US9374332B2 (en) Distribution list creation and subscription
US11411756B2 (en) System and method for providing secure cloud-based access and control of cloud based content sources to community devices via federated authorization and personal devices
CN120216798A (en) User management method, electronic device, storage medium and product
HK40052343A (en) A session processing method, device, equipment and storage medium
CN120301719A (en) A method and device for controlling communication rights in a conference

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication