第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

微信服務(wù)器配置修改的時候總是提示token驗證失敗

第一次驗證是通過的,消息推送也非常好,最近換了服務(wù)器和域名,想變更過來,但每次修改總是提示token驗證失敗,查找了很多方法都不行,原碼如下,請各位大神賜教,在線等,非常著急
using?System;
using?System.Collections.Generic;
using?System.Web;
using?System.IO;
using?System.Text;
using?System.Net;

namespace?fz_police.Web
{
????///?<summary>
????///?Summary?description?for?wx
????///?</summary>
????public?class?wx?:?IHttpHandler
????{

????????public?void?ProcessRequest(HttpContext?param_context)
????????{
????????????//InterfaceTest();
????????????string?postString?=?string.Empty;
????????????if?(HttpContext.Current.Request.HttpMethod.ToUpper()?==?"POST")
????????????{
????????????????using?(Stream?stream?=?HttpContext.Current.Request.InputStream)
????????????????{
????????????????????Byte[]?postBytes?=?new?Byte[stream.Length];
????????????????????stream.Read(postBytes,?0,?(Int32)stream.Length);
????????????????????postString?=?Encoding.UTF8.GetString(postBytes);
????????????????????Handle(postString);
????????????????}
????????????}
????????}

????????///?<summary>
????????///?處理信息并應(yīng)答
????????///?</summary>
????????private?void?Handle(string?postStr)
????????{
????????????MessageHelp?help?=?new?MessageHelp();
????????????string?responseContent?=?help.ReturnMessage(postStr);

????????????HttpContext.Current.Response.ContentEncoding?=?Encoding.UTF8;
????????????HttpContext.Current.Response.Write(responseContent);
????????}

????????//成為開發(fā)者url測試,返回echoStr
????????public?void?InterfaceTest()
????????{
????????????string?token?=?"fzgonganweixin";
????????????if?(string.IsNullOrEmpty(token))
????????????{
????????????????return;
????????????}

????????????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();
????????????}
????????}

????????public?bool?IsReusable
????????{
????????????get
????????????{
????????????????return?false;
????????????}
????????}


????}
}

正在回答

0 回答

舉報

0/150
提交
取消

微信服務(wù)器配置修改的時候總是提示token驗證失敗

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號