['loginName','loginPwd','staffName','workStatus','staffStatus'], 'edit' => ['staffName','workStatus','staffStatus'] ]; protected function checkLoginName($value){ $where = []; $where['dataFlag'] = 1; $where['loginName'] = $value; $rs = Db::name('staffs')->where($where)->count(); return ($rs==0)?true:'该登录账号已存在'; } }