当前位置:网站首页>Wechat applet opening customer service message function development
Wechat applet opening customer service message function development
2022-06-25 08:12:00 【On procedural retreat】
1. Log in to the background of wechat applet
2. Find the development... Under the left column - Set up - Message push
Make the following configuration , Before clicking submit , You need to write the code on the server first
3. Server code
function checkSignature()
{
$signature = $_GET["signature"];
$timestamp = $_GET["timestamp"];
$nonce = $_GET["nonce"];
$echostr = $_GET["echostr"];
$token = "g******o";
$tmpArr = array($token, $timestamp, $nonce);
sort($tmpArr, SORT_STRING);
$tmpStr = implode( $tmpArr );
$tmpStr = sha1( $tmpStr );
if( $tmpStr == $signature ){
echo $echostr;
}else{
echo false;
}
4. Click on the submit , Configuration is successful , If you are prompted token Incorrect , Look at the server background token And applet background token Is it consistent , Whether the server URL can be opened , Configured url Whether the address is consistent with the address on the server
5. After successful configuration , Start developing code
边栏推荐
猜你喜欢
力扣 272. 最接近的二叉搜索树值 II 递归
Network model -- OSI model and tcp/ip model
Overview of image super score: the past and present life of image super score in a single screen (with core code)
Matlab code format one click beautification artifact
飞机引气系统的建模与故障仿真
將數據導入到MATLAB
使用apt-get命令如何安装软件?
剑指offer刷题(中等等级)
网络模型——OSI模型与TCP/IP模型
The era of enterprise full cloud -- the future of cloud database
随机推荐
唐老师讲运算放大器(第七讲)——运放的应用
自制坡道,可是真的很香
初体验完全托管型图数据库 Amazon Neptune
Electronics: Lesson 008 - Experiment 6: very simple switches
函数尽量不要通过变量指定操作类型
Ffmpeg+sdl2 for audio playback
图像超分综述:超长文一网打尽图像超分的前世今生 (附核心代码)
Dietary intervention reduces cancer treatment-related symptoms and toxicity
Electronics: Lesson 012 - Experiment 13: barbecue LED
洛谷P2839 [国家集训队]middle(二分 + 主席树 + 区间合并)
【补题】2021牛客暑期多校训练营4-n
深度学习系列45:图像恢复综述
Anaconda based module installation and precautions
Electronics: Lesson 014 - Experiment 15: intrusion alarm (Part I)
417 sequence traversal of binary tree 1 (102. sequence traversal of binary tree, 107. level traversal of binary tree II, 199. right view of binary tree, 637. layer average of binary tree)
Deep learning series 48:deepfaker
Matlab代码格式一键美化神器
CVPR 2022 oral 2D images become realistic 3D objects in seconds
测一测现在的温度
Ubuntu18下登录mysql 5.7设置root密码