$url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".$appId."&redirect_uri=".$redirectUrl."&response_type=code&scope=snsapi_userinfo&state=".$state."#wechat_redirect";
return $url;
}
/****************************************************
* ΢ÐÅOAUTHÌøתָ¶¨URL
****************************************************/
public function wxHeader($url){
header("location:".$url);
}
/****************************************************
* ΢ÐÅͨ¹ýOAUTH·µ»ØÒ³ÃæÖлñÈ¡ATÐÅÏ¢
****************************************************/
public function wxOauthAccessToken($code,$appId = NULL , $appSecret = NULL){
$appId = is_null($appId) ? self::appId : $appId;
$appSecret = is_null($appSecret) ? self::appSecret : $appSecret;
¡¡