当前位置:网站首页>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
边栏推荐
- 洛谷P3313 [SDOI2014]旅行(树链+边权转点权)
- Introduction to the main functions of the can & canfd comprehensive test and analysis software lkmaster of the new usbcan card can analyzer
- Bat start NET Core
- Est - il sûr d'ouvrir un compte d'actions maintenant via le lien d'ouverture de compte coiffé?
- 洛谷P2048 [NOI2010] 超级钢琴(RMQ+优先队列)
- Is it safe to open an account through the haircut account opening link now?
- 將數據導入到MATLAB
- 牛客:飞行路线(分层图+最短路)
- 420-二叉树的层序遍历2(429. N 叉树的层序遍历、515.在每个树行中找最大值、116.填充每个节点的下一个右侧节点指针、104.二叉树的最大深度、111.二叉树的最小深度)
- STM32CubeMX 學習(5)輸入捕獲實驗
猜你喜欢

CVPR 2022 oral 2D images become realistic 3D objects in seconds

C examples of using colordialog to change text color and fontdialog to change text font

企业全面云化的时代——云数据库的未来

Can transparent cloud gateway caniot and candtu record can messages and send and receive can data remotely

Static web server

力扣 272. 最接近的二叉搜索树值 II 递归

Can bus working condition and signal quality "physical examination"

Electronics: Lesson 008 - Experiment 6: very simple switches

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)

TCP acceleration notes
随机推荐
Three Siemens fire-fighting hosts fc18 are equipped with can optical transceiver for optical fiber redundant ring network networking test
电子学:第011课——实验 10:晶体管开关
c#搭建ftp服务器并实现文件上传和下载
allgero报错:Program has encountered a problem and must exit. The design will be saved as a .SAV file
Deep learning series 48:deepfaker
洛谷P2839 [国家集训队]middle(二分 + 主席树 + 区间合并)
时钟刻度盘的绘制
DNS protocol and its complete DNS query process
网络模型——OSI模型与TCP/IP模型
牛客:飞行路线(分层图+最短路)
Matlab code format one click beautification artifact
420-二叉树的层序遍历2(429. N 叉树的层序遍历、515.在每个树行中找最大值、116.填充每个节点的下一个右侧节点指针、104.二叉树的最大深度、111.二叉树的最小深度)
[Mobius inversion]
50 pieces of professional knowledge of Product Manager (IV) - from problem to ability improvement: amdgf model tool
MySQL simple permission management
静态网页服务器
Dietary intervention reduces cancer treatment-related symptoms and toxicity
How do I install the software using the apt get command?
企业全面云化的时代——云数据库的未来
Import data into Matlab