I am working on a project recently and need to use a common quick login. Since such resources on the Internet are all version 3.13 and no one has compiled the 3.2 version, I took the time to sort it out and children in need can download it and test it.
Instructions for using Thinksdk in thinkphp3.2.3
1. Import the package into the vendor folder. (Added WeChat login)
2. Add configuration information such as: 'THINK_SDK_QQ' => array(<br>
'APP_KEY' => '', //The APP ID assigned after successful application registration<br>
'APP_SECRET' => '', //KEY assigned after successful application registration<br>
‘CALLBACK’ => '',//Callback URL<br>
),
3. Add a link to the template<a href="%7B:U('Index/login',array('type'=>'qq'))%7D">QQ login</a> < ;a href="{:U('Index/login',array('type'=>'weixin'))}" >WeChat login
4. After filling in, run according to this example code ,If used, please debug by yourself.
thinkphp3.2.3 integration series thinksdk usage tutorial.rar ( 24.06 KB Download: 15 times )