feat: 代理登录/注册改图形数字验证码(SVG无GD依赖、一次性校验);后台内容区全屏铺满
This commit is contained in:
1 parent
423ac0d3b5
commit
d5a3183895
10 files changed
+272
-71
No files matched your search
@@ -832,6 +832,22 @@ class PublicController extends Controller
|
||||
], 'ok');
|
||||
}
|
||||
|
||||
/**
|
||||
* 图形数字验证码(SVG,代理登录/注册用)
|
||||
* GET /api/public/captcha
|
||||
*/
|
||||
public function captcha(): void
|
||||
{
|
||||
[, $svg] = \App\Services\CaptchaService::generate();
|
||||
|
||||
header('Content-Type: image/svg+xml; charset=UTF-8');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
||||
header('Pragma: no-cache');
|
||||
header('Expires: 0');
|
||||
echo $svg;
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取公告列表(公开/客户端)
|
||||
* GET /api/public/announcements?target=client&project_id=1&limit=10
|
||||
|
||||
Reference in new issue
Block a user