参考链接:http://blog.bwphp.cn/?p=617
access_token);
$jsapi_ticket_json = file_get_contents('https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token='.$data->access_token.'&type=jsapi');
$jsapi_ticket_obj = json_decode($jsapi_ticket_json);
$jsapi_ticket = $jsapi_ticket_obj->ticket;
$noncestr = 'qwertyuiop';
$timestamp = time();
$signature = sha1(sprintf('jsapi_ticket='.$jsapi_ticket.'&noncestr='.$noncestr.'×tamp='.$timestamp.'&url=http://zhangsixia.bwphp.cn/wei1.php'));
echo $signature;
?>
名称栏目:微信JS-SDK加载验证流程
转载来于:
http://kswsj.cn/article/gijpdc.html