当前位置:网站首页>微信小程序开通客服消息功能开发
微信小程序开通客服消息功能开发
2022-06-25 06:40:00 【程序务虚论】
1.登录微信小程序后台
2.找到左侧栏下面的开发-设置-消息推送
进行以下配置,在点击提交之前,需要先在服务器上写好代码

3.服务器代码
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.点击提交,配置成功,如果提示token不正确,要看下服务器后台的token和小程序后台的token是否一致,服务器网址是否能打开,配置的url地址和服务器上的地址是否一致
5.配置成功后,开始开发代码
边栏推荐
- 无“米”,也能煮“饭”利用“点云智绘”反演机载LiDAR林下缺失地面点攻略
- Sichuan earth microelectronics ca-is1300 isolated operational amplifier for current detection is on the market
- Construction of occupancy grid map
- 点云智绘在智慧工地中的应用
- C get the version number of exe - file version and assembly version
- JMeter introduction practice ----- use of global variables and local variables
- Leetcode daily question - 515 Find the maximum value in each tree row
- Accès à la boîte aux lettres du nom de domaine Lead à l'étranger
- Zhugeliang vs pangtong, taking distributed Paxos
- 【批处理DOS-CMD命令-汇总和小结】-外部命令-cmd下载命令、抓包命令(wget)
猜你喜欢
![[batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)](/img/2b/4495a6cd41a2dd4e7a20ee60b398c9.png)
[batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)

VectorDraw Developer Framework 10.10

VectorDraw Web Library 10.10
![[leetcode] two num · sum of two numbers](/img/9e/79c9deae9f853a265b5b536998b655.png)
[leetcode] two num · sum of two numbers

Harmony food menu interface

点云智绘在智慧工地中的应用

Keil and Proteus joint commissioning

Manufacturing process of PCB 2021-10-11

Chuantu microelectronics breaks through the high-end isolator analog chip market with ca-is3062w

【批处理DOS-CMD命令-汇总和小结】-应用程序启动和调用、服务和进程操作命令(start、call、)
随机推荐
Collection of common terms and meanings in forestry investigation based on lidar
【QT】qtcreator便捷快捷键以及QML介绍
[batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)
C#入门教程
用太极拳讲分布式理论,真舒服!
【QT】Qt 5 的程序:打印文档
Audio (V) audio feature extraction
Full range of isolator chips with integrated isolated power supply
Application scheme | application of Sichuan earth microelectronics ca-is398x in PLC field
smartBugs安装小问题总结
JMeter introduction practice ----- use of global variables and local variables
指南针可以开股票账户吗?安全吗?
This year, I graduated
Chuantuwei ca-is3720lw alternative material No. iso7820fdw
三年营收连续下滑,天地壹号困在醋饮料里
Tuwei Digital Isolator and interface chip can perfectly replace imported brands Ti and ADI
Four software 2021-10-14 suitable for beginners to draw PCB
【批處理DOS-CMD命令-匯總和小結】-外部命令-cmd下載命令、抓包命令(wget)
海思3559 sample解析:vio
栅格地图(occupancy grid map)构建