Commit 78ed4c20 by 冷斌

fix bug

parent 5eb9a61a
vdqp0pRLH2hBQnLc
\ No newline at end of file
......@@ -27,7 +27,7 @@ class RegController extends HomebaseController {
$agentid=checkNull(I('agentid'));
$configpri=getConfigPri();
$AppID = $configpri['login_wx_appid'];
$AppID = 'wx31ac4d2b862fa9c0'; //$configpri['login_wx_appid'];
$callback = get_upload_path('/Appapi/Reg/wxLoginCallback?agentid='.$agentid); //回调地址
//微信登录
session_start();
......@@ -47,8 +47,8 @@ class RegController extends HomebaseController {
if($code){
$configpri=getConfigPri();
$AppID = $configpri['login_wx_appid'];
$AppSecret = $configpri['login_wx_appsecret'];
$AppID = 'wx31ac4d2b862fa9c0'; //$configpri['login_wx_appid'];
$AppSecret = '01633b34de498adb3996c26cf745785b'; //$configpri['login_wx_appsecret'];
/* 获取token */
$url="https://api.weixin.qq.com/sns/oauth2/access_token?appid={$AppID}&secret={$AppSecret}&code={$code}&grant_type=authorization_code";
$ch = curl_init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment