当前位置:网站首页>The token verification of applet message push configuration failed. Please check and confirm
The token verification of applet message push configuration failed. Please check and confirm
2022-07-27 07:39:00 【Tianma 3798】
One 、 Applet message push configuration Token Check failed , Please check and confirm
Failed to add configuration , reason
As long as there is no echostr Return as is , You're going to report a mistake ;
Be careful , The return echostr The content of , instead of key=value Format
Examples are as follows :
return Content(reqData.echostr);Two 、 Applet message push configuration Verification emphasis
1. Make sure your code doesn't bug
2. WeChat Server verification request
Request parameters : The content of the request message is an empty string
3. Get the response after wechat request
Response parameter : Please return as is echostr Parameter contents , Then access becomes effective , Success as a developer , Otherwise, access fails
Sample code :
public IActionResult Callback()
{
try
{
using (StreamReader sr = new StreamReader(Request.Body, Encoding.UTF8))
{
//LogHelper.Info(" Accept event callback processing ");
string content = sr.ReadToEndAsync().Result;// Verify the content siege sent by the request
LogHelper.Info(content);
// Decryption processing
EventManage.ReqData reqData = new EventManage.ReqData();
reqData.signature = Request.Query["signature"];
reqData.timestamp = Request.Query["timestamp"];
reqData.nonce = Request.Query["nonce"];
reqData.echostr = Request.Query["echostr"];
EventManage _event = new EventManage();
_event.reqData = reqData;
var eventOrder = _event.LoadData(content);
if (string.IsNullOrEmpty(reqData.postdata))
return Content(reqData.echostr);
LogHelper.Info(" Processed order number :"+eventOrder.Order_Info.Trade_No);
// Logical processing , Modify order status , Recharge to the account , Award processing
RechargeRecordOperate _rechange = new RechargeRecordOperate();
_rechange.CallBack(eventOrder.Order_Info.Trade_No);
return Json(_event.Success());
}
}
catch (Exception ex)
{
LogHelper.Debug(" Applet message callback , Report errors :", ex);
return Error(ex);
}
}Pay attention to these basic problems .
more :
Wechat applet saves video to photo album wx.saveVideoToPhotosAlbum()
wx.scanCode(Object object) The use of,
The use of wechat applet recording interface -RecorderManager
边栏推荐
- UUID与secrets模块
- 杂谈:最近好多朋友谈出国……
- JS regular expression implementation adds a comma to every three digits
- Zabbix: map collected values to readable statements
- (2022 Niuke multi school III) a-ancestor (LCA)
- SQL statement batch update time minus 1 day
- 国内首款开源MySQL原生HTAP数据库即将发布!三大亮点抢先看,限量周边等你来~
- Clickhouse notes 1 | introduction, features | installation and use based on centos7 system | common data types | mergetree table engine | SQL operation
- (2022 Hangdian multi school III) 1011.taxi (Manhattan maximum + 2 points)
- 我是不是被代码给耽误了……不幸沦为一名程序员……
猜你喜欢
![Error when connecting to MySQL: public key retrieval is not allowed [solution]](/img/b3/41523d44924ec203e40453bace6627.png)
Error when connecting to MySQL: public key retrieval is not allowed [solution]

Bingbing's learning notes: classes and objects (middle)

单元测试系统化讲解之Mockito

C common function integration-2

Understanding and learning of node flow and processing flow in io

Jjwt generate token

Gossip: Recently, many friends talk about going abroad

vlan间路由(讲解+验证)

「翻译」SAP变式物料的采购如何玩转?看看这篇你就明白了

Clickhouse notes 1 | introduction, features | installation and use based on centos7 system | common data types | mergetree table engine | SQL operation
随机推荐
Grayog log server single node deployment
连接MySQL时报错:Public Key Retrieval is not allowed 【解决方法】
Single arm routing (explanation + experiment)
Cadence (XI) silk screen printing adjustment and subsequent matters
shell awk相关练习
Closed hash and open hash resolve hash conflicts
Use shell to calculate the sum of numbers in text
Prior Attention Enhanced Convolutional Neural Network Based Automatic Segmentation of Organs at Risk
Panabit SNMP配置
flink去重(二)解决flink、flink-sql去重过程中的热点问题
ChromeDriver下载-自用
杂谈:最近好多朋友谈出国……
Clickhouse notes 1 | introduction, features | installation and use based on centos7 system | common data types | mergetree table engine | SQL operation
Tcp/ip protocol analysis (tcp/ip three handshakes & four waves + OSI & TCP / IP model)
shell企业面试题练习
Top ten interview questions for software testing (with answers and analysis)
The difference between critical section (the code that accesses critical resources in each thread) and mutex (mutex between processes, shared memory, virtual address)
小程序消息推送配置 Token校验失败,请检查确认
Oracle cleans up the Database disk space of tables with referenced partitions
RestTemplate 连接池配置