修改使用登录及添加用户在线验证
This commit is contained in:
1 parent
1b4abd1ee3
commit
2cb2202ed2
9 files changed
+68
-76
No files matched your search
@@ -8,42 +8,4 @@ use app\common\controller\Base;
|
||||
class Index extends Base
|
||||
{
|
||||
|
||||
/**
|
||||
* 操作成功跳转
|
||||
*
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function mysuccess($msg = '操作成功~')
|
||||
{
|
||||
// 模版赋值
|
||||
$this->assign('msg',$msg);
|
||||
|
||||
// 跳转页面
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 操作失败跳转
|
||||
*
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function notfound ($msg = '不好意思,您访问的页面不存在~' )
|
||||
{
|
||||
if (session('?msg'))
|
||||
{
|
||||
$msg = session('msg');
|
||||
session('msg', null);
|
||||
}
|
||||
|
||||
|
||||
// 模版赋值
|
||||
$this->assign('msg',$msg);
|
||||
|
||||
// 跳转页面
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user