十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
参考链接: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; ?>