We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7f2655 commit c2d1bb1Copy full SHA for c2d1bb1
.env.example
@@ -4,7 +4,7 @@ APP_REQUEST_LOG=true
4
APP_RESPONSE_LOG=true
5
APP_LOG=true
6
HF_LOG=true
7
-APP_TEST=true
+APP_TEST=false
8
9
DB_DRIVER=mysql
10
DB_HOST=127.0.0.1
app/Service/Auth/LoginService.php
@@ -82,7 +82,7 @@ public function login(array $params) : array
82
public function register(array $params) : bool
83
{
84
//校验验证码 若是测试环境跳过验证码验证
85
- if (env('APP_TEST')) {
+ if (!env('APP_TEST')) {
86
$container = ApplicationContext::getContainer();
87
$redis = $container->get(\Hyperf\Redis\Redis::class);
88
$code = $redis->get($params['code_key']);
0 commit comments