Sometimes it is necessary to check whether the customer has been canceled or not. WeChat official account. , Only if the relevant template information is not cancelled 、 Sending picture and text information 、 Video, voice and other information sent to customers is meaningful . You can also see how many customers are still on the official account of our WeChat public. . Facilitate official account marketing in the later stage . There's not a lot of crap, just code it .

 1 <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
7 <title> Check whether the customer is canceling WeChat official account. </title>
8 </head>
9 <body>
10 <%
11 On Error Resume Next
12 Dim WxObj
13 Set WxObj = Server.CreateObject("WeixinDLL.WeixinClass")
14 WxObj.SetAppID = "AppID"
15 WxObj.SetAppSecret = "AppSecret"
16
17 Dim token
18 token = WxObj.Get_Token ' Current user's access_token
19 If Trim(token) = "" Or IsNull(token) Then Response.Write " No valid access_token, Result in template message sending failure !" : Response.End()
20
21 Dim pJson
22 pJson = WxObj.IfCancelWX(C_CeoOpenID, token)
23 pJson = Trim(pJson)
24 If Cstr(pJson) = "0" Then
25 Response.Write " Cancel the attention "
26 ElseIf Cstr(pJson) = "1" Then
27 Response.Write " Followed "
28 ElseIf Cstr(pJson) = "2" Then
29 Response.Write " illegal OpenID"
30 End If
31 Set WxObj = Nothing
32 If Err Then Response.Write Err.Description
33 %>
34 </body>
35 </html>

Note that the above procedure uses WeixinDLL Components , If you need this component , You can contact me :z18670092211

ASP Check whether customers will cancel more articles about WeChat official account.

  1. asp.net mvc WeChat official account (JsApi) Payment introduction

    This article mainly explains asp.net mvc How to realize official account payment under the framework , The official account payment mainly includes three core codes. , Front desk transfer payment js Code . Corresponding js Call parameters to generate code . Payment success processing code . One . Wechat payment method Wechat provides a variety of services ...

  2. ASP.NET WeChat official account AccessToken

    access_token The official account is the only global interface invoke credential. , Official account calls for interfaces. access_token. Developers need to keep it properly .access_token At least keep the storage of 512 Character space .acces ...

  3. WeChat official account generates two-dimensional code with parameters asp Source download

    I have nothing to do at night , Contact a friend , Let's help write a WeChat official account. asp Generate QR code with parameters , If someone else has swept the map, if he has paid attention to the official account number. , Directly into the official account. , If you don't pay attention, you will be prompted to pay attention , After paying attention, the wechat user information will be automatically obtained and saved ...

  4. C#/ASP.NET MVC WeChat official account interface development from zero development ( Four ) Wechat custom menu ( Source code attached )

    C#/ASP.NET MVC Wechat interface development article directory : 1.C#/ASP.NET MVC WeChat official account interface development from zero development ( One ) Access to wechat public platform 2.C#/ASP.NET MVC WeChat official account interface development from zero development ( ...

  5. ASP.NET MVC WeChat official account payment , Wechat public platform configuration

    WeChat official account payment , First, log on to WeChat official account for configuration. : First step : Configure web authorized domain name

  6. C#/ASP.NET MVC WeChat official account interface development from zero development ( Two ) Receive wechat message and analyze it XML( Source code attached )

    Article reading guidance : C# WeChat official account interface development from zero development ( One ) Access to wechat public platform After wechat access , Wechat communicates through our access address , The principle is that wechat users send messages to wechat public accounts , Wechat server will send the message as xml Sent to us in the form of ...

  7. C#/ASP.NET MVC WeChat official account interface development from zero development ( 3、 ... and ) Reply message ( Source code attached )

    C#/ASP.NET MVC Wechat interface development article directory : 1.C#/ASP.NET MVC WeChat official account interface development from zero development ( One ) Access to wechat public platform 2.C#/ASP.NET MVC WeChat official account interface development from zero development ( ...

  8. WeChat official account token Of asp.net Script

    The boss asked me to create a WeChat official account. . ok . It's all over the front EZ, Until you want to use one token Verify the validity of the server . Look at the document , It means wechat server GET Request access to your server . Which includes signature,nonce, ...

  9. ASP.NET MVC4 WeChat official account development web page authorization ( One ): Foundation setting

    First you have to register and certify the official account of a person or enterprise WeChat public. === Service number to ensure access to the following interfaces : Then open the function settings in the official account settings, find business domain names and web page authorized domain names, fill in your domain name respectively. ( notes : Registered domain names ), As shown in the figure below : Come here ...

  10. ASP.NET MVC4 WeChat official account development web page authorization ( Two ): Through the official account AppID( application ID) and AppSecret( Application key ) Get web page authorization openid

    ASP.NET MVC4 WeChat official account development web page authorization ( One ): Foundation setting Through the last article, we have set up the basic development environment , Now open the development environment, here I use vs2013, In the following ways : Splice request link redirected to ...

Random recommendation

  1. To write Windows Service questions 2: Explore the relationship between services and installers

    First , Let's get two services , One is called “ The plane ”, One is called “ train ”. public class FeiJiService : ServiceBase { public FeiJiService() { Service ...

  2. HDU-1698 JUST A HOOK Line segment tree

    Nearest learning line segment tree , I did some classic exercises Just a Hook Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (J ...

  3. Fill- The problem of pouring water (Uva-10603- Implicit graph path finding problem )

    The original title is :https://uva.onlinejudge.org/external/106/10603.pdf There are three cups without scale , Their capacities are a, b, c, At first, there was only c The cup in the bottle is full of water , Other quilts ...

  4. ELK Learning record 1 : First time to know ELK

    ELK yes elastic The company provides a complete set of collection logs and analyzes the products displayed , respectively Elasticsearch.Logstash and kibana. ( A cut from the official website ) Let's start with a brief personal understanding : Elasticsea ...

  5. Use dom4j Technical right xml Add, delete and modify the document ( One )

    The whole process is as follows , Some important code meanings are explained in detail : import java.io.File; import java.io.FileOutputStream; import org.dom4j ...

  6. ENVI5.3 Image resampling and tiff preservation

    Input --- I used to use envi4.5 After processing the 2013 Classified image --- Output resampled image Search directly in the toolbar resize data--- Come out of the dialog box , There are several ways ----sample line Refers to the column number , Sure ...

  7. Git daily chemical MES- Basic steps of weighing in daily chemical production

    Weighing materials in daily chemical industry is a very important link , In the whole production process, weighing takes a long time , Especially in the case of high accuracy of the material , In case of large quantity, it is difficult to call materials , Summarize the basic process of manual weighing : (1) Weighing task preparation : According to the production order or production ...

  8. Feature Selection

    Two aspects ( Divergence , relevant )~ Three ways (FWE) F: Square pickup truck W:RFE E: Punishment tree One . brief introduction After our data processing , Before feeding the algorithm , Take into account the actual situation of the features , Feature selection is usually considered from two aspects : 1) Is the feature divergent : If one ...

  9. CEdit Control [ turn ]

    1.CButton.CEdit Wait for CWnd It inherits important functions : Use CWnd::SetWindowText and CWnd::GetWindowText You can set and get text on a window or control .CWnd::SetFo ...

  10. Wechat payment V3 About the version

    Recently, we are accessing wechat payment , Many bloggers also make complaints about the various ways to solve the problem. , Based on the experience sharing , Let me also talk about my way to fill the hole . 1: preparation , First, apply for registration of a official account. —— Service number , Then open the wechat payment function , ...