当前位置:网站首页>微信小程序开通客服消息功能开发
微信小程序开通客服消息功能开发
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.配置成功后,开始开发代码
边栏推荐
- Construction of occupancy grid map
- 國外LEAD域名郵箱獲取途徑
- [batch dos-cmd command - summary and summary] - commands related to Internet access and network communication (Ping, Telnet, NSLOOKUP, ARP, tracert, ipconfig)
- Domestic MCU perfectly replaces STM chip model of Italy France
- C#获取exe的版本号-文件版本and程序集版本
- Path planner based on time potential function in dynamic environment
- [pytest] modify the logo and parameterization in the allure Report
- Distributed quorum NWR of the alchemy furnace of the Supreme Master
- Chuantu microelectronics 𞓜 subminiature package isolated half duplex 485 transceiver
- Research on 3D model retrieval method based on two channel attention residual network - Zhou Jie - paper notes
猜你喜欢
How to use printf of 51 single chip microcomputer
基于地面点稀少的LiDAR点云的茂密森林蓄积量估算
Mysql database import SQL file display garbled code
npm install 报错 : gyp ERR! configure error
【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令(cd、title、mode、color、pause、chcp、exit)
【蒸馏】PointDistiller: Structured Knowledge DistillationTowards Efficient and Compact 3D Detection
搞清信息化是什么,让企业转型升级走上正确的道路
Three years of continuous decline in revenue, Tiandi No. 1 is trapped in vinegar drinks
Four software 2021-10-14 suitable for beginners to draw PCB
Function template_ Class template
随机推荐
Audio (V) audio feature extraction
Storage of Galileo broadcast ephemeris in rtklib-b33
Collection of common terms and meanings in forestry investigation based on lidar
RTKLIB-b33版本中GALILEO广播星历存储问题
Elk + filebeat log parsing, log warehousing optimization, logstash filter configuration attribute
[batch dos-cmd command - summary and summary] - commands related to Internet access and network communication (Ping, Telnet, NSLOOKUP, ARP, tracert, ipconfig)
CPDA|数据分析师成长之路如何起步?
GUI pull-down menu of unity3d evil door implementation dropdown design has no duplicate items
Tupu software digital twin 3D wind farm, offshore wind power of smart wind power
[batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)
Sichuan earth microelectronics ca-is1300 isolated operational amplifier for current detection is on the market
数据可视化没有重点怎么办?
This year, I graduated
Application of point cloud intelligent drawing in intelligent construction site
FairMOT yolov5s转onnx
SQL solve select basic statement
Harmony food menu interface
How to use printf of 51 single chip microcomputer
Tempest HDMI leak receive 2
The method of judging whether triode can amplify AC signal