<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 圖形驗證碼 使用之前你需要先引用它 ``` import "gohub/pkg/captcha" ``` #### 生成驗證碼 生成base64驗證碼圖片 ``` // 生成驗證碼 id, b64s, err := captcha.NewCaptcha().GenerateCaptcha() ``` 驗證輸入的驗證碼是否正確 ``` if ok := captcha.NewCaptcha().VerifyCaptcha(captchaID, captchaAnswer); !ok { // 錯誤 return } return ``` ## 驗證碼配置 如果你想自定義驗證碼的高度等參數,可以編輯文件`config/captcha.go` : ``` return map[string]interface{}{ // 驗證碼圖片高度 "height": 80, // 驗證碼圖片寬度 "width": 240, // 驗證碼的長度 "length": 6, // 數字的最大傾斜角度 "maxskew": 0.7, // 圖片背景里的混淆點數量 "dotcount": 80, // 過期時間,單位是分鐘 "expire_time": 5, // debug 模式下的過期時間,方便本地開發調試 "debug_expire_time": 10080, // 非 production 環境,使用此 key 可跳過驗證,方便測試 "testing_key": "captcha_skip_test", } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看