A CMS method and system for WeChat public platform
Through the CMS method of the WeChat public platform, UnionID authentication and WeChat password-free login are used to solve the problem of lag in the menu display of the WeChat public account, realize real-time menu maintenance and multiple sets of display templates, and improve the user operating experience.
Patent Information
- Application Number
- CN202010616564.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-01
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-07-01
AI Technical Summary
When the WeChat public account menu URL connects to Internet resources, the display of user information lags behind. After the software company's development process is completed, the company's product promotion has missed the best period, and there is a lack of real-time UI interface maintenance tools.
Using the CMS method of the WeChat public platform, establish a connection with the system through the CMS backend login URL, obtain the UnionID and perform authentication comparison, provide WeChat password-free login and built-in browser operation, customize the menu and information display according to the terminal type, and open the menu Maintenance functions.
It realizes password-free login and real-time menu maintenance of the WeChat public platform, provides multiple sets of display templates, improves user operating experience, allows users to maintain menus by themselves, and meets real-time information display needs.
Smart Images

Figure CN111753242B_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a CMS method and system for a WeChat public platform, and relates to the technical field of software front-end PHP. Background Art
[0002] With the rapid development of WeChat, WeChat public accounts have become an important way for companies, enterprises and individuals to promote products and goods, and to interact and communicate in all directions. Public accounts support menus, which can connect to Internet resources through menu URLs and display relevant information to users in the form of web pages. Web pages are mostly maintained and upgraded by software company R&D personnel, which will have a very large lag in time, causing users to urgently need a set of UI interfaces for product promotion. However, after the software company has completed a series of development processes, the company's product promotion has missed the best time.
[0003] Based on the above problems, the present invention proposes a CMS method and system for WeChat public platform to solve the above problems. Summary of the invention
[0004] In view of the problems of the prior art, the present invention provides a CMS method and system for the WeChat public platform. The technical solution adopted is: a CMS method for the WeChat public platform, wherein the specific steps of the method are as follows:
[0005] S1 establishes a connection with the CMS system through the CMS backend login URL;
[0006] The S2CMS system confirms the user request;
[0007] The S3CMS system obtains the UnionID;
[0008] The S4CMS system uses the UnionID to perform an authentication comparison with the administrator user UnionID of the CMS system. After a successful comparison, you can log in to the backend management interface.
[0009] The specific steps of the S2CMS system confirming the user request are as follows:
[0010] S201 CMS system requests WeChat OAuth2.0 authorization login from WeChat Open Platform;
[0011] S202 WeChat Open Platform sends a user confirmation request to the WeChat user;
[0012] S203 The user clicks to confirm.
[0013] The specific steps for the S3CMS system to obtain UnionID are as follows:
[0014] S301 WeChat Open Platform redirects to the CMS page for obtaining UnionID, with the authorization temporary ticket code;
[0015] The S302CMS system exchanges the code with APPID and APPSECRET for ACCESS_TOKEN;
[0016] S303 WeChat Open Platform returns ACCESS_TOKEN to the CMS system;
[0017] The S304CMS system uses ACCESS_TOKEN and OPENID to obtain UnionID.
[0018] The administrator user UnionID in S4 is established by the super user. The specific steps are as follows:
[0019] S401 Super user logs in to the CMS backend management interface through a browser;
[0020] S402 Enter the user list page through the user management menu;
[0021] S403: Add a new user by using the add button at the top of the user list page;
[0022] S404: Input the administrator's login account and password to obtain the UnionID, and repeat the operation of obtaining the UnionID to obtain the UnionID;
[0023] S405 uses the submit button to submit the administrator user information.
[0024] A CMS system for the WeChat public platform, the system specifically includes a connection module, a confirmation module, an acquisition module and a comparison module:
[0025] Connection module: establish connection with the CMS system through the CMS backend login URL;
[0026] Confirmation module: The CMS system confirms the user request;
[0027] Acquisition module: CMS system obtains UnionID;
[0028] Comparison module: The CMS system performs an authentication comparison with the administrator user UnionID of the CMS system through UnionID. After the comparison is successful, you can log in to the background management interface.
[0029] The confirmation module specifically includes a login module, a request sending module and an operation module:
[0030] Login module: The CMS system requests WeChat OAuth2.0 authorization login from WeChat Open Platform;
[0031] Request sending module: WeChat Open Platform sends a user confirmation request to the WeChat user;
[0032] Operation module: The user clicks to confirm.
[0033] The acquisition module specifically includes a ticket acquisition module, an exchange module, a return module and an ID acquisition module:
[0034] Ticket acquisition module: WeChat Open Platform redirects to the CMS page for obtaining UnionID, with the authorization temporary ticket code;
[0035] Exchange module: CMS system exchanges ACCESS_TOKEN through code plus APPID and APPSECRET;
[0036] Return module: WeChat Open Platform returns ACCESS_TOKEN to the CMS system;
[0037] ID acquisition module: The CMS system uses ACCESS_TOKEN and OPENID to obtain UnionID.
[0038] The administrator user UnionID in the comparison module is established by the super user. The comparison module specifically includes an intervention module, a list module, an addition module, a repeat module and a submission module:
[0039] Intervention module: The super user logs in to the CMS backend management interface through a browser;
[0040] List module: enter the user list page through the user management menu;
[0041] Add module: Use the Add button at the top of the user list page to add a new user;
[0042] Repeat module: Enter the administrator's login account and password to obtain the UnionID, then repeat the operation of obtaining the UnionID to obtain the UnionID;
[0043] Submission module: Use the submit button to submit administrator user information.
[0044] The beneficial effects of the present invention are as follows: the present invention uses the WeChat public platform to log in to the CMS management system, provides a method of logging in to the CMS system without a password through WeChat, and operates the CMS system in the WeChat built-in browser. The CMS determines which display method to use for interface display according to the terminal type, and provides users with a plurality of display templates for them to use by customizing menus, maintaining information in menus, and reviewing through template types on their mobile phones. At the same time, the menu maintenance function is opened to users, and users can maintain the system menus according to their needs. At the same time, all operations can be maintained in the background through the user's official account, which brings a new experience to users in terms of operation mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 is a flow chart of the method of the present invention; Figure 2 It is a structural schematic diagram of the system of the present invention; Figure 3 This is the sequence diagram of WeChat public platform accessing CMS backend management; Figure 4 This is a diagram of the WeChat public platform accessing the CMS backend module. DETAILED DESCRIPTION
[0047] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0048] Embodiment 1:
[0049] A CMS method for WeChat public platform, wherein the specific steps of the method are as follows:
[0050] S1 establishes a connection with the CMS system through the CMS backend login URL;
[0051] The S2CMS system confirms the user request;
[0052] The S3CMS system obtains the UnionID;
[0053] The S4CMS system uses UnionID to perform authentication comparison with the administrator user UnionID of the CMS system. After the comparison is successful, you can log in to the backend management interface;
[0054] First, the administrator WeChat user bound to the system associates the WeChat public platform with the CMS system by subscribing to the WeChat public account. The WeChat user enters the keyword "backstage", and the WeChat public account will launch the CMS system backstage login link. This link will authenticate the user's UnionID, and after successful authentication, enter the CMS system maintenance interface.
[0055] When obtaining the user UnionID for authentication and logging into the CMS, the method of the present invention is used to first establish a connection with the CMS system through the CMS backend login URL according to S1, and then the CMS system confirms the user request through S2. The CMS system obtains the UnionID according to S3, and finally the CMS system performs authentication comparison between the UnionID and the administrator user UnionID of the CMS system according to S4. After the comparison is successful, the backend management interface can be logged in;
[0056] The present invention uses WeChat public platform to log in to the CMS management system, provides a way to log in to the CMS system without password, and operates the CMS system in WeChat's own browser. This CMS determines which display method to use for interface display according to the terminal type, and allows users to customize menus, maintain information in menus, and review them through template types on their mobile phones. It brings a new experience to users in terms of operation mode;
[0057] Furthermore, the specific steps of the S2CMS system confirming the user request are as follows:
[0058] S201 CMS system requests WeChat OAuth2.0 authorization login from WeChat Open Platform;
[0059] S202 WeChat Open Platform sends a user confirmation request to the WeChat user;
[0060] S203 The user clicks to confirm;
[0061] Furthermore, the specific steps for the S3CMS system to obtain UnionID are as follows:
[0062] S301 WeChat Open Platform redirects to the CMS page for obtaining UnionID, with the authorization temporary ticket code;
[0063] The S302CMS system exchanges the code with APPID and APPSECRET for ACCESS_TOKEN;
[0064] S303 WeChat Open Platform returns ACCESS_TOKEN to the CMS system;
[0065] The S304CMS system uses ACCESS_TOKEN and OPENID to obtain UnionID.
[0066] Furthermore, the administrator user UnionID in S4 is established by the super user, and the specific steps are as follows:
[0067] S401 Super user logs in to the CMS backend management interface through a browser;
[0068] S402 Enter the user list page through the user management menu;
[0069] S403: Add a new user by using the add button at the top of the user list page;
[0070] S404: Input the administrator's login account and password to obtain the UnionID, and repeat the operation of obtaining the UnionID to obtain the UnionID;
[0071] S405 uses the submit button to submit the administrator user information.
[0072] Embodiment 2:
[0073] A CMS system for the WeChat public platform, the system specifically includes a connection module, a confirmation module, an acquisition module and a comparison module:
[0074] Connection module: S1 establishes a connection with the CMS system through the CMS backend login URL;
[0075] Confirmation module: S2CMS system confirms the user request;
[0076] Acquisition module: S3CMS system obtains UnionID;
[0077] Comparison module: The S4CMS system performs authentication comparison with the administrator user UnionID of the CMS system through UnionID. After the comparison is successful, you can log in to the backend management interface;
[0078] First, the administrator WeChat user bound to the system associates the WeChat public platform with the CMS system by subscribing to the WeChat public account. The WeChat user enters the keyword "backstage", and the WeChat public account will launch the CMS system backstage login link. This link will authenticate the user's UnionID, and after successful authentication, enter the CMS system maintenance interface.
[0079] When obtaining the user UnionID for authentication and logging into the CMS, the method of the present invention is first used to establish a connection with the CMS system through the CMS backend login URL using the connection module, and then the CMS system confirms the user request through the confirmation module. The CMS system obtains the UnionID according to the acquisition module, and finally the CMS system uses the comparison module to compare the UnionID with the administrator user UnionID of the CMS system for authentication. After the comparison is successful, the backend management interface can be logged in;
[0080] The present invention uses WeChat public platform to log in to the CMS management system, provides a way to log in to the CMS system without password, and operates the CMS system in WeChat's own browser. This CMS determines which display method to use for interface display according to the terminal type, and allows users to customize menus, maintain information in menus, and review them through template types on their mobile phones. It brings a new experience to users in terms of operation mode;
[0081] Furthermore, the confirmation module specifically includes a login module, a request sending module and an operation module:
[0082] Login module: The CMS system requests WeChat OAuth2.0 authorization login from WeChat Open Platform;
[0083] Request sending module: WeChat Open Platform sends a user confirmation request to the WeChat user;
[0084] Operation module: User clicks to confirm;
[0085] Furthermore, the acquisition module specifically includes a ticket acquisition module, an exchange module, a return module and an ID acquisition module:
[0086] Ticket acquisition module: WeChat Open Platform redirects to the CMS page for obtaining UnionID, with the authorization temporary ticket code;
[0087] Exchange module: CMS system exchanges ACCESS_TOKEN through code plus APPID and APPSECRET;
[0088] Return module: WeChat Open Platform returns ACCESS_TOKEN to the CMS system;
[0089] ID acquisition module: The CMS system uses ACCESS_TOKEN and OPENID to obtain UnionID.
[0090] Furthermore, in the comparison module, the administrator user UnionID is established by a super user, and the comparison module specifically includes an intervention module, a list module, an addition module, a repeat module, and a submission module:
[0091] Intervention module: The super user logs in to the CMS backend management interface through a browser;
[0092] List module: enter the user list page through the user management menu;
[0093] Add module: Use the Add button at the top of the user list page to add a new user;
[0094] Repeat module: Enter the administrator's login account and password to obtain the UnionID, then repeat the operation of obtaining the UnionID to obtain the UnionID;
[0095] Submission module: Use the submit button to submit administrator user information.
[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A CMS method for WeChat public platform, characterized by The specific steps of the method are as follows: S1 establishes a connection with the CMS system through the CMS backend login URL; The S2CMS system confirms the user request; The S3CMS system obtains the UnionID; The specific steps for the S3CMS system to obtain UnionID are as follows: S301 WeChat Open Platform redirects to the CMS page for obtaining UnionID, with the authorization temporary ticket code; The S302CMS system exchanges the code with APPID and APPSECRET for ACCESS_TOKEN; S303 WeChat Open Platform returns ACCESS_TOKEN to the CMS system; The S304CMS system uses ACCESS_TOKEN and OPENID to obtain UnionID; The S4CMS system uses UnionID to perform authentication comparison with the administrator user UnionID of the CMS system. After the comparison is successful, you can log in to the backend management interface: The administrator user UnionID in S4 is created through the super user. The specific steps are as follows: S401 Super user logs in to the CMS backend management interface through a browser; S402 Enter the user list page through the user management menu; S403: Add a new user by using the add button at the top of the user list page; S404: Input the administrator's login account and password to obtain the UnionID, and repeat the operation of obtaining the UnionID to obtain the UnionID; S405 uses the submit button to submit the administrator user information.
2. The CMS method for WeChat public platform according to claim 1, characterized in that The specific steps of the S2CMS system confirming the user request are as follows: S201 CMS system requests WeChat OAuth2.0 authorization login from WeChat Open Platform; S202 WeChat Open Platform sends a user confirmation request to the WeChat user; S203 The user clicks to confirm.
3. A CMS system for WeChat public platform, characterized by The system specifically includes a connection module, a confirmation module, an acquisition module and a comparison module: Connection module: establish connection with the CMS system through the CMS backend login URL; Confirmation module: The CMS system confirms the user request; Acquisition module: CMS system obtains UnionID; Comparison module: The CMS system uses UnionID to perform authentication comparison with the administrator user UnionID of the CMS system. After the comparison is successful, you can log in to the backend management interface. The acquisition module specifically includes the ticket acquisition module, the exchange module, the return module and the ID acquisition module: Ticket acquisition module: WeChat Open Platform redirects to the CMS page for obtaining UnionID, with the authorization temporary ticket code; Exchange module: CMS system exchanges ACCESS_TOKEN through code plus APPID and APPSECRET; Return module: WeChat Open Platform returns ACCESS_TOKEN to the CMS system; ID acquisition module: CMS system uses ACCESS_TOKEN and OPENID to obtain UnionID; The administrator user UnionID in the comparison module is established by the super user. The comparison module specifically includes an intervention module, a list module, an addition module, a repeat module and a submission module: Intervention module: The super user logs in to the CMS backend management interface through a browser; List module: enter the user list page through the user management menu; Add module: Use the Add button at the top of the user list page to add a new user; Repeat module: Enter the administrator's login account and password to obtain the UnionID, then repeat the operation of obtaining the UnionID to obtain the UnionID; Submission module: Use the submit button to submit administrator user information.
4. The CMS system for WeChat public platform according to claim 3, characterized in that The confirmation module specifically includes a login module, a request sending module and an operation module: Login module: The CMS system requests WeChat OAuth2.0 authorization login from WeChat Open Platform; Request sending module: WeChat Open Platform sends a user confirmation request to the WeChat user; Operation module: User clicks to confirm.
