refactor: 修改环境
This commit is contained in:
@@ -26,7 +26,6 @@ class Captcha
|
||||
// 输出验证码
|
||||
return success('获取验证码成功!', [
|
||||
'token' => $token,
|
||||
'code' => $captcha['code'],
|
||||
'captcha' => $captcha["img"],
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace think;
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// 执行HTTP应用并响应
|
||||
$http = (new App())->setEnvName('local')->http;
|
||||
$http = (new App())->http;
|
||||
|
||||
$response = $http->run();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user