CN114844860A - WeChat enterprise number processing method, device, equipment and medium - Google Patents
WeChat enterprise number processing method, device, equipment and medium Download PDFInfo
- Publication number
- CN114844860A CN114844860A CN202210461221.3A CN202210461221A CN114844860A CN 114844860 A CN114844860 A CN 114844860A CN 202210461221 A CN202210461221 A CN 202210461221A CN 114844860 A CN114844860 A CN 114844860A
- Authority
- CN
- China
- Prior art keywords
- enterprise number
- callback
- application
- micro
- sub
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention provides a method, a device, equipment and a medium for processing a WeChat enterprise number. The method comprises the following steps: receiving a callback event message of a WeChat enterprise number, wherein the WeChat enterprise number is a WeChat enterprise number of a subsidiary company belonging to the group, a URL (uniform resource locator) address corresponding to the callback event message is an ULR (ultra low ring) address of the group system, and the callback event message comprises a callback event and application parameters; determining a target sub-company system according to the application parameters, the callback configuration information of each micro-signal enterprise number and the incidence relation between the micro-signal enterprise number and the sub-company system, wherein the callback configuration information is the application parameters configured in the URL address bar under the callback mode of each micro-signal enterprise number; and forwarding the callback event message to the target sub-company system according to the callback message forwarding address of the target sub-company system. The method of the invention realizes the unified management of the WeChat enterprise number of the subsidiary companies of the group.
Description
Technical Field
The invention relates to a management system, in particular to a method, a device, equipment and a medium for processing a WeChat enterprise number.
Background
WeChat enterprise numbers are mobile services that WeChat provides to enterprise customers and are intended to provide enterprise mobile application portals. The system can help enterprises establish connection among employees, upstream and downstream supply chains and enterprise IT systems.
The existing management system of the WeChat enterprise number only supports the management work of a single WeChat enterprise number and does not support the cooperative and unified management of a plurality of enterprise numbers. For example, due to limitations of enterprise wechat flow mechanisms: the single application of one micro-signal enterprise number can only configure one callback address, under the condition that a group system and a sub-company system exist at the same time, one micro-signal can only be managed by the corresponding sub-company system and cannot be simultaneously notified to the group system and the sub-company system, and if the group system takes over the micro-signal enterprise number, the sub-companies cannot keep relative independence.
Therefore, it is desirable to provide a method for processing a micro-telecommunication enterprise number, which realizes unified management of the micro-telecommunication enterprise number at a group level and simultaneously retains relative independence of the micro-telecommunication enterprise numbers of the sub-companies.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for processing a micro-message enterprise number, which are used for at least solving the problems that the conventional scheme does not support the cooperative unified management of a plurality of micro-message enterprise numbers and a subsidiary company system cannot keep relative independence.
In a first aspect, the present invention provides a method for processing a wechat enterprise number, including:
receiving a callback event message of a WeChat enterprise number, wherein the WeChat enterprise number is a WeChat enterprise number of a subsidiary company belonging to the group, a URL (uniform resource locator) address corresponding to the callback event message is an ULR (ultra Large Scale Reproduction) address of the group system, and the callback event message comprises a callback event and application parameters;
determining a target sub-company system according to the application parameters, the callback configuration information of each micro-signal enterprise number and the incidence relation between the micro-signal enterprise number and the sub-company system, wherein the callback configuration information is the application parameters configured in the URL address bar under the callback mode of each micro-signal enterprise number;
and forwarding the callback event message to the target subsidiary system according to the callback message forwarding address of the target subsidiary system, wherein the group system configures the callback message forwarding address for each subsidiary system in advance.
In one possible design, the determining a target sub-company system according to the application parameter, the callback configuration information of each micro-signal enterprise number, and the corresponding relationship between the micro-signal enterprise number and the sub-company system includes:
determining a target micro-signal enterprise number corresponding to an application parameter matched with the application parameter included in the callback event message in the application parameters included in the callback configuration information of each micro-signal enterprise number;
and acquiring a target sub-company system associated with the target micro-signal enterprise number according to the association relationship between the micro-signal enterprise number and the sub-company system.
In one possible design, when the WeChat Enterprise number is in callback mode; and the address bar of the WeChat enterprise number is configured with a URL (Uniform resource locator) address of the group system, and application parameters corresponding to the application of the WeChat enterprise number are set behind the URL address, wherein the application parameters comprise an application identifier and an application address.
In one possible design, the method further includes:
acquiring an application message from an application packaging interface of the WeChat enterprise number, wherein the group system respectively packages a plurality of application interfaces of the WeChat enterprise number in advance to obtain a packaging interface of each application, and the subsidiary company accesses the application of the WeChat enterprise number through the packaging interfaces;
acquiring a target application of the WeChat enterprise number according to the corresponding relation between the packaging interface and the application;
and updating the data of the target application of the subsidiary company according to the application message so as to realize the data consistency of the group system and the subsidiary company system.
In one possible design, the method further includes:
when a request message is obtained, generating N sub-requests according to the number N of the sub-companies managed by the group system, wherein N is an integer larger than 1, and the managed sub-companies are the sub-companies of the group system, and the parameter information of the micro-telecommunication enterprise number is input;
sending each sub-request to an application packaging interface of the micro-signal enterprise number of the corresponding sub-company according to the parameter information of the micro-signal enterprise number;
wherein, the request message is a tag data modification request or a welcome language push request.
In one possible design, the parameter information includes: an access token for invoking an interface, the method further comprising:
and synchronizing the access token of the WeChat enterprise number of the subsidiary company of the group system according to a preset period so as to call the packaging interface.
In one possible design, the method further includes:
acquiring an H5 page configuration request sent by a WeChat enterprise number of a subsidiary company, wherein the H5 page configuration request comprises a URL (uniform resource locator) address of an H5 page;
and establishing the association relationship between the H5 page and the subsidiary company, and setting the H5 page as a page accessible by a mobile phone end of the group system.
In one possible design, the group system mobile phone is used to input a web access request, where the web access request includes a URL of a H5 page and encrypted user information; and the WeChat enterprise number of the subsidiary company is used for decrypting the encrypted user information and acquiring the user information, and when the user information is correct, the mobile phone terminal of the group system is allowed to display an H5 page.
In a second aspect, the present invention provides an apparatus for processing a wechat enterprise number, which is applied to a corporate system, and the apparatus includes:
the receiving module is used for receiving a callback event message of a micro-telecom enterprise number, wherein the micro-telecom enterprise number is a micro-telecom enterprise number of a subsidiary company belonging to the group, a URL (uniform resource locator) address corresponding to the callback event message is an ULR (ultra low resolution ratio) address of the group system, and the callback event message comprises a callback event and application parameters;
the processing module is used for determining a target sub-company system according to the application parameters, the callback configuration information of each micro-signal enterprise number and the incidence relation between the micro-signal enterprise number and the sub-company system, wherein the callback configuration information is the application parameters configured in the URL address bar under the callback mode of each micro-signal enterprise number;
and the forwarding module is used for forwarding the callback event message to the target subsidiary system according to the callback message forwarding address of the target subsidiary system, wherein the group system configures the callback message forwarding address for each subsidiary system in advance.
In a third aspect, the present invention provides a device for processing a wechat enterprise number, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory to cause the at least one processor to perform a method of processing a WeChat enterprise number.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for handling a WeChat Enterprise number.
The invention provides a method, a device, equipment and a medium for processing a WeChat enterprise number, wherein the method comprises the steps of calling back an event message through a group system WeChat enterprise number, wherein the WeChat enterprise number is a WeChat enterprise number of a subsidiary company belonging to a group, a URL (Uniform resource locator) address corresponding to the calling back event message is an ULR (ultra low-resolution ratio) address of the group system, namely the URL address of the WeChat enterprise number is uniformly modified into the ULR address of the group system, and the calling back event message comprises a calling back event and an application parameter; the group system determines a target sub-company system according to the application parameters, the callback configuration information of each micro-telecommunication enterprise number and the incidence relation between the micro-telecommunication enterprise number and the sub-company system, wherein the callback configuration information is the application parameters configured in the URL address bar under the callback mode of each micro-telecommunication enterprise number; on the basis of modifying the URL address of the WeChat enterprise number, the group system can have the capability of receiving the callback event message of the WeChat enterprise number by the application parameters configured in the URL address column; the group system determines a target sub-company system through the incidence relation between the micro-signal enterprise number and the sub-company system, and achieves the purpose of forwarding the callback event of the micro-signal enterprise number to the sub-company system through the group system, so that the cooperative unified management of a plurality of micro-signal enterprise numbers is supported, and the sub-company system keeps relative independence.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram of a processing architecture of a wechat enterprise number according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a workbench interface of a wechat enterprise number according to an embodiment of the present invention;
fig. 3 is a first flowchart of a method for processing a wechat enterprise number according to an embodiment of the present invention;
FIG. 4 is a diagram of a URL address configuration and key configuration provided by an embodiment of the present invention;
fig. 5 is a flowchart of a method for processing a wechat enterprise number according to an embodiment of the present invention;
fig. 6 is a flowchart three of a method for processing a wechat enterprise number according to an embodiment of the present invention;
fig. 7 is a fourth flowchart of a method for processing a wechat enterprise number according to an embodiment of the present invention;
fig. 8 is a block diagram of a device for processing a wechat enterprise number according to an embodiment of the present invention;
fig. 9 is a hardware schematic diagram of a device for processing a wechat enterprise signal according to an embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a schematic diagram of a processing architecture of a wechat enterprise number according to an embodiment of the present invention; fig. 2 is a schematic view of a workbench interface of a wechat enterprise number according to an embodiment of the present invention. As shown in fig. 1, the processing framework provided by the present embodiment includes a terminal and a server. The terminal can be a mobile phone, a tablet, a computer and other devices which can interact with a user. For example, the terminal may be the computer 101 and/or the mobile phone 102 shown in fig. 1. The computer 101 may communicate with a server 103. The handset 102 may communicate with a server 103.
As shown in fig. 2, the terminal may be configured to display a workbench interface of the wechat enterprise number, where the workbench interface includes an "all applications" option and an "efficiency tool" option, and the all applications include applications such as meeting, live broadcasting, welcoming, adding contacts and tags, and the like. For the application, the URL address of the application callback can be set in the callback mode of the WeChat enterprise number, so that the callback event information of the application is fed back to the corresponding URL address.
In the prior art, when an application of a wechat enterprise number generates a callback event message, the callback event message can be sent to a server 103 corresponding to a URL address only according to the URL address corresponding to the application, that is, the callback event message can be received only by a single sub-company system or a group system, and corresponding management is performed, so that the group system and the sub-company system cannot be notified at the same time; or only the group system receives the callback event message and performs corresponding management, so that the micro-message enterprise number of the sub-company system loses relative independence.
In the embodiment of the present invention, the server 103 may deploy data from a corporate system or a sub-corporate system, and the like, as a server of the corporate system or the sub-corporate system. In the embodiment of the invention, the URL address of the group system is configured in the callback mode of the micro-telecommunication enterprise number of the sub-company system, the application parameter is added behind the URL address, and the application parameter is associated with the micro-telecommunication enterprise number, so that the URL address of the group system can receive the callback event information, and the micro-telecommunication enterprise number of the corresponding sub-company can be determined according to the application parameter. Furthermore, a callback message forwarding address is configured for each sub-company system, so that the callback event information is forwarded to the sub-company system corresponding to the micro-message enterprise number according to the callback message forwarding address, the group system and the sub-company system can receive the callback event information and perform corresponding management, and meanwhile, the micro-message enterprise numbers of the sub-company systems are relatively independent.
The following describes the technical solution of the present invention and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 3 is a first flowchart of a method for processing a wechat enterprise number according to an embodiment of the present invention. The execution subject of the method provided in this embodiment may be the server in fig. 1 or another server, and this embodiment is not particularly limited herein. As shown in fig. 3, the method includes:
s301, receiving a callback event message of a WeChat enterprise number, wherein the WeChat enterprise number is a WeChat enterprise number of a subsidiary company belonging to the group, a URL (uniform resource locator) address corresponding to the callback event message is an ULR (ultra low ring) address of the group system, and the callback event message comprises a callback event and application parameters.
When the application in the WeChat enterprise number of the sub-company of the group changes, the callback event message of the WeChat enterprise number is triggered. For example, when the address book of the WeChat enterprise number changes, a callback event message is triggered. And the URL address corresponding to the callback event message is the URL address of the group system, so that the group system can receive the callback event message of the micro-message enterprise number.
The callback event message comprises a callback event and application parameters. The callback event is, for example, the event that the address book changes. The application parameters may include an application identification and an application address.
For example, the application identification is AppId and the application address is AgentId. Wherein AgentId is an authorized address of a subsidiary system, and is used for marking the WeChat enterprise numbers of different subsidiary systems and skipping of authorized URL addresses; the AppId can be checked at the management end of the WeChat enterprise number, and the different AppIds indicate different applications, for example, the AppId of the address list is different from that of the label.
Those skilled in the art will appreciate that the URL address of the callback event message may be set in advance. Fig. 4 is a diagram of URL address configuration and key configuration according to an embodiment of the present invention. As shown in fig. 4, the URL address of the callback event message is set in the application management interface.
Specifically, when the wechat enterprise number is in the callback mode, the wechat enterprise number enters an application management interface, a URL address of the group system can be configured in a URL configuration item of the application management interface, and application parameters corresponding to the application of the wechat enterprise number, such as the application identifier and the application address, are set behind the URL address. Therefore, the group system identifies which application of the micro-telecommunication enterprise number generates a callback event by identifying application parameters corresponding to the application of the micro-telecommunication enterprise number added after the URL address; the URL address is used for receiving a callback event message in a callback process, and the URL address is a publicly accessible address.
Specifically, the application management interface further includes a setting module, which is capable of setting a request Token and an encryption and decryption parameter EncodingAESKey, where the request Token is a key for opening an application of the wechat enterprise number when the wechat enterprise number is in a callback mode, the group system may access the URL address when the request Token matches correctly, and the encryption and decryption parameter EncodingAESKey is a key for encrypting and decrypting in a process of transmitting data including a callback event message, so as to prevent data from being intercepted and leaked in a transmission process.
S302, determining a target sub-company system according to the application parameters, the callback configuration information of each micro-signal enterprise number and the incidence relation between the micro-signal enterprise number and the sub-company system, wherein the callback configuration information is the application parameters configured in the URL address bar under the callback mode of each micro-signal enterprise number.
Specifically, in the application parameters included in the callback configuration information of each micro-telecom enterprise number, determining a target micro-telecom enterprise number corresponding to the application parameter matched with the application parameter included in the callback event message; and acquiring a target sub-company system associated with the target micro-signal enterprise number according to the association relationship between the micro-signal enterprise number and the sub-company system.
The application parameters are the application parameters in the callback event message corresponding to the micro-telecommunication enterprise number in the callback mode, and when the application parameters are consistent with the application parameters configured in the URL address bar, the group system can accurately position the micro-telecommunication enterprise number with the changed specific application; and the group system can confirm which sub-company system the micro-message enterprise number currently positioned belongs to according to the incidence relation between the micro-message enterprise number previously recorded in the group system and the sub-company system.
S303, forwarding the callback event message to the target sub-company system according to the callback message forwarding address of the target sub-company system, wherein the group system configures the callback message forwarding address for each sub-company system in advance.
Specifically, the group system sets a respective corresponding callback message forwarding address for each of the sub-company systems in advance, and is configured to send the callback event message to the corresponding sub-company system after the callback event message of the micro-signal enterprise number is received at S301 and after it is determined to which sub-company system the callback event message belongs at S302, and receive the callback event message by using the callback message forwarding and receiving address pre-configured in the sub-company system.
In the specific implementation process, because the group system corresponds to a plurality of subsidiary systems, the situation that the message cannot be forwarded in time exists, after the group system receives the callback event message of the WeChat enterprise number, the callback event message is added into the kafka message queue, and the kafka message queue including the callback event message is encrypted through the encryption and decryption parameter EncodingAESKey acquired by the group system;
subscribing the encrypted kafka message queue through a group system, decrypting the encrypted kafka message queue through an encryption and decryption parameter EncodingAESKey, determining which WeChat enterprise number corresponds to the application identification and the application address in the kafka message queue according to information contained in the decrypted kafka message queue, encrypting the callback event through the encryption and decryption parameter EncodingAESKey according to a subsidiary system corresponding to the WeChat enterprise number, encrypting the callback event to be sent in the kafka message queue through the encryption and decryption parameter EncodingAESKey again, and sending the encrypted callback event to a corresponding specific subsidiary system.
In the process of data interaction, the encryption and decryption parameter EncodingAESKey is used for encrypting or decrypting data, so that the security of the data is ensured.
In the embodiment of the invention, the group system acquires the application change of the micro message enterprise number corresponding to the sub-company system by receiving the callback event message of the micro message enterprise number; the URL address corresponding to the callback event message is the URL address of the group system, the application parameter corresponding to the application of the WeChat enterprise number is set behind the URL address, and the incidence relation between the WeChat enterprise number and the sub-company system is set in the group system, so that the corresponding sub-company system can be searched according to the application parameter corresponding to the application of the WeChat enterprise number behind the URL address corresponding to the callback event message and the incidence relation between the WeChat enterprise number and the sub-company system; a callback message forwarding address is also arranged in the group system, so that callback message forwarding can be realized when a corresponding subsidiary system is found; in other words, in the embodiment of the present invention, while the group system receives the micro-message enterprise number of the management company system, the group system can also send the application change of the micro-message enterprise number to the corresponding sub-company system, that is, both the group system and the sub-company system can receive the callback event message and perform corresponding management, and meanwhile, the micro-message enterprise number of the sub-company system has relative independence.
Fig. 5 is a flowchart of a method for processing a wechat enterprise number according to an embodiment of the present invention. As shown in fig. 5, the method includes:
s501, obtaining application information from the packaging interface of the application of the WeChat enterprise number, wherein the group system respectively packages a plurality of application interfaces of the WeChat enterprise number in advance to obtain the packaging interface of each application, and the subsidiary company accesses the application of the WeChat enterprise number through the packaging interface.
The sub-company system does not perform information interaction with the micro-message enterprise number through the packaging interface of the application packaged in the micro-message enterprise number originally, the group system respectively packages a plurality of application interfaces of the micro-message enterprise number in advance, and the sub-company system can access the application of the micro-message enterprise number through the application interface packaged secondarily by the group system while ensuring that the sub-company system can access the application of the micro-message enterprise number.
S502, acquiring the target application of the WeChat enterprise number according to the corresponding relation between the packaging interface and the application.
When the encapsulation interface of the application of the WeChat enterprise number is encapsulated in the group system, the corresponding relation between the encapsulation interface and the application is also established, and support is provided for subsequently calling the interface and searching the corresponding target application.
Therefore, the target application accessed by the WeChat enterprise number can be obtained according to the corresponding relation between the encapsulation interface and the application.
S503, updating the data of the target application of the subsidiary company according to the application message so as to realize the data consistency of the group system and the subsidiary company system.
The corresponding target application found through the packaging interface can obtain the application message, and the subsidiary company can update the corresponding data according to the application message;
optionally, the execution subject described in S501 to S503 is a group system, which indicates that the group system can actively access the application encapsulation interface of the WeChat enterprise number and implement application data operation of the subsidiary system, and in addition, the subsidiary system can also actively initiate an access request for application data to the group system, implement data update of the subsidiary system through the group system and the application encapsulation interface encapsulated by the group system, and maintain relative independence of the subsidiary system.
In one possible implementation, the access tokens of the WeChat enterprise numbers of the subsidiaries of the group system are synchronized according to a preset period, so as to call the encapsulated application interfaces.
Specifically, the access token comprises an accesstken, the group system obtains the authority of obtaining the access token of the WeChat enterprise number of the sub-company system through the parameter information of the WeChat enterprise number, and performs periodic synchronization, so that the updated access token can be obtained in time when access is needed each time, and smooth access is ensured.
In this embodiment, the packaged interface is re-packaged by the group system, so that the sub-company system can access the application of the micro-message enterprise number according to the packaged interface of the group system, the capability of the sub-company system to manage the micro-message enterprise number of the sub-company system is reserved, real-time data maintenance through the sub-company system is ensured, and the relative independence of the sub-company system is reserved.
The group system may also perform unified data management or modification on a plurality of sub-company systems at the same time, and fig. 6 is a flowchart of a method for processing a wechat enterprise number according to an embodiment of the present invention. As shown in fig. 6, the method includes:
s601, when the request message is obtained, generating N sub-requests according to the number N of the sub-companies managed by the group system, wherein N is an integer larger than 1, and the managed sub-companies are the sub-companies of the group system, and the parameter information of the micro-telecommunication enterprise number is input into the sub-companies.
The group system completes the configuration of the various parameters and addresses in advance and can send a request message to the WeChat enterprise number; and generating N sub-requests in the group system according to the request message to be sent and the number N of the sub-companies managed by the group system, and sending each sub-request to the sub-company system and each micro-message enterprise number thereof to complete the corresponding request.
S602, sending each sub-request to an application packaging interface of the micro-signal enterprise number of the corresponding sub-company according to the parameter information of the micro-signal enterprise number;
wherein, the request message is a tag data modification request or a welcome language push request.
The request message provided by the present embodiment may be various messages for an application. For example, a tag data modification request or a welcome push request.
Taking the request message as a tag data modification request as an example, after the group system sends the tag data modification request message, the tag data modification request is sent to the application of the micro-telecommunication enterprise number according to the application identifier of the micro-telecommunication enterprise number. Specifically, the tag data modification request is encrypted according to an encryption and decryption parameter, accesstken, the encrypted request is sent to an API interface of a micro-message enterprise number re-packaged by the group system, then all the micro-message enterprise numbers decrypt the request, and after decryption is successful, the tag of the application of the corresponding micro-message enterprise number is changed according to the request sent by the group system, for example, the parameter a of the tag is modified into b.
Taking the request message as a welcome push request as an example, when a group system receives an event of adding an external contact person, according to a URL address corresponding to a member label of the external contact person, welcome language materials corresponding to the external contact person are inquired, according to parameter information of a WeChat enterprise number corresponding to the external contact person, a WeChat enterprise number to which the corresponding welcome language is sent is determined, and the welcome language is sent to an application packaging interface of the WeChat enterprise number of the corresponding subsidiary company after the determination, so that the purpose of uniform sending is achieved.
In the embodiment of the invention, the group system performs related actions including application data modification and data transmission by sending the request message, thereby realizing the unified management and modification of the subsidiary system and the WeChat enterprise number thereof.
Fig. 7 is a fourth flowchart of a method for processing a wechat enterprise number according to an embodiment of the present invention.
As shown in fig. 7, the method for processing the wechat enterprise number according to the embodiment of the present invention further includes the following steps:
s701, acquiring an H5 page configuration request sent by a WeChat enterprise number of a subsidiary company, wherein the H5 page configuration request comprises a URL address of an H5 page.
In practical use, for convenience of user operation, a function of browsing and operating at a mobile phone end is generally set, for example, in this embodiment, when a micro-signal enterprise number of a sub-company is already configured for group system management, a display of a page needs to be reconfigured, and a group system acquires an H5 page configuration request sent by the micro-signal enterprise number of the sub-company, and can perform H5 page configuration.
S702, establishing the association relationship between the H5 page and the subsidiary company, and setting the H5 page as a page accessible by a mobile phone end of the group system.
The association relationship between the H5 page and the subsidiaries is established, a basis can be provided for the subsequent group system to configure the H5 page of the WeChat enterprise number corresponding to the specific subsidiaries, the H5 page is set as a page accessible by the mobile phone end of the group system, and the group system can have the configuration authority.
After basic configuration, the group system mobile phone end is used for inputting a webpage access request, wherein the webpage access request comprises a URL (uniform resource locator) of an H5 page and encrypted user information; and the WeChat enterprise number of the subsidiary company is used for decrypting the encrypted user information and acquiring the user information, and when the user information is correct, the mobile phone terminal of the group system is allowed to display an H5 page.
Specifically, a group system acquires an H5 page configuration request sent by a WeChat enterprise number of a sub-company, acquires user information of a requester through an access token of the WeChat enterprise number of the sub-company which is recorded into the group system, adds a timestamp to the user information, performs RSA encryption on the user information added with the timestamp to obtain encrypted user information, can perform page jump according to a URL of an H5 page and the encrypted user information, decrypts the encrypted user information through the sub-company system after the page jump to the sub-company system, and displays a corresponding H5 page in a mobile phone terminal of the group system according to the decryption information and the established association relationship between the H5 page and the sub-company.
In this embodiment, the H5 page of the sub-company system is configured in the mobile phone end of the group system, so that the group system can perform unified display and management through the mobile end.
In summary, the embodiment of the present invention can embody a unified management of multiple WeChat enterprise numbers, and ensure that tag data or welcome words, etc. can be modified in a unified manner through a group system; the callback event of the WeChat enterprise number can be fed back to the subsidiary company system in real time through the group system; meanwhile, the capability of independently completing the business iteration of the WeChat enterprise by the subsidiary system is reserved, and the innovation vitality of the subsidiary can be stimulated to the maximum extent.
Fig. 8 is a structural diagram of a device for processing a wechat enterprise number according to an embodiment of the present invention. As shown in fig. 8, the apparatus includes: a receiving module 801, a processing module 802 and a forwarding module 803;
a receiving module 801, configured to receive a callback event message of a wechat enterprise number, where the wechat enterprise number is a wechat enterprise number of a subsidiary company belonging to the group, a URL address corresponding to the callback event message is an ULR address of the group system, and the callback event message includes a callback event and an application parameter.
Setting the micro message enterprise number in a callback mode before receiving a callback event message through the receiving module 801;
and configuring a URL (Uniform resource locator) address of the group system in an address bar corresponding to the callback mode, and adding application parameters corresponding to the application of the WeChat enterprise number after the URL address, wherein the application parameters comprise an application identifier and an application address.
The processing module 802 is configured to determine a target sub-company system according to the application parameter, the callback configuration information of each micro-signal enterprise number, and the association relationship between the micro-signal enterprise number and the sub-company system, where the callback configuration information is the application parameter configured in the URL address bar in the callback mode of each micro-signal enterprise number.
The callback event message is also used for determining a target micro-telecommunication enterprise number corresponding to the application parameter matched with the application parameter included in the callback event message in the application parameters included in the callback configuration information of each micro-telecommunication enterprise number;
and acquiring a target sub-company system associated with the target micro-signal enterprise number according to the association relationship between the micro-signal enterprise number and the sub-company system.
A forwarding module 803, configured to forward the callback event message to the target company subsystem according to the callback message forwarding address of the target company subsystem, where the group system configures a callback message forwarding address for each company subsystem in advance.
The receiving module 801 is further configured to obtain an application message from an encapsulation interface of the application of the wechat enterprise number, where the group system encapsulates a plurality of application interfaces of the wechat enterprise number in advance, respectively, to obtain an encapsulation interface of each application, and the subsidiary company accesses the application of the wechat enterprise number through the encapsulation interface.
The processing module 802 is further configured to obtain a target application of the wechat enterprise number according to a corresponding relationship between the encapsulation interface and the application;
the forwarding module 803 is further configured to update data of a target application of the subsidiary according to the application message, so as to achieve data consistency between the group system and the subsidiary system.
The processing module 802 is further configured to generate N sub-requests according to the number N of the sub-companies managed by the group system when the request message is obtained, where N is an integer greater than 1, and the managed sub-companies are the sub-companies for inputting the parameter information of the micro-telecommunication enterprise number into the group system;
sending each sub-request to an application packaging interface of the micro-signal enterprise number of the corresponding sub-company according to the parameter information of the micro-signal enterprise number;
wherein, the request message is a tag data modification request or a welcome language push request.
Fig. 9 is a hardware schematic diagram of a device for processing a wechat enterprise signal according to an embodiment of the present invention. As shown in fig. 9, the apparatus 90 for processing a wechat enterprise number provided in the present embodiment includes: at least one processor 901 and memory 902. The device 90 also includes a communication component 903. The processor 901, the memory 902, and the communication section 903 are connected by a bus 904.
In a specific implementation process, the at least one processor 901 executes the computer executable instructions stored in the memory 902, so that the at least one processor 901 performs the above method for processing the wechat enterprise number.
For a specific implementation process of the processor 901, reference may be made to the above method embodiments, which implement principles and technical effects are similar, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 9, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for processing the wechat enterprise number as described above is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the units is only a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Claims (11)
1. A method for processing WeChat enterprise numbers is applied to a group system, and comprises the following steps:
receiving a callback event message of a WeChat enterprise number, wherein the WeChat enterprise number is a WeChat enterprise number of a subsidiary company belonging to the group, a URL (uniform resource locator) address corresponding to the callback event message is an ULR (ultra low ring) address of the group system, and the callback event message comprises a callback event and application parameters;
determining a target sub-company system according to the application parameters, callback configuration information of each micro-telecommunication enterprise number and the incidence relation between the micro-telecommunication enterprise number and the sub-company system, wherein the callback configuration information is the application parameters configured in the URL address bar under the callback mode of each micro-telecommunication enterprise number;
and forwarding the callback event message to the target subsidiary system according to the callback message forwarding address of the target subsidiary system, wherein the group system configures the callback message forwarding address for each subsidiary system in advance.
2. The method of claim 1, wherein determining a target subsidiary system according to the application parameters, the callback configuration information of each micro-letter enterprise number and the correspondence between the micro-letter enterprise numbers and the subsidiary systems comprises:
determining a target micro-signal enterprise number corresponding to an application parameter matched with the application parameter included in the callback event message in the application parameters included in the callback configuration information of each micro-signal enterprise number;
and acquiring a target sub-company system associated with the target micro-signal enterprise number according to the association relationship between the micro-signal enterprise number and the sub-company system.
3. The method of claim 1, wherein when the WeChat Enterprise number is in callback mode; and the address bar of the WeChat enterprise number is configured with a URL (Uniform resource locator) address of the group system, and application parameters corresponding to the application of the WeChat enterprise number are set behind the URL address, wherein the application parameters comprise an application identifier and an application address.
4. The method of claim 1, further comprising:
acquiring an application message from an application packaging interface of the WeChat enterprise number, wherein the group system respectively packages a plurality of application interfaces of the WeChat enterprise number in advance to obtain a packaging interface of each application, and the subsidiary company accesses the application of the WeChat enterprise number through the packaging interfaces;
acquiring target application of the WeChat enterprise number according to the corresponding relation between the packaging interface and the application;
and updating the data of the target application of the subsidiary company according to the application message so as to realize the data consistency of the group system and the subsidiary company system.
5. The method of claim 4, further comprising:
when a request message is obtained, generating N sub-requests according to the number N of the sub-companies managed by the group system, wherein N is an integer larger than 1, and the managed sub-companies are the sub-companies of which the parameter information of the micro-telecommunication enterprise number is input into the group system;
sending each sub-request to an application packaging interface of the micro-signal enterprise number of the corresponding sub-company according to the parameter information of the micro-signal enterprise number;
wherein, the request message is a tag data modification request or a welcome language push request.
6. The method of claim 5, wherein the parameter information comprises: an access token for invoking an interface, the method further comprising:
and synchronizing the access token of the WeChat enterprise number of the subsidiary company of the group system according to a preset period so as to call the packaging interface.
7. The method of claim 1, further comprising:
acquiring an H5 page configuration request sent by a WeChat enterprise number of a subsidiary company, wherein the H5 page configuration request comprises a URL (uniform resource locator) address of an H5 page;
and establishing the association relationship between the H5 page and the subsidiary company, and setting the H5 page as a page accessible by a mobile phone end of the group system.
8. The method of claim 7, wherein the corporate system mobile phone is used to input a web page access request, the web page access request including the URL of the H5 page and the encrypted user information; and the WeChat enterprise number of the subsidiary company is used for decrypting the encrypted user information and acquiring the user information, and when the user information is correct, the mobile phone terminal of the group system is allowed to display an H5 page.
9. The device for processing the WeChat enterprise number is applied to a group system, and comprises the following components:
the receiving module is used for receiving a callback event message of a micro-telecom enterprise number, wherein the micro-telecom enterprise number is a micro-telecom enterprise number of a subsidiary company belonging to the group, a URL (uniform resource locator) address corresponding to the callback event message is an ULR (ultra low resolution ratio) address of the group system, and the callback event message comprises a callback event and application parameters;
the processing module is used for determining a target sub-company system according to the application parameters, the callback configuration information of each micro-signal enterprise number and the incidence relation between the micro-signal enterprise number and the sub-company system, wherein the callback configuration information is the application parameters configured in the URL address bar under the callback mode of each micro-signal enterprise number;
and the forwarding module is used for forwarding the callback event message to the target subsidiary system according to the callback message forwarding address of the target subsidiary system, wherein the group system configures the callback message forwarding address for each subsidiary system in advance.
10. A WeChat enterprise number processing apparatus, comprising: at least one processor and a memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of processing a wechat enterprise number as recited in any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for processing a wechat enterprise number according to any of the claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210461221.3A CN114844860B (en) | 2022-04-28 | 2022-04-28 | WeChat enterprise signal processing method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210461221.3A CN114844860B (en) | 2022-04-28 | 2022-04-28 | WeChat enterprise signal processing method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114844860A true CN114844860A (en) | 2022-08-02 |
CN114844860B CN114844860B (en) | 2023-09-26 |
Family
ID=82566857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210461221.3A Active CN114844860B (en) | 2022-04-28 | 2022-04-28 | WeChat enterprise signal processing method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114844860B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116757644A (en) * | 2023-08-11 | 2023-09-15 | 杭州面朝信息科技有限公司 | Method, system, electronic equipment and medium based on enterprise WeChat random friend adding |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049427A (en) * | 2015-06-29 | 2015-11-11 | 用友优普信息技术有限公司 | Management method and management device for login accounts of application systems |
CN106936687A (en) * | 2015-12-30 | 2017-07-07 | 航天信息软件技术有限公司 | A kind of wechat public number access device, system and method and mobile terminal |
CN106941441A (en) * | 2017-02-21 | 2017-07-11 | 珠海全志科技股份有限公司 | A kind of implementation method for supporting many wechat public numbers to access |
CN108234487A (en) * | 2017-12-29 | 2018-06-29 | 重庆远望广告有限公司 | Approaches to IM based on wechat public platform |
CN109274579A (en) * | 2018-09-04 | 2019-01-25 | 江苏龙虎网信息科技股份有限公司 | It is a kind of that user's uniform authentication method is applied based on wechat platform more |
US20190096393A1 (en) * | 2016-09-22 | 2019-03-28 | Tencent Technology (Shenzhen) Company Limited | Method for presenting virtual resource, client, and plug-in |
CN109873720A (en) * | 2019-02-26 | 2019-06-11 | 山东浪潮云信息技术有限公司 | A kind of cloud center intelligence O&M method and system based on enterprise's public platform |
CN110177039A (en) * | 2019-05-21 | 2019-08-27 | 深圳壹账通智能科技有限公司 | Message sharing method, device, computer equipment and storage medium |
-
2022
- 2022-04-28 CN CN202210461221.3A patent/CN114844860B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049427A (en) * | 2015-06-29 | 2015-11-11 | 用友优普信息技术有限公司 | Management method and management device for login accounts of application systems |
CN106936687A (en) * | 2015-12-30 | 2017-07-07 | 航天信息软件技术有限公司 | A kind of wechat public number access device, system and method and mobile terminal |
US20190096393A1 (en) * | 2016-09-22 | 2019-03-28 | Tencent Technology (Shenzhen) Company Limited | Method for presenting virtual resource, client, and plug-in |
CN106941441A (en) * | 2017-02-21 | 2017-07-11 | 珠海全志科技股份有限公司 | A kind of implementation method for supporting many wechat public numbers to access |
CN108234487A (en) * | 2017-12-29 | 2018-06-29 | 重庆远望广告有限公司 | Approaches to IM based on wechat public platform |
CN109274579A (en) * | 2018-09-04 | 2019-01-25 | 江苏龙虎网信息科技股份有限公司 | It is a kind of that user's uniform authentication method is applied based on wechat platform more |
CN109873720A (en) * | 2019-02-26 | 2019-06-11 | 山东浪潮云信息技术有限公司 | A kind of cloud center intelligence O&M method and system based on enterprise's public platform |
CN110177039A (en) * | 2019-05-21 | 2019-08-27 | 深圳壹账通智能科技有限公司 | Message sharing method, device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
陈刚: ""基于消息推送的企业移动办公应用集成系统设计与实现"", 《中国优秀硕士学位论文全文数据库——信息科技》, no. 07 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116757644A (en) * | 2023-08-11 | 2023-09-15 | 杭州面朝信息科技有限公司 | Method, system, electronic equipment and medium based on enterprise WeChat random friend adding |
Also Published As
Publication number | Publication date |
---|---|
CN114844860B (en) | 2023-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109840436A (en) | The application method and device of data processing method, trusted user interface resource data | |
US10135763B2 (en) | System and method for secure and efficient communication within an organization | |
CN109697370A (en) | Database data encipher-decipher method, device, computer equipment and storage medium | |
CN109347839A (en) | Centralized password management method and centralized password management, device, electronic equipment and computer storage medium | |
US10841287B2 (en) | System and method for generating and managing a key package | |
CN110795741B (en) | Method and device for carrying out security processing on data | |
CN113642014A (en) | Data access system based on hybrid cloud and public cloud server | |
CA3086236A1 (en) | Encrypted storage of data | |
CN108418679B (en) | Method and device for processing secret key under multiple data centers and electronic equipment | |
CN114844860B (en) | WeChat enterprise signal processing method, device, equipment and medium | |
CN113609147B (en) | Data sharing method and device and electronic equipment | |
CN113656713B (en) | Network resource processing method, device and system | |
CN108733700A (en) | Data processing method, device, system and storage medium | |
CN112966303A (en) | Data encryption and decryption method and device, electronic equipment and computer storage medium | |
CN111581576B (en) | Development processing method and device based on micro-service and storage medium | |
CN115242779B (en) | File transmission method and system based on applet and electronic equipment | |
CN115208630B (en) | Block chain-based data acquisition method and system and block chain system | |
CN113472785B (en) | Data processing method and device, electronic equipment and readable storage medium | |
CN117118598A (en) | Data sharing method, electronic equipment and computer cluster | |
CN112422566B (en) | Remote call processing method and device, storage medium and electronic device | |
CN113595962B (en) | Safety control method and device and safety control equipment | |
US10880088B1 (en) | Data communication target control with contact tokens | |
CN112764942A (en) | Cross-application communication method, cross-application communication device and electronic equipment | |
CN116320066A (en) | Multi-protocol communication control method and device | |
CN115278644B (en) | eUICC downloading method suitable for off-line production |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |