Home > php教程 > php手册 > body text

微信收货地址获取开发详细介绍

WBOY
Release: 2016-06-07 11:38:30
Original
1433 people have browsed it

以下内容有不明白的地方可以加入QQ群:56131494 在线咨询问题
最近我在搞微信地址获取的开发。开始时候看文档有一些不太清楚,然后在网上差了一些资料后,成功了,现在把内容分享给大家!

在执行此操作之前
1、设置微信公众平台网页授权 域名 www.xxxxx.com 需备案成功过的域名
2、设置下面的 “ 微信参数 ”
3、把 当前文件 index.php 放入根目录
4、用微信访问http://www.xxxx.com/index.php 就可以了 切记一定是微信哦
5、不明白的可以进入论坛:http://bbs.tuhao.net.cn/thread-3050-1-1.html 或者加入QQ群:56131494 在线咨询问题

此处只是演示,具体的处理方法需要对index.php进行修改处理
各位切记需要注意的地方。这里一定要先输出一下看是不是所有的值都是获取的。如果缺少任意一个都不会成功显示的;// 定义参数
$timestamp = time();
$nonceStr = rand(100000,999999);
$Parameters = array();
//===============下面数组 生成SING 使用=====================
$Parameters['appid'] = $appId;
$Parameters['url'] = $redirect_uri;
$Parameters['timestamp'] = "$timestamp";
$Parameters['noncestr'] = "$nonceStr";
$Parameters['accesstoken'] = $access_token['access_token'];
// 生成 SING
$addrSign = genSha1Sign($Parameters);
到时候把$Parameters打印一下;

附件 微信收货地址获取开发源码.zip ( 2.42 KB 下载:188 次 )

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!