Commit f67bc087 authored by wangtao's avatar wangtao

管理后台 看板

parent f9c1dd8e
......@@ -8,7 +8,9 @@
<link rel="icon" href="{PUBLIC__PATH}/favicon.ico"/>
<link rel="stylesheet" href="{STATIC__PATH}layui/css/layui.css"/>
<link rel="stylesheet" href="{STATIC__PATH}admin/admin.css"/>
<!--[if lt IE 9]>
<meta name="referrer" content="no-referrer">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
......
......@@ -22,7 +22,7 @@ class User extends BaseController
return $vo;
}
$data = $request->param();
$user = userModel::where(['mobile'=>$data['mobile']])->find();
$user = userModel::where(['mobile'=>$data['mobile']])->where('is_del',0)->find();
if (!$user)
{
return $this->returnMsg('用户不存在',0);
......@@ -59,7 +59,7 @@ class User extends BaseController
}
$data = $request->param();
$is_exit = userModel::where(['mobile' => $data['mobile']])->whereOr(['username'=>$data['name']])->count();
$is_exit = userModel::where(['mobile' => $data['mobile']])->where('is_del',0)->count();
if ($is_exit)
{
return $this->returnMsg('用户已存在',0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment