Skip to content

Commit c2d1bb1

Browse files
committed
测试开关默认状态关
1 parent a7f2655 commit c2d1bb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ APP_REQUEST_LOG=true
44
APP_RESPONSE_LOG=true
55
APP_LOG=true
66
HF_LOG=true
7-
APP_TEST=true
7+
APP_TEST=false
88

99
DB_DRIVER=mysql
1010
DB_HOST=127.0.0.1

app/Service/Auth/LoginService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function login(array $params) : array
8282
public function register(array $params) : bool
8383
{
8484
//校验验证码 若是测试环境跳过验证码验证
85-
if (env('APP_TEST')) {
85+
if (!env('APP_TEST')) {
8686
$container = ApplicationContext::getContainer();
8787
$redis = $container->get(\Hyperf\Redis\Redis::class);
8888
$code = $redis->get($params['code_key']);

0 commit comments

Comments
 (0)