路徑:web/source/user/login.ctrl.phpphp
if ($record['username']=='admin') {html
isetcookie('__uniacid', 1, 7 * 86400);
header('location:'.url('site/entry/web',array('m'=>'ewei_shopv2')));
// itoast("歡迎回來,{$record['username']}。", $forward, 'success');
}else{
isetcookie('__uniacid', 2, 7 * 86400);
header('location:'.url('site/entry/web',array('m'=>'ewei_shopv2')));
}
![](http://static.javashuo.com/static/loading.gif)