重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
参考链接: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; ?>