[fix] 不用orm验证方式,验证不了唯一

This commit is contained in:
醉挽清风 2023-03-10 15:13:07 +08:00
parent 8b0c668ee0
commit 28621780ca
6 changed files with 11 additions and 11 deletions

View File

@ -3,8 +3,8 @@ declare (strict_types = 1);
namespace app;
use think\exception\ValidateException;
use think\Validate;
use taoser\exception\ValidateException;
use taoser\Validate;
/**
* 控制器基础类

View File

@ -33,7 +33,7 @@ class LoginController extends BaseAdminController
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 令狐冲
* @author 乔峰
*/
public function account()
{
@ -46,7 +46,7 @@ class LoginController extends BaseAdminController
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 令狐冲
* @author 乔峰
* @date 2021/7/8 00:36
*/
public function logout()

View File

@ -189,7 +189,7 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
/**
* @notes 获取数量
* @return int
* @author 令狐冲
* @author 乔峰
* @date 2021/7/13 00:52
*/
public function count(): int

View File

@ -34,7 +34,7 @@ class LoginLogic extends BaseLogic
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 令狐冲
* @author 乔峰
* @date 2021/6/30 17:00
*/
public function login($params)
@ -69,7 +69,7 @@ class LoginLogic extends BaseLogic
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 令狐冲
* @author 乔峰
* @date 2021/7/5 14:34
*/
public function logout($adminInfo)

View File

@ -19,7 +19,7 @@ class AdminTokenService
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 令狐冲
* @author 乔峰
* @date 2021/7/2 20:25
*/
public static function setToken($adminId, $terminal, $multipointLogin = 1)
@ -64,7 +64,7 @@ class AdminTokenService
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 令狐冲
* @author 乔峰
* @date 2021/7/5 14:25
*/
public static function overtimeToken($token)
@ -88,7 +88,7 @@ class AdminTokenService
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 令狐冲
* @author 乔峰
* @date 2021/7/5 14:31
*/
public static function expireToken($token)

View File

@ -33,7 +33,7 @@ class LoginValidate extends BaseValidate
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 令狐冲
* @author 乔峰
* @date 2021/7/2 14:00
*/
public function password($password, $other, $data)