CN114844860B - WeChat enterprise signal processing method, device, equipment and medium - Google Patents
WeChat enterprise signal processing method, device, equipment and medium Download PDFInfo
- Publication number
- CN114844860B CN114844860B CN202210461221.3A CN202210461221A CN114844860B CN 114844860 B CN114844860 B CN 114844860B CN 202210461221 A CN202210461221 A CN 202210461221A CN 114844860 B CN114844860 B CN 114844860B
- Authority
- CN
- China
- Prior art keywords
- signal
- callback
- enterprise
- application
- micro
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title description 3
- 238000000034 method Methods 0.000 claims abstract description 56
- 238000012545 processing Methods 0.000 claims abstract description 40
- 238000005538 encapsulation Methods 0.000 claims description 24
- 230000004048 modification Effects 0.000 claims description 12
- 238000012986 modification Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 4
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 238000007726 management method Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 238000013461 design Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
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
本发明提供一种微信企业号的处理方法、装置、设备和介质。该方法包括:接收微信企业号的回调事件消息,所述微信企业号为属于所述集团的子公司的微信企业号,所述回调事件消息对应的URL地址为所述集团系统的URL地址,所述回调事件消息中包括回调事件和应用参数;根据所述应用参数、每个微信企业号的回调配置信息以及微信企业号与子公司系统的关联关系,确定目标子公司系统,所述回调配置信息为在每个微信企业号的回调模式下,在URL地址栏中配置的应用参数;根据所述目标子公司系统的回调消息转发地址,向所述目标子公司系统转发所述回调事件消息。本发明的方法,实现了集团的子公司微信企业号的统一管理。
The invention provides a method, device, equipment and medium for processing WeChat enterprise accounts. The method includes: receiving a callback event message from a WeChat enterprise account, where the WeChat enterprise account is a WeChat enterprise account belonging to a subsidiary of the group, and the URL address corresponding to the callback event message is the URL address of the group system, so The callback event message includes callback events and application parameters; according to the application parameters, the callback configuration information of each WeChat enterprise account, and the association between the WeChat enterprise account and the subsidiary system, the target subsidiary system is determined, and the callback configuration information It is the application parameter configured in the URL address bar in the callback mode of each WeChat enterprise account; forwards the callback event message to the target subsidiary system according to the callback message forwarding address of the target subsidiary system. The method of the present invention realizes the unified management of the WeChat enterprise accounts of the group's subsidiaries.
Description
技术领域Technical field
本发明涉及管理系统,尤其涉及一种微信企业号的处理方法、装置、设备和介质。The present invention relates to a management system, and in particular to a method, device, equipment and medium for processing a WeChat enterprise account.
背景技术Background technique
微信企业号是微信为企业客户提供的移动服务,旨在提供企业移动应用入口。它可以帮助企业建立员工、上下游供应链与企业IT系统间的连接。WeChat Enterprise Account is a mobile service provided by WeChat for enterprise customers, aiming to provide an entrance to enterprise mobile applications. It can help companies establish connections between employees, upstream and downstream supply chains, and corporate IT systems.
现有的微信企业号的管理系统只支持单一微信企业号的管理工作,不支持多个企业号的协同统一管理。例如,由于企业微信流程机制的限制:一个微信企业号的单个应用只能配置一个回调地址,在同时存在集团系统和子公司系统的情况下,这就使得一个微信号只能由其对应的子公司系统进行管理,无法同时通知到集团系统和子公司系统,而若由集团系统来接管微信企业号,则子公司无法保持相对独立性。The existing WeChat enterprise account management system only supports the management of a single WeChat enterprise account and does not support the coordinated and unified management of multiple enterprise accounts. For example, due to the limitations of the enterprise WeChat process mechanism: a single application of a WeChat enterprise account can only be configured with one callback address. When there are both group systems and subsidiary systems, this means that a WeChat account can only be configured by its corresponding subsidiary. The system is managed and cannot notify the group system and the subsidiary system at the same time. If the group system takes over the WeChat enterprise account, the subsidiary cannot maintain relative independence.
因此,亟需提供一种微信企业号的处理方法,在集团层面实现跨微信企业号统一管理,同时保留各子公司微信企业号的相对独立性。Therefore, there is an urgent need to provide a method for handling WeChat enterprise accounts to achieve unified management of cross-WeChat enterprise accounts at the group level, while retaining the relative independence of each subsidiary's WeChat enterprise accounts.
发明内容Contents of the invention
本发明提供一种微信企业号的处理方法、装置、设备和介质,用以至少解决现有方案中不支持多个微信企业号的协同统一管理以及子公司系统无法保持相对独立性的问题。The present invention provides a method, device, equipment and medium for processing WeChat enterprise accounts, which are used to at least solve the problems in existing solutions that do not support coordinated and unified management of multiple WeChat enterprise accounts and that subsidiary systems cannot maintain relative independence.
第一方面,本发明提供一种微信企业号的处理方法,包括:In a first aspect, the present invention provides a method for processing WeChat enterprise accounts, including:
接收微信企业号的回调事件消息,所述微信企业号为属于所述集团的子公司的微信企业号,所述回调事件消息对应的URL地址为所述集团系统的URL地址,所述回调事件消息中包括回调事件和应用参数;Receive a callback event message from a WeChat enterprise account. The WeChat enterprise account is a WeChat enterprise account belonging to a subsidiary of the group. The URL address corresponding to the callback event message is the URL address of the group system. The callback event message Includes callback events and application parameters;
根据所述应用参数、每个微信企业号的回调配置信息以及微信企业号与子公司系统的关联关系,确定目标子公司系统,所述回调配置信息为在每个微信企业号的回调模式下,在URL地址栏中配置的应用参数;Determine the target subsidiary system based on the application parameters, the callback configuration information of each WeChat enterprise account, and the association between the WeChat enterprise account and the subsidiary system. The callback configuration information is that in the callback mode of each WeChat enterprise account, Application parameters configured in the URL address bar;
根据所述目标子公司系统的回调消息转发地址,向所述目标子公司系统转发所述回调事件消息,其中,所述集团系统预先为每个子公司系统配置回调消息转发地址。The callback event message is forwarded 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, determining the target subsidiary system based on the application parameters, the callback configuration information of each WeChat enterprise account, and the corresponding relationship between the WeChat enterprise account and the subsidiary system includes:
在每个微信企业号的回调配置信息所包括的应用参数中,确定与所述回调事件消息所包括的应用参数匹配的应用参数所对应的目标微信企业号;Among the application parameters included in the callback configuration information of each WeChat enterprise account, determine the target WeChat enterprise account corresponding to the application parameters that match the application parameters included in the callback event message;
根据所述微信企业号与子公司系统的关联关系,获取所述目标微信企业号关联的目标子公司系统。According to the association relationship between the WeChat enterprise account and the subsidiary system, the target subsidiary system associated with the target WeChat enterprise account is obtained.
在一种可能的设计中,在所述微信企业号处于在回调模式时;所述微信企业号的地址栏中配置有所述集团系统的URL地址,且在所述URL地址后设置有所述微信企业号的应用对应的应用参数,所述应用参数包括应用标识和应用地址。In one possible design, when the WeChat enterprise account is in the callback mode; the URL address of the group system is configured in the address bar of the WeChat enterprise account, and the URL address is set after the URL address. Application parameters corresponding to the application of the WeChat enterprise account. The application parameters include application identification and application address.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
从所述微信企业号的应用的封装接口中获取应用消息,其中,所述集团系统预先对所述微信企业号的多个应用接口分别进行封装,得到每个应用的封装接口,所述子公司通过所述封装接口访问所述微信企业号的应用;Obtain application messages from the encapsulation interface of the application of the WeChat enterprise account, wherein the group system encapsulates multiple application interfaces of the WeChat enterprise account in advance to obtain the encapsulation interface of each application, and the subsidiary Access the application of the WeChat enterprise account through the encapsulation interface;
根据封装接口与应用的对应关系,获取所述微信企业号的目标应用;According to the corresponding relationship between the encapsulation interface and the application, obtain the target application of the WeChat enterprise account;
根据所述应用消息,更新所述子公司的目标应用的数据,以实现所述集团系统与所述子公司系统的数据一致性。According to the application message, the data of the target application of the subsidiary is updated to achieve data consistency between the group system and the subsidiary system.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
在获取到请求消息时,根据所述集团系统所管理的子公司的数量N,生成N个子请求,所述N为大于1的整数,所述所管理的子公司为微信企业号的参数信息录入至所述集团系统的子公司;When the request message is obtained, N sub-requests are generated according to the number N of subsidiaries managed by the group system, where N is an integer greater than 1, and the managed subsidiaries are the parameter information entry of WeChat enterprise accounts. to subsidiaries of said group system;
根据所述微信企业号的参数信息,将每个子请求发送至对应的子公司的微信企业号的应用的封装接口;According to the parameter information of the WeChat enterprise account, send each sub-request to the encapsulation interface of the application of the corresponding subsidiary's WeChat enterprise account;
其中,所述请求消息为标签数据修改请求或欢迎语推送请求。Wherein, the request message is a tag data modification request or a welcome message push request.
在一种可能的设计中,所述参数信息包括:用于调用接口的访问令牌,所述方法还包括:In a possible design, the parameter information includes: an access token used to call the interface, and the method further includes:
根据预设周期,同步已录入集团系统的子公司的微信企业号的访问令牌,以便对封装接口的调用。According to the preset period, the access token of the WeChat enterprise account of the subsidiary that has been entered into the group system is synchronized to facilitate the call to the encapsulated interface.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
获取子公司的微信企业号发送的H5页面配置请求,所述H5页面配置请求包括H5页面的URL地址;Obtain the H5 page configuration request sent by the subsidiary's WeChat enterprise account. The H5 page configuration request includes the URL address of the H5 page;
建立所述H5页面与所述子公司的关联关系,并将所述H5页面设置为集团系统手机端可访问的页面。Establish an association between the H5 page and the subsidiary, and set the H5 page as a page accessible to the mobile terminal of the group system.
在一种可能的设计中,集团系统手机端用于输入网页访问请求,所述网页访问请求包括H5页面的URL以及加密的用户信息;所述子公司的微信企业号用于对所述加密的用户信息进行解密,并获取所述用户信息,在所述用户信息正确时,允许所述集团系统手机端显示H5页面。In one possible design, the mobile phone terminal of the group system is used to input a web page access request, and the web page access request includes the URL of the H5 page and encrypted user information; the WeChat enterprise account of the subsidiary is used to enter the encrypted user information. The user information is decrypted and the user information is obtained. When the user information is correct, the group system mobile terminal is allowed to display the H5 page.
第二方面,本发明提供一种微信企业号的处理装置,应用于集团系统,所述装置包括:In a second aspect, the present invention provides a device for processing WeChat enterprise accounts, which is applied to a group system. The device includes:
接收模块,用于接收微信企业号的回调事件消息,所述微信企业号为属于所述集团的子公司的微信企业号,所述回调事件消息对应的URL地址为所述集团系统的URL地址,所述回调事件消息中包括回调事件和应用参数;A receiving module, configured to receive a callback event message from a WeChat enterprise account, where the WeChat enterprise account is a WeChat enterprise account belonging to a subsidiary of the group, and the URL address corresponding to the callback event message is the URL address of the group system, The callback event message includes the callback event and application parameters;
处理模块,用于根据所述应用参数、每个微信企业号的回调配置信息以及微信企业号与子公司系统的关联关系,确定目标子公司系统,所述回调配置信息为在每个微信企业号的回调模式下,在URL地址栏中配置的应用参数;A processing module configured to determine the target subsidiary system based on the application parameters, the callback configuration information of each WeChat enterprise account, and the association between the WeChat enterprise account and the subsidiary system. The callback configuration information is in each WeChat enterprise account. In callback mode, the application parameters configured in the URL address bar;
转发模块,用于根据所述目标子公司系统的回调消息转发地址,向所述目标子公司系统转发所述回调事件消息,其中,所述集团系统预先为每个子公司系统配置回调消息转发地址。A forwarding module configured to forward 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 WeChat enterprise account processing device, including: at least one processor and a memory;
所述存储器存储计算机执行指令;The memory stores computer execution instructions;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行微信企业号的处理方法。The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the method for processing the WeChat enterprise account.
第四方面,本发明提供一种计算机可读存储介质,其上储存有计算机程序,该计算机程序被处理器执行时实现微信企业号的处理方法的步骤。In a fourth aspect, the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for processing a WeChat enterprise account are implemented.
本发明提供的一种微信企业号的处理方法、装置、设备和介质,该方法通过集团系统微信企业号的回调事件消息,所述微信企业号为属于所述集团的子公司的微信企业号,所述回调事件消息对应的URL地址为所述集团系统的URL地址,即将微信企业号的URL地址统一修改为集团系统的URL地址,所述回调事件消息中包括回调事件和应用参数;集团系统根据所述应用参数、每个微信企业号的回调配置信息以及微信企业号与子公司系统的关联关系,确定目标子公司系统,所述回调配置信息为在每个微信企业号的回调模式下,在URL地址栏中配置的应用参数;在修改微信企业号的URL地址的基础上,在URL地址栏中配置的应用参数,使得集团系统能够具备接收微信企业号的回调事件消息的能力;集团系统通过微信企业号与子公司系统的关联关系,确定目标子公司系统,达到通过集团系统将微信企业号的回调事件转发给子公司系统的目的,以便于支持多个微信企业号的协同统一管理以及子公司系统保持相对独立性。The invention provides a method, device, equipment and medium for processing a WeChat enterprise account. The method passes the callback event message of the WeChat enterprise account of the group system, and the WeChat enterprise account is a WeChat enterprise account belonging to a subsidiary of the group, The URL address corresponding to the callback event message is the URL address of the group system, that is, the URL address of the WeChat enterprise account is uniformly modified to the URL address of the group system. The callback event message includes the callback event and application parameters; the group system is based on The application parameters, the callback configuration information of each WeChat enterprise account, and the association between the WeChat enterprise account and the subsidiary system determine the target subsidiary system. The callback configuration information is in the callback mode of each WeChat enterprise account. The application parameters configured in the URL address bar; on the basis of modifying the URL address of the WeChat enterprise account, the application parameters configured in the URL address bar enable the group system to have the ability to receive callback event messages from the WeChat enterprise account; the group system passes The relationship between the WeChat enterprise account and the subsidiary system is determined, and the target subsidiary system is determined to achieve the purpose of forwarding the callback event of the WeChat enterprise account to the subsidiary system through the group system, so as to support the coordinated and unified management of multiple WeChat enterprise accounts and the subsidiary system. The company's systems remain relatively independent.
附图说明Description of 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.
图1为本发明实施例提供的一种微信企业号的处理构架示意图;Figure 1 is a schematic diagram of the processing architecture of a WeChat enterprise account provided by an embodiment of the present invention;
图2为本发明实施例提供的一种微信企业号的工作台界面示意图;Figure 2 is a schematic diagram of the workbench interface of a WeChat enterprise account provided by an embodiment of the present invention;
图3为本发明实施例提供的一种微信企业号的处理方法的流程图一;Figure 3 is a flow chart 1 of a method for processing a WeChat enterprise account provided by an embodiment of the present invention;
图4为本发明实施例提供的URL地址配置及秘钥配置图;Figure 4 is a diagram of URL address configuration and secret key configuration provided by an embodiment of the present invention;
图5为本发明实施例提供的一种微信企业号的处理方法的流程图二;Figure 5 is a flow chart 2 of a method for processing a WeChat enterprise account provided by an embodiment of the present invention;
图6为本发明实施例提供的一种微信企业号的处理方法的流程图三;Figure 6 is a flow chart 3 of a method for processing a WeChat enterprise account provided by an embodiment of the present invention;
图7为本发明实施例提供的一种微信企业号的处理方法的流程图四;Figure 7 is a flow chart 4 of a method for processing a WeChat enterprise account provided by an embodiment of the present invention;
图8为本发明实施例提供的一种微信企业号的处理装置的结构图;Figure 8 is a structural diagram of a WeChat enterprise account processing device provided by an embodiment of the present invention;
图9为本发明实施例提供的一种微信企业号的处理设备的硬件示意图。Figure 9 is a hardware schematic diagram of a WeChat enterprise account processing device provided by an embodiment of the present invention.
通过上述附图,已示出本发明明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本发明构思的范围,而是通过参考特定实施例为本领域技术人员说明本发明的概念。Specific embodiments of the present invention have been shown in the above-mentioned drawings and will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate the concept of the present invention to those skilled in the art with reference to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the appended claims.
图1为本发明实施例提供的一种微信企业号的处理构架示意图;图2为本发明实施例提供的一种微信企业号的工作台界面示意图。如图1所示,本实施例提供的处理构架包括终端和服务器。其中,该终端可以为手机、平板、电脑等与用户可以进行交互的设备。例如,该终端可以为图1所示的电脑101和/或手机102。该电脑101可以与服务器103进行通信。该手机102可以与服务器103进行通信。Figure 1 is a schematic diagram of the processing architecture of a WeChat enterprise account provided by an embodiment of the present invention; Figure 2 is a schematic diagram of a workbench interface of a WeChat enterprise account provided by an embodiment of the present invention. As shown in Figure 1, the processing architecture provided by this embodiment includes a terminal and a server. The terminal can be a mobile phone, a tablet, a computer, or other devices that can interact with the user. For example, the terminal may be the computer 101 and/or the mobile phone 102 shown in FIG. 1 . The computer 101 can communicate with the server 103. The mobile phone 102 can communicate with the server 103.
如图2所示,所述终端可以用于显示微信企业号的工作台界面,该工作台界面包括“全部应用”选项和“效率工具”选项等,所述全部应用包括会议、直播、欢迎语、添加联系人和标签等应用。针对上述应用,在微信企业号的回调模式下,可以设置应用回调的URL地址,从而将该应用的回调事件信息反馈至对应的URL地址。As shown in Figure 2, the terminal can be used to display the workbench interface of the WeChat enterprise account. The workbench interface includes the "all applications" option and the "efficiency tool" option. The all applications include meetings, live broadcasts, welcome messages, etc. , add contacts and tags and other applications. For the above applications, in the callback mode of the WeChat enterprise account, you can set the URL address of the application callback, so that the callback event information of the application is fed back to the corresponding URL address.
现有技术中,当微信企业号的应用产生回调事件消息的时候,只能根据该应用对应的URL地址,将回调事件消息发送至该URL地址对应的服务器103,即只能由单个的子公司系统或集团系统接收回调事件消息,并进行对应的管理,这样就无法同时通知到集团系统和子公司系统;或者仅由集团系统来接收回调事件消息,并进行对应的管理,这样将使得子公司系统的微信企业号失去相对独立性。In the existing technology, when the application of the WeChat enterprise account generates a callback event message, the callback event message can only be sent to the server 103 corresponding to the URL address according to the URL address corresponding to the application, that is, it can only be sent by a single subsidiary. The system or group system receives the callback event message and performs corresponding management, so that the group system and the subsidiary system cannot be notified at the same time; or only the group system receives the callback event message and performs corresponding management, which will make the subsidiary system The WeChat enterprise account has lost its relative independence.
而在本发明实施例中,该服务器103可以部署来自集团系统或子公司系统中的数据等,为集团系统或子公司系统的服务器。本发明实施例通过在子公司系统的微信企业号的回调模式下,配置集团系统的URL地址,并在该URL地址的后面增加应用参数,该应用参数与微信企业号相关联,从而集团系统URL地址可以收到该回调事件信息,还可以根据该应用参数确定对应的子公司的微信企业号。进一步地,还为每个子公司系统配置回调消息转发地址,从而根据该回调消息转发地址将该回调事件信息转发至该微信企业号对应的子公司系统,从而集团系统和子公司系统都可以收到回调事件消息,并进行相应的管理,同时子公司系统的微信企业号还具有相对独立性。In this embodiment of the present invention, the server 103 can deploy data from the group system or the subsidiary system, etc., and is a server of the group system or the subsidiary system. The embodiment of the present invention configures the URL address of the group system in the callback mode of the WeChat enterprise account of the subsidiary system, and adds application parameters after the URL address. The application parameters are associated with the WeChat enterprise account, so that the group system URL The address can receive the callback event information, and can also determine the WeChat enterprise account of the corresponding subsidiary based on the application parameters. Furthermore, a callback message forwarding address is configured for each subsidiary system, so that the callback event information is forwarded to the subsidiary system corresponding to the WeChat enterprise account according to the callback message forwarding address, so that both the group system and the subsidiary system can receive the callback. Event messages are collected and managed accordingly. At the same time, the WeChat enterprise account of the subsidiary system is relatively independent.
下面以具体地实施例对本发明的技术方案以及本发明的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The technical solution of the present invention and how the technical solution of the present invention solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present invention will be described below with reference to the accompanying drawings.
图3为本发明实施例提供的一种微信企业号的处理方法的流程图一。本施例提供的方法的执行主体可以为上述图1中的服务器或其它服务器,本实施例此处不做特别限制。如图3所示,该方法包括:Figure 3 is a flow chart 1 of a method for processing a WeChat enterprise account provided by an embodiment of the present invention. The execution subject of the method provided in this embodiment can be the server in Figure 1 or other servers, and this embodiment is not particularly limited here. As shown in Figure 3, the method includes:
S301、接收微信企业号的回调事件消息,所述微信企业号为属于所述集团的子公司的微信企业号,所述回调事件消息对应的URL地址为所述集团系统的URL地址,所述回调事件消息中包括回调事件和应用参数。S301. Receive a callback event message from a WeChat enterprise account. The WeChat enterprise account is a WeChat enterprise account belonging to a subsidiary of the group. The URL address corresponding to the callback event message is the URL address of the group system. The callback The event message includes callback events and application parameters.
在集团的子公司的微信企业号中的应用发生变化时,会触发微信企业号的回调事件消息。例如,当微信企业号的通讯录发生变化时,则触发回调事件消息。其中,该回调事件消息对应的URL地址为集团系统的URL地址,由此,该集团系统能够接收到该微信企业号的回调事件消息。When the application in the WeChat Enterprise Account of a subsidiary of the group changes, the callback event message of the WeChat Enterprise Account will be triggered. For example, when the address book of a WeChat enterprise account changes, a callback event message is triggered. The URL address corresponding to the callback event message is the URL address of the group system. Therefore, the group system can receive the callback event message of the WeChat enterprise account.
其中,该回调事件消息包括回调事件和应用参数。该回调事件例如为上述的通讯录发生变化的事件。该应用参数可以包括应用标识和应用地址。The callback event message includes a callback event and application parameters. The callback event is, for example, the above-mentioned change event of the address book. The application parameters may include application identification and application address.
例如,该应用标识为AppId,该应用地址为AgentId。其中,AgentId是子公司系统的授权地址,用于标志不同子公司系统的微信企业号,以及授权URL地址的跳转;AppId可以在微信企业号的管理端查看,该AppId不同表示应用不同,如通讯录的AppId与标签的AppId不同。For example, the application ID is AppId, and the application address is AgentId. Among them, AgentId is the authorized address of the subsidiary system, used to mark the WeChat enterprise accounts of different subsidiary systems and the jump of the authorized URL address; the AppId can be viewed on the management side of the WeChat enterprise account. Different AppIds indicate different applications, such as The AppId of the address book is different from the AppId of the label.
本领域技术人员可以理解,该回调事件消息的URL地址可以预先进行设置。图4为本发明实施例提供的URL地址配置及秘钥配置图。如图4所示,该回调事件消息的URL地址在应用管理界面中进行设置。Those skilled in the art can understand that the URL address of the callback event message can be set in advance. Figure 4 is a diagram of URL address configuration and secret key configuration provided by an embodiment of the present invention. As shown in Figure 4, the URL address of the callback event message is set in the application management interface.
具体地,在所述微信企业号处于回调模式时,进入应用管理界面,在应用管理界面的URL配置项中,可以配置集团系统的URL地址,且在URL地址后设置有微信企业号的应用对应的应用参数,例如上述的应用标识和应用地址。由此,集团系统通过识别URL地址后添加的微信企业号的应用对应的应用参数来识别具体是哪个微信企业号的应用发生回调事件;所述URL地址在回调过程中用于接收回调事件消息,该URL地址为公开可访问的地址。Specifically, when the WeChat enterprise account is in callback mode, the application management interface is entered. In the URL configuration item of the application management interface, the URL address of the group system can be configured, and the application corresponding to the WeChat enterprise account is set after the URL address. Application parameters, such as the above-mentioned application ID and application address. Therefore, the group system identifies which WeChat enterprise account application has a callback event by identifying the application parameters corresponding to the WeChat enterprise account added after the URL address; the URL address is used to receive the callback event message during the callback process. This URL address is a publicly accessible address.
具体地,在应用管理界面中还包括可以进行请求令牌Token和加解密参数EncodingAESKey的设置,在所述微信企业号处于在回调模式时,该请求令牌Token为打开微信企业号的应用的钥匙,当该请求令牌Token匹配正确时,集团系统可以访问URL地址,该加解密参数EncodingAESKey为在传输数据包括回调事件消息的过程中进行加解密的钥匙,防止数据在传输过程中被截获而产生泄密。Specifically, the application management interface also includes settings for request token Token and encryption and decryption parameters EncodingAESKey. When the WeChat enterprise account is in callback mode, the request token Token is the key to open the application of the WeChat enterprise account. , when the request token Token matches correctly, the group system can access the URL address. The encryption and decryption parameter EncodingAESKey is the key for encryption and decryption during the process of transmitting data including callback event messages to prevent the data from being intercepted during the transmission process. Leak.
S302、根据所述应用参数、每个微信企业号的回调配置信息以及微信企业号与子公司系统的关联关系,确定目标子公司系统,所述回调配置信息为在每个微信企业号的回调模式下,在URL地址栏中配置的应用参数。S302. Determine the target subsidiary system according to the application parameters, the callback configuration information of each WeChat enterprise account, and the association between the WeChat enterprise account and the subsidiary system. The callback configuration information is the callback mode of each WeChat enterprise account. Next, configure the application parameters in the URL address bar.
具体地,在每个微信企业号的回调配置信息所包括的应用参数中,确定与所述回调事件消息所包括的应用参数匹配的应用参数所对应的目标微信企业号;根据所述微信企业号与子公司系统的关联关系,获取所述目标微信企业号关联的目标子公司系统。Specifically, among the application parameters included in the callback configuration information of each WeChat enterprise account, determine the target WeChat enterprise account corresponding to the application parameters that match the application parameters included in the callback event message; according to the WeChat enterprise account The association relationship with the subsidiary system is to obtain the target subsidiary system associated with the target WeChat enterprise account.
所述应用参数为微信企业号在回调模式下所对应的回调事件消息中的应用参数,当该应用参数与URL地址栏中配置的应用参数一致的时候,集团系统能够准确定位到具体的应用发生变化的微信企业号;并且集团系统能够根据事先在集团系统录入的微信企业号与子公司系统的关联关系确认当前定位到的微信企业号属于哪个子公司系统。The application parameters are the application parameters in the callback event message corresponding to the WeChat enterprise account in callback mode. When the application parameters are consistent with the application parameters configured in the URL address bar, the group system can accurately locate the specific application occurrence The changed WeChat enterprise account; and the group system can confirm which subsidiary system the currently located WeChat enterprise account belongs to based on the association between the WeChat enterprise account and the subsidiary system that has been entered in the group system in advance.
S303、根据所述目标子公司系统的回调消息转发地址,向所述目标子公司系统转发所述回调事件消息,其中,所述集团系统预先为每个子公司系统配置回调消息转发地址。S303. Forward 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.
具体地,集团系统会预先为每个子公司系统设置各自对应的回调消息转发地址,用于在S301接收到微信企业号的回调事件消息的之后,以及在S302确认该回调事件消息属于哪一个子公司系统之后,将该回调事件消息发送至对应的子公司系统,由子公司系统中预先配置的回调消息转发接收地址来接收该回调事件消息。Specifically, the group system will pre-set corresponding callback message forwarding addresses for each subsidiary system, which is used after receiving the callback event message of the WeChat enterprise account in S301, and confirming which subsidiary the callback event message belongs to in S302 Afterwards, the system sends the callback event message to the corresponding subsidiary system, and the callback event message is received by the pre-configured callback message forwarding and receiving address in the subsidiary system.
在具体实现过程中,由于集团系统对应有多个子公司系统,因此存在无法及时转发消息的情况,所以集团系统接收到微信企业号的回调事件消息后,将该回调事件消息添加到kafka消息队列中,并通过集团系统已经获取到的加解密参数EncodingAESKey将该包括回调事件消息的kafka消息队列进行加密;During the specific implementation process, since the group system corresponds to multiple subsidiary systems, there are situations where messages cannot be forwarded in time. Therefore, after the group system receives the callback event message from the WeChat enterprise account, it adds the callback event message to the kafka message queue. , and encrypt the kafka message queue including the callback event message through the encryption and decryption parameter EncodingAESKey that has been obtained by the group system;
通过集团系统订阅该加密后的kafka消息队列,并通过加解密参数EncodingAESKey将加密后的kafka消息队列进行解密,根据解密后该kafka消息队列中所包含的信息确定将该kafka消息队列中的应用标识和应用地址对应着哪个微信企业号,根据该微信企业号对应的子公司系统,通过加解密参数EncodingAESKey对回调事件进行加密,并再次通过加解密参数EncodingAESKey对kafka消息队列中的待发送的回调事件进行加密,并将加密后的回调事件发送到对应的具体的子公司系统。Subscribe to the encrypted kafka message queue through the group system, decrypt the encrypted kafka message queue through the encryption and decryption parameter EncodingAESKey, and determine the application identification in the kafka message queue based on the information contained in the decrypted kafka message queue. Which WeChat enterprise account corresponds to the application address? According to the subsidiary system corresponding to the WeChat enterprise account, the callback event is encrypted through the encryption and decryption parameter EncodingAESKey, and the callback event to be sent in the kafka message queue is encrypted again through the encryption and decryption parameter EncodingAESKey. Encrypt and send the encrypted callback event to the corresponding specific subsidiary system.
在每次数据交互的过程中都使用加解密参数EncodingAESKey对数据进行加密或者解密,是为了保证数据的安全性。During each data interaction process, the encryption and decryption parameter EncodingAESKey is used to encrypt or decrypt the data to ensure the security of the data.
本发明实施例中,集团系统通过接收微信企业号的回调事件消息,获取子公司系统对应的微信企业号的应用变化;且所述回调事件消息对应的URL地址为集团系统的URL地址,在所述URL地址后设置有所述微信企业号的应用对应的应用参数,在集团系统中设置有微信企业号和子公司系统之间的关联关系,因此,能够根据该回调事件消息对应的URL地址后所述微信企业号的应用对应的应用参数以及微信企业号和子公司系统之间的关联关系寻找对应的子公司系统;在集团系统中还设置有回调消息转发地址,因此在找到对应的子公司系统的时候,能够实现回调消息转发;即发明实施例中,实现通过集团系统接管子公司系统的微信企业号的同时,集团系统还可以将微信企业号的应用变化发送到对应的子公司系统,也就是说集团系统和子公司系统都可以收到回调事件消息,并进行相应的管理,同时子公司系统的微信企业号还具有相对独立性。In the embodiment of the present invention, the group system obtains the application changes of the WeChat enterprise account corresponding to the subsidiary system by receiving the callback event message of the WeChat enterprise account; and the URL address corresponding to the callback event message is the URL address of the group system, where The application parameters corresponding to the application of the WeChat enterprise account are set after the above URL address, and the association between the WeChat enterprise account and the subsidiary system is set up in the group system. Therefore, the URL address corresponding to the callback event message can be followed. Describe the application parameters corresponding to the application of the WeChat enterprise account and the relationship between the WeChat enterprise account and the subsidiary system to find the corresponding subsidiary system; a callback message forwarding address is also set in the group system, so after finding the corresponding subsidiary system At this time, callback message forwarding can be realized; that is, in the embodiment of the invention, while taking over the WeChat enterprise account of the subsidiary system through the group system, the group system can also send the application changes of the WeChat enterprise account to the corresponding subsidiary system, that is, It is said that both the group system and the subsidiary system can receive callback event messages and manage them accordingly. At the same time, the WeChat enterprise account of the subsidiary system is relatively independent.
图5为本发明实施例提供的一种微信企业号的处理方法的流程图二。如图5所示,该方法包括:Figure 5 is a flow chart 2 of a method for processing a WeChat enterprise account provided by an embodiment of the present invention. As shown in Figure 5, the method includes:
S501、从所述微信企业号的应用的封装接口中获取应用消息,其中,所述集团系统预先对所述微信企业号的多个应用接口分别进行封装,得到每个应用的封装接口,所述子公司通过所述封装接口访问所述微信企业号的应用。S501. Obtain application messages from the encapsulation interface of the application of the WeChat enterprise account, wherein the group system encapsulates multiple application interfaces of the WeChat enterprise account in advance to obtain the encapsulation interface of each application. The subsidiary company accesses the application of the WeChat enterprise account through the encapsulation interface.
子公司系统不与微信企业号通过原本微信企业号内部已经封装好的应用的封装接口进行信息交互,集团系统预先对微信企业号的多个应用接口分别进行封装,在保证了自己可以访问微信企业号的应用的同时,还保证了子公司系统可以通过集团系统二次封装的应用接口访问微信企业号的应用。The subsidiary system does not interact with the WeChat Enterprise Account through the encapsulated interfaces of the applications that have been packaged within the WeChat Enterprise Account. The group system pre-encapsulates the multiple application interfaces of the WeChat Enterprise Account separately to ensure that it can access the WeChat Enterprise Account. At the same time as the application of the account, it also ensures that the subsidiary system can access the application of the WeChat enterprise account through the secondary encapsulated application interface of the group system.
S502、根据封装接口与应用的对应关系,获取所述微信企业号的目标应用。S502: Obtain the target application of the WeChat enterprise account according to the corresponding relationship between the encapsulation interface and the application.
在集团系统中封装微信企业号的应用的封装接口的同时,还会建立封装接口与应用的对应关系,为后续调用接口和寻找对应的目标应用提供支持。While encapsulating the encapsulation interface of the WeChat enterprise account application in the group system, a corresponding relationship between the encapsulation interface and the application will also be established to provide support for subsequent calls to the interface and finding the corresponding target application.
因此,根据该封装接口与应用的对应关系,能够获取此次微信企业号访问的目标应用。Therefore, according to the corresponding relationship between the encapsulation interface and the application, the target application accessed by the WeChat enterprise account can be obtained.
S503、根据所述应用消息,更新所述子公司的目标应用的数据,以实现所述集团系统与所述子公司系统的数据一致性。S503. Update the data of the target application of the subsidiary according to the application message to achieve data consistency between the group system and the subsidiary system.
通过封装接口寻找到的对应的目标应用,可以获取得到应用消息,根据该应用消息子公司可以进行对应的数据更新;The corresponding target application found through the encapsulation interface can obtain the application message, and the subsidiary company can update the corresponding data according to the application message;
可选地,S501到S503所描述的执行主体为集团系统,说明集团系统可以主动访问微信企业号的应用封装接口,并实现子公司系统的应用数据运行,除此之外,子公司系统也可以主动向集团系统发起应用数据的访问请求,通过集团系统以及集团系统封装的应用封装接口实现自身的数据更新,保留着子公司系统的相对独立性。Optionally, the execution subject described in S501 to S503 is the group system, indicating that the group system can actively access the application encapsulation interface of the WeChat enterprise account and implement the application data operation of the subsidiary system. In addition, the subsidiary system can also Actively initiate application data access requests to the group system, and update its own data through the group system and the application encapsulation interface encapsulated by the group system, retaining the relative independence of the subsidiary system.
在一种可能的实现方式中,根据预设周期,同步已录入集团系统的子公司的微信企业号的访问令牌,以便对封装的应用接口的调用。In one possible implementation, the access tokens of the WeChat enterprise accounts of the subsidiaries that have been entered into the group system are synchronized according to the preset period, so as to call the encapsulated application interface.
具体地,所述访问令牌包括AccessToken,集团系统通过所述微信企业号的参数信息获得获取子公司系统的微信企业号的访问令牌的权限,并进行周期性同步,保证每次需要进行访问的时候都能够及时获得更新的访问令牌,保证访问顺利进行。Specifically, the access token includes AccessToken. The group system obtains the permission to obtain the access token of the WeChat enterprise account of the subsidiary system through the parameter information of the WeChat enterprise account, and performs periodic synchronization to ensure that access is required every time The updated access token can be obtained in time to ensure smooth access.
本实施例中,通过集团系统对已经封装过的接口进行重新封装,使得子公司系统能够根据集团系统封装的接口访问微信企业号的应用,保留了子公司系统管理自己的微信企业号的能力,保证能够通过子公司系统实时进行数据维护,并且保留着子公司系统的相对独立性。In this embodiment, the encapsulated interface is re-encapsulated through the group system, so that the subsidiary system can access the application of the WeChat enterprise account according to the interface encapsulated by the group system, retaining the ability of the subsidiary system to manage its own WeChat enterprise account. It ensures that data can be maintained in real time through the subsidiary system, and the relative independence of the subsidiary system is retained.
集团系统还可以对若干个子公司系统同时进行统一数据管理或修改,图6为本发明实施例提供的一种微信企业号的处理方法的流程图三。如图6所示,该方法包括:The group system can also perform unified data management or modification on several subsidiary company systems at the same time. Figure 6 is a flow chart 3 of a WeChat enterprise account processing method provided by an embodiment of the present invention. As shown in Figure 6, the method includes:
S601、在获取到请求消息时,根据所述集团系统所管理的子公司的数量N,生成N个子请求,所述N为大于1的整数,所述所管理的子公司为微信企业号的参数信息录入至所述集团系统的子公司。S601. When obtaining the request message, generate N sub-requests according to the number N of subsidiaries managed by the group system, where N is an integer greater than 1, and the managed subsidiaries are the parameters of the WeChat enterprise account. The information is entered into the subsidiaries of the said group system.
集团系统预先完成了上述的各种参数和地址的配置,能够向微信企业号发送请求消息;在集团系统中根据其即将发送的请求消息,根据所述集团系统所管理的子公司的数量N,生成N个子请求,并将每个子请求发送给子公司系统及其每个微信企业号,完成对应的请求。The group system has completed the configuration of the above various parameters and addresses in advance, and can send request messages to the WeChat enterprise account; in the group system, according to the request message it is about to send, according to the number N of subsidiaries managed by the group system, Generate N sub-requests and send each sub-request to the subsidiary system and each WeChat enterprise account to complete the corresponding request.
S602、根据所述微信企业号的参数信息,将每个子请求发送至对应的子公司的微信企业号的应用的封装接口;S602. According to the parameter information of the WeChat enterprise account, send each sub-request to the encapsulation interface of the application of the corresponding subsidiary's WeChat enterprise account;
其中,所述请求消息为标签数据修改请求或欢迎语推送请求。Wherein, the request message is a tag data modification request or a welcome message push request.
本实施例提供的请求消息可以为针对应用的多种消息。例如可以为标签数据修改请求或欢迎语推送请求。The request message provided in this embodiment may be a variety of messages targeted at applications. For example, it can be a tag data modification request or a welcome message push request.
以该请求消息为标签数据修改请求为例,集团系统发送标签数据修改请求消息之后,根据微信企业号的应用标识,将该标签数据修改请求发送至微信企业号的应用。具体地,根据加解密参数AccessToken对该标签数据修改请求进行加密,将加密后的请求发送至集团系统重新封装的微信企业号的API接口,然后所有微信企业号对该请求进行解密,在解密成功后,对应的微信企业号的应用的标签,根据集团系统发出的请求发生改变,例如将标签的参数a修改为b。Taking the request message as a tag data modification request as an example, after the group system sends the tag data modification request message, it sends the tag data modification request to the application of the WeChat enterprise account according to the application identifier of the WeChat enterprise account. Specifically, the tag data modification request is encrypted according to the encryption and decryption parameter AccessToken, and the encrypted request is sent to the API interface of the WeChat enterprise account re-encapsulated by the group system, and then all WeChat enterprise accounts decrypt the request. When the decryption is successful, Afterwards, the label applied to the corresponding WeChat enterprise account is changed according to the request issued by the group system, for example, the parameter a of the label is modified to b.
以该请求消息为欢迎推送请求为例,当集团系统收到添加外部联系人事件时,根据该外部联系人的成员标签对应的URL地址,查询该外部联系人对应的欢迎语素材,并根据该外部联系人对应的微信企业号的参数信息确定将对应的欢迎语发送至哪个微信企业号,确认后发送至对应的子公司的微信企业号的应用的封装接口,达到统一发送的目的。Taking the request message as a welcome push request as an example, when the group system receives the event of adding an external contact, it queries the welcome material corresponding to the external contact according to the URL address corresponding to the member tag of the external contact, and based on the The parameter information of the WeChat enterprise account corresponding to the external contact determines which WeChat enterprise account the corresponding welcome message will be sent to. After confirmation, it is sent to the application encapsulation interface of the corresponding subsidiary's WeChat enterprise account to achieve the purpose of unified sending.
本发明实施例中,集团系统通过发送请求消息的方式进行相关动作包括应用数据修改和数据发送,实现了子公司系统及其微信企业号的统一管理和修改。In the embodiment of the present invention, the group system performs relevant actions including application data modification and data sending by sending request messages, thereby realizing unified management and modification of the subsidiary system and its WeChat enterprise account.
图7为本发明实施例提供的一种微信企业号的处理方法的流程图四。Figure 7 is a flow chart 4 of a method for processing a WeChat enterprise account provided by an embodiment of the present invention.
如图7所示,本发明实施例的微信企业号的处理方法还包括页面的配置:As shown in Figure 7, the WeChat enterprise account processing method according to the embodiment of the present invention also includes page configuration:
S701、获取子公司的微信企业号发送的H5页面配置请求,所述H5页面配置请求包括H5页面的URL地址。S701. Obtain the H5 page configuration request sent by the subsidiary's WeChat enterprise account. The H5 page configuration request includes the URL address of the H5 page.
在实际使用当中,为了用户操作的便利性等,一般会设置手机端浏览和操作的功能,例如在本实施例中,在已经将子公司的微信企业号配置给集团系统管理的情况下,需要重新配置页面的显示,集团系统获取子公司的微信企业号发送的H5页面配置请求,可以进行H5页面配置。In actual use, for the convenience of user operations, mobile phone browsing and operation functions are generally set up. For example, in this embodiment, when the WeChat enterprise account of a subsidiary has been configured for group system management, it is necessary to To re-configure the display of the page, the group system obtains the H5 page configuration request sent by the subsidiary's WeChat enterprise account, and can configure the H5 page.
S702、建立所述H5页面与所述子公司的关联关系,并将所述H5页面设置为集团系统手机端可访问的页面。S702: Establish an association between the H5 page and the subsidiary, and set the H5 page as a page accessible to the mobile terminal of the group system.
建立所述H5页面与所述子公司的关联关系,可以为后续集团系统配置具体的子公司对应的微信企业号的H5页面提供基础,将所述H5页面设置为集团系统手机端可访问的页面,可以让集团系统拥有配置权限。Establishing the association between the H5 page and the subsidiary can provide a basis for the subsequent group system configuration of the H5 page of the WeChat enterprise account corresponding to the specific subsidiary, and set the H5 page as a page accessible to the mobile phone of the group system , which allows the group system to have configuration permissions.
有了基础的配置以后,集团系统手机端用于输入网页访问请求,所述网页访问请求包括H5页面的URL以及加密的用户信息;所述子公司的微信企业号用于对所述加密的用户信息进行解密,并获取所述用户信息,在所述用户信息正确时,允许所述集团系统手机端显示H5页面。After the basic configuration is in place, the mobile phone terminal of the group system is used to input a web page access request. The web page access request includes the URL of the H5 page and encrypted user information; the WeChat enterprise account of the subsidiary is used to access the encrypted user information. The information is decrypted and the user information is obtained. When the user information is correct, the group system mobile terminal is allowed to display the H5 page.
具体的,集团系统获取子公司的微信企业号发送的H5页面配置请求,通过已录入集团系统的子公司的微信企业号的访问令牌获取发送请求者的用户信息,对用户信息添加时间戳,对添加时间戳的用户信息进行RSA加密,得到加密的用户信息,根据H5页面的URL以及加密的用户信息可以进行页面跳转,页面跳转至子公司系统后,通过子公司系统对加密的用户信息进行解密,根据解密信息和建立的所述H5页面与所述子公司的关联关系,在集团系统手机端中进行对应的H5页面的显示。Specifically, the group system obtains the H5 page configuration request sent by the subsidiary's WeChat enterprise account, obtains the user information of the requester through the access token of the subsidiary's WeChat enterprise account that has been entered into the group system, and adds a timestamp to the user information. Perform RSA encryption on the user information with timestamp added to obtain the encrypted user information. The page can be jumped based on the URL of the H5 page and the encrypted user information. After the page jumps to the subsidiary system, the encrypted users can be processed through the subsidiary system. The information is decrypted, and based on the decrypted information and the established relationship between the H5 page and the subsidiary, the corresponding H5 page is displayed on the mobile terminal of the group system.
本实施例通过将子公司系统的H5页面配置在集团系统手机端中,便于集团系统通过移动端进行统一显示和管理。In this embodiment, by configuring the H5 page of the subsidiary system in the mobile terminal of the group system, it is convenient for the group system to be displayed and managed uniformly through the mobile terminal.
综上所述,本发明实施例中能够体现出实现了多个微信企业号的统一管理,确保标签数据或欢迎语等能够通过集团系统进行统一修改;能够确保微信企业号的回调事件能够实时通过集团系统反馈到子公司系统;同时也保留了子公司系统独立完成自身微信企业号业务迭代的能力,能够最大程度的激发子公司的创新活力。In summary, the embodiments of the present invention can realize the unified management of multiple WeChat enterprise accounts, ensuring that tag data or welcome messages can be uniformly modified through the group system; it can ensure that callback events of WeChat enterprise accounts can be processed in real time. The group system feeds back to the subsidiary system; at the same time, it also retains the ability of the subsidiary system to independently complete its own WeChat enterprise account business iteration, which can stimulate the innovation vitality of the subsidiary to the greatest extent.
图8为本发明实施例提供的一种微信企业号的处理装置的结构图。如图8所示,该装置包括:接收模块801、处理模块802和转发模块803;Figure 8 is a structural diagram of a WeChat enterprise account processing device provided by an embodiment of the present invention. As shown in Figure 8, the device includes: a receiving module 801, a processing module 802 and a forwarding module 803;
接收模块801,用于接收微信企业号的回调事件消息,所述微信企业号为属于所述集团的子公司的微信企业号,所述回调事件消息对应的URL地址为所述集团系统的URL地址,所述回调事件消息中包括回调事件和应用参数。The receiving module 801 is configured to receive a callback event message from a WeChat enterprise account, where the WeChat enterprise account is a WeChat enterprise account belonging to a subsidiary of the group, and the URL address corresponding to the callback event message is the URL address of the group system. , the callback event message includes the callback event and application parameters.
在通过接收模块801接收回调事件消息之前,将所述微信企业号设置在回调模式;Before receiving the callback event message through the receiving module 801, set the WeChat enterprise account in callback mode;
在所述回调模式对应的地址栏中配置所述集团系统的URL地址,并在所述URL地址后添加所述微信企业号的应用对应的应用参数,所述应用参数包括应用标识和应用地址。Configure the URL address of the group system in the address bar corresponding to the callback mode, and add application parameters corresponding to the application of the WeChat enterprise account after the URL address. The application parameters include an application identifier and an application address.
处理模块802,用于根据所述应用参数、每个微信企业号的回调配置信息以及微信企业号与子公司系统的关联关系,确定目标子公司系统,所述回调配置信息为在每个微信企业号的回调模式下,在URL地址栏中配置的应用参数。The processing module 802 is used to determine the target subsidiary system based on the application parameters, the callback configuration information of each WeChat enterprise account, and the association between the WeChat enterprise account and the subsidiary system. The callback configuration information is the callback configuration information of each WeChat enterprise account. In the callback mode of the number, the application parameters configured in the URL address bar.
还用于在每个微信企业号的回调配置信息所包括的应用参数中,确定与所述回调事件消息所包括的应用参数匹配的应用参数所对应的目标微信企业号;It is also used to determine, among the application parameters included in the callback configuration information of each WeChat enterprise account, the target WeChat enterprise account corresponding to the application parameters that match the application parameters included in the callback event message;
根据所述微信企业号与子公司系统的关联关系,获取所述目标微信企业号关联的目标子公司系统。According to the association relationship between the WeChat enterprise account and the subsidiary system, the target subsidiary system associated with the target WeChat enterprise account is obtained.
转发模块803,用于根据所述目标子公司系统的回调消息转发地址,向所述目标子公司系统转发所述回调事件消息,其中,所述集团系统预先为每个子公司系统配置回调消息转发地址。Forwarding module 803, configured to forward 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. .
该接收模块801还用于从所述微信企业号的应用的封装接口中获取应用消息,其中,所述集团系统预先对所述微信企业号的多个应用接口分别进行封装,得到每个应用的封装接口,所述子公司通过所述封装接口访问所述微信企业号的应用。The receiving module 801 is also used to obtain application messages from the encapsulation interface of the application of the WeChat enterprise account, wherein the group system separately encapsulates the multiple application interfaces of the WeChat enterprise account in advance to obtain the application information of each application. Encapsulation interface, through which the subsidiary company accesses the application of the WeChat enterprise account.
该处理模块802还用于根据封装接口与应用的对应关系,获取所述微信企业号的目标应用;The processing module 802 is also used to obtain the target application of the WeChat enterprise account according to the corresponding relationship between the packaging interface and the application;
该转发模块803还用于根据所述应用消息,更新所述子公司的目标应用的数据,以实现所述集团系统与所述子公司系统的数据一致性。The forwarding module 803 is also configured to update the data of the subsidiary's target application according to the application message to achieve data consistency between the group system and the subsidiary system.
该处理模块802还用于在获取到请求消息时,根据所述集团系统所管理的子公司的数量N,生成N个子请求,所述N为大于1的整数,所述所管理的子公司为微信企业号的参数信息录入至所述集团系统的子公司;The processing module 802 is also configured to generate N sub-requests according to the number N of subsidiaries managed by the group system when the request message is obtained, where N is an integer greater than 1, and the managed subsidiaries are The parameter information of the WeChat enterprise account is entered into the subsidiary company of the said group system;
根据所述微信企业号的参数信息,将每个子请求发送至对应的子公司的微信企业号的应用的封装接口;According to the parameter information of the WeChat enterprise account, send each sub-request to the encapsulation interface of the application of the corresponding subsidiary's WeChat enterprise account;
其中,所述请求消息为标签数据修改请求或欢迎语推送请求。Wherein, the request message is a tag data modification request or a welcome message push request.
图9为本发明实施例提供的一种微信企业号的处理设备的硬件示意图。如图9所示,本实施例提供的微信企业号的处理设备90包括:至少一个处理器901和存储器902。该设备90还包括通信部件903。其中,处理器901、存储器902以及通信部件903通过总线904连接。Figure 9 is a hardware schematic diagram of a WeChat enterprise account processing device provided by an embodiment of the present invention. As shown in Figure 9, the WeChat enterprise account processing device 90 provided in this embodiment includes: at least one processor 901 and a memory 902. The device 90 also includes communication components 903 . Among them, the processor 901, the memory 902 and the communication component 903 are connected through the bus 904.
在具体实现过程中,至少一个处理器901执行所述存储器902存储的计算机执行指令,使得至少一个处理器901执行如上微信企业号的处理方法。In a specific implementation process, at least one processor 901 executes the computer execution instructions stored in the memory 902, so that at least one processor 901 executes the above method for processing WeChat enterprise accounts.
处理器901的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The specific implementation process of the processor 901 can be found in the above-mentioned method embodiments. The implementation principles and technical effects are similar and will not be described again in this embodiment.
在上述的图9所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application SpecificIntegrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above-mentioned embodiment shown in Figure 9, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), or other general-purpose processor, digital signal processor (English: Digital Signal Processor) Signal Processor (DSP for short), Application Specific Integrated Circuit (English: Application Specific Integrated Circuit (ASIC for short)), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the invention can be directly embodied and executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器。The memory may include high-speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(ExtendedIndustry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, the bus in the drawings of this application is 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. When the processor executes the computer-executable instructions, the method for processing a WeChat enterprise account as described above is implemented.
上述的计算机可读存储介质,上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned computer-readable storage medium, the above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable memory. 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.
一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific IntegratedCircuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。An exemplary readable storage medium is coupled to the processor such that the processor can read information from the readable storage medium 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 be located in Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also exist as discrete components in the device.
所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。The division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Claims (10)
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 CN114844860A (en) | 2022-08-02 |
CN114844860B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116132401B (en) * | 2022-12-31 | 2024-12-13 | 中国人寿保险股份有限公司上海数据中心 | A method and system for constructing an enterprise address book architecture |
CN116389413A (en) * | 2023-03-23 | 2023-07-04 | 广东博众智能科技投资有限公司 | Access address configuration method and device, electronic equipment and storage medium |
CN116757644A (en) * | 2023-08-11 | 2023-09-15 | 杭州面朝信息科技有限公司 | Method, system, electronic equipment and medium based on enterprise WeChat random friend adding |
Citations (7)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107657471B (en) * | 2016-09-22 | 2021-04-30 | 腾讯科技(北京)有限公司 | Virtual resource display method, client and plug-in |
-
2022
- 2022-04-28 CN CN202210461221.3A patent/CN114844860B/en active Active
Patent Citations (7)
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 |
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 |
---|
"基于消息推送的企业移动办公应用集成系统设计与实现";陈刚;《中国优秀硕士学位论文全文数据库——信息科技》(第第07期期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114844860A (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114844860B (en) | WeChat enterprise signal processing method, device, equipment and medium | |
EP3742696B1 (en) | Identity management method, equipment, communication network, and storage medium | |
CN105187372B (en) | A kind of data processing method based on mobile application entrance, device and system | |
US20200374686A1 (en) | Embedded Universal Integrated Circuit Card Profile Management Method and Apparatus | |
CN108762791B (en) | Firmware upgrading method and device | |
CN105635131B (en) | Transmit data method, device and server | |
CN113806777A (en) | File access realization method and device, storage medium and electronic equipment | |
US11057510B2 (en) | Controlling devices remotely using short message service | |
CN108270739A (en) | A kind of method and device of managing encrypted information | |
KR20190138994A (en) | Apparatus and method for installing and managing a profile by using messaging service | |
CN105204949A (en) | Method and device for actively triggering system broadcast | |
CN115225269A (en) | Key management method, device and system for distributed cryptographic card | |
CN114816785B (en) | Business data processing method, device, electronic device and storage medium | |
CN113642014A (en) | Data access system based on hybrid cloud and public cloud server | |
CN112966303A (en) | Data encryption and decryption method and device, electronic equipment and computer storage medium | |
US20200145395A1 (en) | System and method for generating and managing a key package | |
CN111581576B (en) | Development processing method and device based on micro-service and storage medium | |
CN113472785B (en) | Data processing method and device, electronic equipment and readable storage medium | |
CN115378592A (en) | Cryptographic service invocation method and system | |
CN113315758B (en) | Information agent method and device | |
CN108733700A (en) | Data processing method, device, system and storage medium | |
CN112529642B (en) | Invoice management method, system, equipment and storage medium based on block chain | |
CN112511892B (en) | Screen sharing method, device, server and storage medium | |
CN118054932A (en) | Method and system for operating object storage service based on proxy server and electronic equipment | |
CN117579277A (en) | Encryption and decryption method, device and equipment of information and storage medium |
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 |