• <noscript id="ggggg"><dd id="ggggg"></dd></noscript>
    <small id="ggggg"></small> <sup id="ggggg"></sup>
    <noscript id="ggggg"><dd id="ggggg"></dd></noscript>
    <tfoot id="ggggg"></tfoot>
  • <nav id="ggggg"><cite id="ggggg"></cite></nav>
    <nav id="ggggg"></nav>
    成人黃色A片免费看三更小说,精品人妻av区波多野结衣,亚洲第一极品精品无码,欧美综合区自拍亚洲综合,久久99青青精品免费观看,中文字幕在线中字日韩 ,亚洲国产精品18久久久久久,黄色在线免费观看

    獲取網(wǎng)頁授權(quán)

    2018-4-23    seo達(dá)人

    如果您想訂閱本博客內(nèi)容,每天自動發(fā)到您的郵箱中, 請點這里

    在微信登錄中,如何和獲取網(wǎng)頁授權(quán)。

    一、登錄微信測試公眾品平臺,修改網(wǎng)頁授權(quán)基本信息,輸入授權(quán)回調(diào)頁面域名(自己的域名)。

    然后重新建立一個tp框架 編寫方法如圖:

    [php] view plain copy
    1. <?php  
    2. namespace Home\Controller;  
    3. use Think\Controller;  
    4. class IndexController extends Controller {  
    5.     public function index(){  
    6.        $appid='wx27f664ab15ecb71d';  
    7.        $redirect_uri=urlencode('http://www.crimson1.top/vote/index.php/home/index/getcode');  
    8.        $url="https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=$redirect_uri&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect";  
    9.   
    10.              header("Location:".$url);  
    11.     }  
    12.   
    13.     public function getcode(){  
    14.         $code=$_GET["code"];  
    15.          $json=$this->access_token($code);  
    16.          echo $json;  
    17.     }  
    18.     public function access_token($code){  
    19.         $appid="wx27f664ab15ecb71d";  
    20.         $appsecret="015756334f2982ed1189c6d66dbc0353";  
    21.         $url="https://api.weixin.qq.com/sns/oauth2/access_token?appid=$appid&secret=$appsecret&code=$code&grant_type=authorization_code";  
    22.   
    23.         $ret=https_request($url);  
    24.         return $ret;  
    25.     }  
    26. }  

    在公共模塊中新建function.php

    [php] view plain copy
    1. <?php  
    2. function https_request($url){  
    3.     $curl=curl_init();  
    4.     curl_setopt($curl, CURLOPT_URL, $url);  
    5.     curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);  
    6.     curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);  
    7.     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);  
    8.     $data=curl_exec($curl);  
    9.     if(curl_errno($curl)){  
    10.         return 'ERROR'.curl_error($curl);  
    11.     }  
    12.     curl_close($curl);  
    13.     return $data;  
    14. }  

    在自己的手機端訪問,就能獲取access_token;

    藍(lán)藍(lán)設(shè)計m.lzhte.cn )是一家專注而深入的界面設(shè)計公司,為期望卓越的國內(nèi)外企業(yè)提供卓越的UI界面設(shè)計、BS界面設(shè)計 、 cs界面設(shè)計 、 ipad界面設(shè)計 、 包裝設(shè)計 、 圖標(biāo)定制 、 用戶體驗 、交互設(shè)計、 網(wǎng)站建設(shè) 平面設(shè)計服務(wù)

    日歷

    鏈接

    個人資料

    存檔

    主站蜘蛛池模板: 国产老熟女狂叫对白| 固始县| 久久九九有精品国产尤物| 无码毛片一区二区三区本码视频| 无极县| 精品视频在线观看你懂的一区| 国产精品亚亚洲欧关中字幕| 国产精品欧美日韩视频一区| 99婷婷久久精品国产一区二区| 综合自拍亚洲综合图区高清| 五月天社区| 尤物在线观看国产精品| 午夜精品久久久久久久无码软件| 国产在线观看不卡免费| 新加坡一级特黄大片| 日本乱伦中文字幕| 国产亚洲精品中文字幕| 911亚洲国产自产| 久久无码人妻一区二区三区| 日本人妻中文字幕乱码系列| A级免费看| 色香蕉在线观看网站| 色老头久久综合网老妇女| 锡林郭勒盟| 国产美女视频一区二区三区| 日本精品午夜福利视频| 国产精品永久不卡免费视频| 亚洲色无码专区一区| 免费无码又爽又刺激一高潮| 80s成年女人毛片免费观看观看| 国产成人综合手机在线播放| 超碰国产精品久久国产精品99| 停停六综合| 午夜福利影视| 永久免费观看的毛片视频下载| 99爱精品成人免费观看| 婷婷亚洲综合五月天在线| 狠狠精品干练久久久无码中文字幕 | 欧美性肉色videos丝袜| 91网站免费看| 久久久久亚洲AV无码尤物|