微擎php页面跳转,登录微擎后台直接跳转到人人商城后台首页

登陆微擎直接跳转安装模块的后台,而不是微擎的管理页面。

修改路径 web\source\user\login.ctrl.php line 134

function _login($forward = '') {

global $_GPC, $_W;

if (empty($_GPC['login_type'])) {

$_GPC['login_type'] = 'system';

}

if (empty($_GPC['handle_type'])) {

$_GPC['handle_type'] = 'login';

}

if ($_GPC['handle_type'] == 'login') {

$member = OAuth2Client::create($_GPC['login_type'], $_W['setting']['thirdlogin'][$_GPC['login_type']]['appid'], $_W['setting']['thirdlogin'][$_GPC['login_type']]['appsecret'])->login();

} else {

$member = OAuth2Client::create($_GPC['login_type'], $_W['setting']['thirdlogin'][$_GPC['login_type']]['appid'], $_W['setting']['thirdlogin'][$_GPC['login_type']]['appsecret'])->bind();

}

if (!empty($_W['user']) && $_GPC['handle_type'] != '' && $_GPC['handle_type'] == 'bind') {

if (is_error($member)) {

itoast($member['message'], url('user/profile/bind'), '');

} else {

itoast('绑定成功', url('user/profile/b

你可能感兴趣的:(微擎php页面跳转)