微擎版本: v2.5.4
根目录\web\source\user\login.ctrl.php
底部找到
itoast("欢迎回来,{$record['username']}", $forward, 'success');
代码,在前面添加
$forward ='./index.php?c=home&a=welcome&do=ext&m=模块名';
最终
isetcookie('__uid', '1', 7 * 86400);
isetcookie('__uniacid', '2', 7 * 86400);
$forward ='./index.php?c=home&a=welcome&do=ext&m=xxx';
itoast("欢迎回来,{$record['username']}。", $forward, 'success');
在微擎版本v2.5.4中,于根目录websourceuserlogin.ctrl.php文件内,原itoast函数前添加代码设置$forward变量,用于登录成功后跳转至home/welcome/ext模块。同时设置两个cookie__uid和__uniacid,有效期为7天。修改后的代码将提示欢迎回来并执行指定模块的重定向。

8236

被折叠的 条评论
为什么被折叠?



