token驗證失敗的問題
<?php
????????//驗證參數(shù)
????????//1.將timestamp,nonce,token按字典順序排序
????????$timestamp=$_GET['timestamp'];
????????$nonce=$_GET['nonce'];
????????$token='weixin';
????????$signature=$_GET['signature'];
????????$array=array($timestamp,$nonce,$token);
????????sort($array);
????????//2.將三個排序后的參數(shù)拼接后用sha1加密
????????$tmpstr=implode('',$array);//拼接?join
????????$tmpstr=sha1($tmpstr);
????????//3.將加密后的字符串與signature進(jìn)行對比,判斷該請求是否來自微信
????????if($tmpstr==$signature){
????????????echo?$_GET['echostr'];
????????????exit;
????????}這是我的代碼。。我看了好多遍也沒發(fā)現(xiàn)有問題哇。老師,我的是新浪云的二級域名能訪問 ??http://hwwxhome.sinaapp.com/weixin.php
然后還有你回答別人的,說要先開啟開發(fā)者模式,可是要填了之后才能啟用。沒配置過的啟用不了
2015-08-29
難道真的要在新浪云上實名認(rèn)證么