feat : basic
This commit is contained in:
@@ -10,7 +10,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Api\Login;
|
||||
|
||||
use App\Exception\AdminException;
|
||||
use App\Exception\ErrException;
|
||||
use App\Service\Api\BaseService;
|
||||
|
||||
class LoginService extends BaseService
|
||||
@@ -26,7 +26,7 @@ class LoginService extends BaseService
|
||||
{
|
||||
'wx_login' => $factory->wxFastLogin(),
|
||||
'mobile_code' => $factory->mobileCodeLogin(),
|
||||
default => throw new AdminException('登录类型错误'),
|
||||
default => throw new ErrException('登录类型错误'),
|
||||
};
|
||||
|
||||
$loginInfo = $service->handle();
|
||||
|
||||
Reference in New Issue
Block a user