diff --git a/app/Constant/ErrorCode.php b/app/Constant/ErrorCode.php deleted file mode 100644 index 74f2551..0000000 --- a/app/Constant/ErrorCode.php +++ /dev/null @@ -1,26 +0,0 @@ - - * Powered by PhpStorm - * Created on 2023/4/14 - */ - -namespace App\Constant; - -use Hyperf\Constants\Annotation\Constants; -use Singularity\HDK\Core\Constants\CommonErrorCode; - -/** - * App\Constant\ErrorCode@LuxAlign - * - * @author 李东云 - * Powered by PhpStorm - * Created on 2023/4/14 - */ -#[Constants] -class ErrorCode extends CommonErrorCode -{ - -} diff --git a/installer/resources/constants/ErrorCode.php b/installer/resources/constants/ErrorCode.php index bae35bc..eb5126c 100755 --- a/installer/resources/constants/ErrorCode.php +++ b/installer/resources/constants/ErrorCode.php @@ -2,23 +2,18 @@ declare(strict_types=1); /** - * This file is part of Hyperf. + * ErrorCode.php@LuxAlign * - * @link https://www.hyperf.io - * @document https://hyperf.wiki - * @contact group@hyperf.io - * @license https://github.com/hyperf/hyperf/blob/master/LICENSE + * @author 李东云 + * Powered by PhpStorm */ + namespace App\Constants; -use Hyperf\Constants\AbstractConstants; use Hyperf\Constants\Annotation\Constants; +use Singularity\HDK\Core\Constants\CommonErrorCode; #[Constants] -class ErrorCode extends AbstractConstants +class ErrorCode extends CommonErrorCode { - /** - * @Message("Server Error!") - */ - public const SERVER_ERROR = 500; } diff --git a/installer/resources/database/databases.php b/installer/resources/database/databases.php index ddba15d..bf29bfe 100755 --- a/installer/resources/database/databases.php +++ b/installer/resources/database/databases.php @@ -9,6 +9,9 @@ declare(strict_types=1); * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + +use function Hyperf\Support\env; + return [ 'default' => [ 'driver' => env('DB_DRIVER', 'mysql'), diff --git a/installer/resources/database/redis.php b/installer/resources/database/redis.php index 3180b62..46dd357 100755 --- a/installer/resources/database/redis.php +++ b/installer/resources/database/redis.php @@ -9,6 +9,9 @@ declare(strict_types=1); * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + +use function Hyperf\Support\env; + return [ 'default' => [ 'host' => env('REDIS_HOST', 'localhost'),