1.0啟用開發者模式
①填寫伺服器設定
啟用開發模式需要先成為開發者,而且編輯模式與開發模式只能選擇一個(進入微信公眾平台=>開發=>基本配置)就可以看到以下的介面:
public void InterfaceTest() { string token = "配置时填写的token"; string echoString = HttpContext.Current.Request.QueryString["echoStr"]; string signature = HttpContext.Current.Request.QueryString["signature"]; string timestamp = HttpContext.Current.Request.QueryString["timestamp"]; string nonce = HttpContext.Current.Request.QueryString["nonce"]; if (!string.IsNullOrEmpty(echoString)) { HttpContext.Current.Response.Write(echoString); HttpContext.Current.Response.End(); } }更多C#微信開發系列-啟用開發者模式相關文章請關注PHP中文網!
#