小程序

           $code = $_REQUEST['code'];
           $url="https://api.weixin.qq.com/sns/jscode2session?appid=wx0128cdfd9adf9611&secret=5a1c4a9fa06918002eb4bdeb066771a9&js_code=$code&grant_type=authorization_code";
        $arr = file_get_contents($url);
        $open = json_decode($arr,true);

你可能感兴趣的:(小程序)