微擎登录后直接跳转到人人商城后台,退出登录跳到直接进入地址

你离开我真会死。 提交于 2020-08-07 01:27:57

直接跳转到人人商城后台

  • 在/web/source/user/login.ctrl.php (很容易定位到:欢迎回来处)
	if ($_W['isajax']) {
			if($_GPC['kc']=='es'){
			   $forward=url('site/entry/web',array('m'=>'ewei_shopv2'));
			   iajax(0, "操作成功!", $forward);
			}
			else{
			  	iajax(0, "欢迎回来,{$record['username']}", $forward);
			}
		
		}
  • 地址栏目输入标志为:kc=es /web/index.php?c=user&a=login&kc=es

退出登录跳到直接进入地址

  • 在/addons/ewei_shopv2/template/web_v3/_header.html 中添加退出标志位
 <li data-toggle="tooltip" data-placement="bottom" title="退出登录" data-href="{$system['right_menu']['logout']}forward=/web/index.php?kc=es">
            <a class="wb-header-logout"><i class="icow icow-exit"></i></a>
   </li>
  • /web/common/common.func.php (微擎根目录下)checklogin 函数添加标志位判断
	$kc_es_flag=$_GPC['kc'];
			if($kc_es_flag){
				itoast('', url('user/login').'kc='.$kc_es_flag, 'warning');
			}
			else{
			   	itoast('', url('user/login'), 'warning');
			}
  • 完毕

备注,微擎URL定位

//http://we7.cc/web/index.php?c=site&a=entry&do=themeset&m=we7_demo
echo url('site/entry/themeset', array('m' => 'we7_demo'));

//http://we7.cc/app/index.php?c=mc&a=home&
echo url('mc/home');
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!