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