当前位置:网站首页>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
边栏推荐
- Temperature and humidity measurement and display device based on Arduino
- Oracle composite query
- Drconv pytorch is changed to the same size of output and input
- (2022 Hangdian multi school III) 1009.package delivery (greedy)
- Examples of Oracle triggers
- Single arm routing (explanation + experiment)
- Flink principle (I) TTL management and fault tolerance mechanism of state
- Compiling and using log4cxx in rhel7.3
- Gossip: Recently, many friends talk about going abroad
- RPC 远程过程调用
猜你喜欢

(2022 Niuke multi school III) a-ancestor (LCA)

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

【StoneDB Class】入门第一课:数据库知识科普

(2022 Niuke multi school III) j-journey (Dijkstra)

Expose Prometheus metrics in Perl programs

C language implementation of guessing numbers Games project practice (based on srand function, rand function, switch statement, while loop, if condition criterion, etc.)

Record a pit dug by yourself~

杂谈:跟女儿聊为啥要学好文化课

Routing between VLANs (explanation + verification)

Am I delayed by the code... Unfortunately, I became a programmer
随机推荐
单元测试系统化讲解之Mockito
C语言实现猜数字小游戏项目实战(基于srand函数、rand函数,Switch语句、while循环、if条件判据等)
我是不是被代码给耽误了……不幸沦为一名程序员……
什么是真正的 HTAP ?(二)挑战篇
(2022 Hangdian multi school III) 1011.taxi (Manhattan maximum + 2 points)
Zabbix: map collected values to readable statements
基于Arduino的温度、湿度测量显示装置
A priority SQL problem
VLAN trunk experiment
Gossip: talk with your daughter about why you should learn culture lessons well
Bingbing's learning notes: classes and objects (middle)
RestTemplate 连接池配置
Jjwt generate token
Okaleido ecological core equity Oka, all in fusion mining mode
Using docker in MAC to build Oracle database server
Plato farm is expected to further expand its ecosystem through elephant swap
js正则表达式实现每三位数字加一个逗号
Multithreading [preliminary - Part 1]
Array method and loop in JS
面试复盘五