HTML5¼¼Êõ

×ܽáµÄһЩ΢ÐÅAPI½Ó¿Ú - ²ËÄñµÄ·ÉÏèÃÎ(4)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-01-08 08:01 ÎÒÒªÆÀÂÛ( )

$url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".$appId."redirect_uri=".$redirectUrl."response_type=codescope=snsapi_userinfostate=".$state."#wechat_redirect"; return $url; } /****

        $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;

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • ¸É»õÀ´Ï®-ÕûÌ×ÍêÕû°²È«µÄAPI½Ó¿Ú½â¾ö·½°¸ - hubro

    ¸É»õÀ´Ï®-ÕûÌ×ÍêÕû°²È«µÄAPI½Ó¿Ú½â¾ö·½°¸ - hubro

    2017-01-05 17:00

  • ¡¶ÄêÖÕ×ܽᡷ¹¤×÷ÈýÄê¶à£¬À´À´»Ø»Ø£¬µøµøײײ£¬×ܽáÅúÆÀÒ»ÏÂ×Ô¼ºÕâÈýÄê°ë¡£ - ÊܽäÈË

    ¡¶ÄêÖÕ×ܽᡷ¹¤×÷ÈýÄê¶à£¬À´À´»Ø»Ø£¬µøµøײײ£¬×ܽáÅúÆÀÒ»ÏÂ×Ô¼ºÕâÈý

    2017-01-05 11:00

  • ¡¾ÄêÖÕ×ܽ᡿ÎÒµÄ2016£¬ÔĶÁ±¾ÎÄ´óÔ¼ÐèÒªÒ»ÕûÄê - Äϳ¾

    ¡¾ÄêÖÕ×ܽ᡿ÎÒµÄ2016£¬ÔĶÁ±¾ÎÄ´óÔ¼ÐèÒªÒ»ÕûÄê - Äϳ¾

    2017-01-04 08:03

  • ÄêÖյĵÚһƪ×Ü½á ½áÊøÄÏƯ дÔÚ2017 - »¶×í

    ÄêÖյĵÚһƪ×Ü½á ½áÊøÄÏƯ дÔÚ2017 - »¶×í

    2017-01-03 14:00

ÍøÓѵãÆÀ
¥