Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to develop the function of Wechat Portal Application Management system in C #

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to develop the Wechat portal application management system function in C#. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Wechat portal application management system, using MVC+EasyUI-based route, because most domain name servers can only support .NET 4.0, so MVC3,C#4.0 as the basis for development, basically can be deployed on any .NET server.

In the Wechat portal system, implement the following functional operations:

1) realize the dynamic configuration and update of the menu to the server

2) dynamically define event and response messages to respond to menu actions in different industries and different needs

3) dynamic response instruction configuration processing to realize the message processing of the whole response chain

4) obtain subscriber and user grouping information, and can realize operations such as maintenance of user grouping information.

5) manage and update multimedia files, picture and text messages, etc., to facilitate preparation for customers to push messages.

6) use the ability to send messages in groups to selected subscribers or groups.

1. Wechat menu management

Manage the menu in the system, and submit the menu to the server to realize the dynamic configuration and generation of the menu, which can adapt to various needs of our system and achieve flexible processing.

The interface for adding the Wechat menu is shown below.

The modification interface for the Wechat menu is as follows

The Wechat menu definition is stored in the database. If you need to submit it to the Wechat server and take effect, you need to call the Wechat API API for processing. I added a processing method to submit to the server in the Controller controller of the page.

On the portal of the Wechat service account, the menu looks like this.

2. Handling of menu events

For dynamically generated menus, in most cases, it is used as a way of Click, that is, you need to define the event response operation for each menu. If we use Wechat, we can understand that Wechat handles events. Generally, we can respond to user text messages, picture messages, picture messages, and so on. Generally, text messages or picture and text messages are mostly used.

In order to further realize the reuse of response content, we manage the menu event definition and content definition separately, and the event definition can be combined with multiple text messages or multiple picture-text messages. in this way, we can achieve a more flexible use environment.

Add an event definition as follows

The response content coding of the event can be selected from the "Edit" button or from the "Edit" button. When the "Edit" button is selected, the system pops up a dialog box for the user to select the response content of the event.

After completing the selection, go back to the original new interface, and you will see that the returned record is the record we selected.

The editing interface for Wechat events is shown below, similar to the content of the new interface.

3. Wechat message content management

As mentioned above, the events of the menu are processed by associated event coding, and the event itself can combine multiple message contents, so the message content is the smallest unit that responds to customer operations, which can be a text message, a picture-text message, or a combination of multiple messages (of the same type).

In order to facilitate management, I have divided the message into picture and text, instruction, and text types, and can refine it into other types of messages as needed.

The interface for adding message content is shown below.

The effect of the interface on the mobile phone of the text message is as follows.

Whether it is a text message or a picture-text message, we uniformly define the message according to the definition of the picture-text message. if it is a text message, we only need to get the description content as the body of the message.

The editing interface of the picture and text message is shown below, which is mainly to fill in the complete content and pictures, as well as detailed links to the page.

The above message of the customer relationship management system, the interface effect displayed on the mobile phone is as follows. Click the link and you can switch to the message jump link address.

4. Maintenance of response instructions

The maintenance of response instructions is somewhat similar to event management, which is mainly to define some instructions used to facilitate the construction of the response chain of the response system, so as to achieve step-by-step operation instructions.

After the reply instruction is set in the background, the system can process it according to the response instruction chain. First of all, we need to provide a prompt interface to enter the response chain, as shown below.

However, after we select the answering system on the menu, the system returns a text prompt interface, as shown below.

This interface prompts some buttons, including a few fixed buttons and some business buttons, and enter a simple 1percent 6 to respond to the selection.

We see the interface above. After entering instruction 1, the system goes to the next level of response instructions, and then lists several keys and content prompts available for input.

When we continue to enter business button 1, the response is a graphic message, but also a detailed description of the button.

At this time, we can also enter the * button to return to the previous menu.

Enter 0 to switch to the customer service conversation mode, and any subsequent messages you send will be forwarded to the multi-customer service system.

After the user sends the message, the customer service assistant can receive the message in time and process the response with the customer.

5. Subscribe user management

In order to manage subscribers and grouping information more effectively, we can get relevant information from Wechat server for us to know the information of users we follow, and we can also prepare for subsequent mass messages.

The management of subscribers is shown below, which can be viewed by default by the user's region, which is expanded according to the level of country-province-city. Click synchronize data, you can download the user data on the server to the local update or write.

Subscribe to users and can also be viewed according to groups

Double-click to view the subscription user information and view the details of the subscription user interface as follows.

7. User grouping management

The interface for creating a grouping is shown below.

The interface for editing grouping information is shown below.

When the grouping is edited and saved, the system will remember what has been modified and synchronize, create a grouping on the server with the new local content, and modify the name of the modified grouping on the server. and then synchronize the list processing.

8. Multimedia management

Multimedia management refers to uploading local files to the Wechat server for preservation to facilitate the transmission of information and other operations. Wechat requires that some information must be uploaded to the server before it can be sent using its media ID.

After the file is successfully uploaded to the server, the "File upload logo" in the list is a string of BASE64 encoded data with an upload timestamp (because the Wechat server only retains media data for 3 days, data exceeding the expiration date will be automatically deleted.

At the same time, at the top of the list, there are two important functions: upload selected records and re-upload expired records. It is convenient for us to update our multimedia files.

The operation of adding the interface is as follows, in which the attachment upload control is introduced to operate the file, which is very convenient. Files that are uploaded successfully at the same time will be listed in the list.

Multimedia files can be in the following ways: pictures, voice, video, thumbnails.

The saved data records, file upload logo and timestamp are all empty. If we want to use them, we must upload them to Wechat's server, and then send the information according to its MediaId. The operation interface for uploading selected records is shown below.

After the multimedia file is uploaded smoothly, the recorded information is as follows.

9. Picture and text message processing

There are two types of teletext messages: single teletext messages and multiple teletext messages, which are shown below.

The multi-text message is as follows:

Like multimedia data management, picture and text messages are managed in the same way, first uploaded to the server, and then the message is sent. Multimedia messages also have time constraints. The specific management interface in our Wechat portal platform is shown below.

Add the picture-text message interface as shown below, after saving, you can continue to add multi-picture-text message content in the "other picture-text list" in the editing interface.

In the add interface, select thumbnails of picture and text messages, all specified by selection, and have been uploaded to the server images or thumbnail resources.

The added list of multiple images and texts can be viewed and managed.

After saving the record, and then continue to upload, the record interface after upload is shown below. If it is successful, return a server ID and timestamp after upload, otherwise an error will be prompted.

10. Session message management

In order to facilitate recording customer input and sending information, we record user input data in the Wechat portal management platform. The specific session message management interface is shown below.

We can double-click any record in the last 48 hours to send a message to the follower. If the message is sent successfully, the user can receive the relevant message in the Wechat account of the phone.

11. Group message management

In order to carry on the corresponding marketing operation to the customer, sometimes we need to carry on the mass message to the designated group owner or person, let the customer know the information and activities of our products regularly.

Because group messages, in addition to text messages, can be directly edited and sent, other data must be multimedia files or picture-text message contents uploaded to the server, so the previous multimedia management and picture-text message management, it is mainly introduced for the purpose of sending group messages. With the above multimedia and multi-picture and text information, we can select records from the platform to send, so as to save the troublesome joint work and achieve efficient information group sending operation.

Messages sent in groups can be viewed in groups or by message type, which makes it convenient for us to manage them.

Add picture and text messages, you can select text messages, picture messages, picture messages and other contents, according to different contents, the interface provides different selection operations.

There are two types of group messages: one is based on the grouping, then the corresponding packet can be selected from the platform; the other is sent according to the user's OpenID and provided to the user for input. The main interface is shown below.

This is the end of this article on "how to develop Wechat portal application management system functions". I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report