1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace App\Components;
- class CaptchaVerify {
-
- public static function hCaptchaGetConfig(): array {
- return [
- "sitekey" => sysConfig('hcaptcha_sitekey'),
- "secret" => sysConfig('hcaptcha_secret'),
- "options" => []
- ];
- }
-
- public static function geetestCaptchaGetConfig(): array {
- return [
- "geetest_id" => sysConfig('geetest_id'),
- "geetest_key" => sysConfig('geetest_key')
- ];
- }
-
- public static function googleCaptchaGetConfig(): array {
- return [
- "sitekey" => sysConfig('google_captcha_sitekey'),
- "secret" => sysConfig('google_captcha_secret'),
- "options" => []
- ];
- }
- }
|