feat : basic

This commit is contained in:
2024-11-12 11:02:38 +08:00
parent 235acbea9c
commit a9f81888b7
26 changed files with 342 additions and 209 deletions

View File

@@ -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();