<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 功能強大 支持多語言、二開方便! 廣告
                * [ ] 瀏覽器輸出文件內容 ``` Response::SendData($FileData, $Format = null); ``` FilePlace(string|array):內容 Format (string|bool):格式=顯示,文件名=下載 ***** 輸出驗證碼例,自動加上mime ``` $data = Frame::ObStart(function () use ($int) { self::ImgCode(); }); Response::SendData($data, 'jpg'); ``` 驗證碼下載例,自動加上mime ``` $data = Frame::ObStart(function () use ($int) { self::ImgCode(); }); Response::SendData($data, 'code.jpg'); ``` 輸出驗證碼,自定義mime ``` $data = Frame::ObStart(function () use ($int) { self::ImgCode(); }); Response::SendData([$data,'image/jpeg']); ``` 下載驗證碼,自定義mime ``` $data = Frame::ObStart(function () use ($int) { self::ImgCode(); }); Response::SendData([$data,'image/jpeg'],'code.jpg'); ``` ``` private static function ImgCode($num = 5, $codes = 'code_name', $w = 60, $h = 20, $str = '') { $str = !empty ($str) ? $str : 'abcdefghkmnprstuvwxyzABCDEFGHKMNPRSTUVWXYZ23456789'; $code = ''; for ($i = 0; $i < $num; $i++) { $code .= $str [mt_rand(0, strlen($str) - 1)]; } $im = imagecreate($w, $h); $_bg = imagecolorallocate($im, 255, 255, 255); imagefilledrectangle($im, 0, 0, $w, $h, $_bg); $gray = imagecolorallocate($im, 204, 213, 204); imagerectangle($im, 0, 0, $w - 1, $h - 1, $gray); $rand_ = imagecolorallocate($im, 204, 213, 204); for ($i = 0; $i < 80; $i++) { imagesetpixel($im, rand(0, $w), rand(0, $h), $rand_); } $black = imagecolorallocate($im, 0, 0, 204); $_str = ($w - 40) / 2; for ($i = 0; $i < $num; $i++) { imagestring($im, 5, $_str, ($h - 16) / 2, substr($code, $i, 1), $black); $_str += 10; } imagepng($im); imagedestroy($im); } ```
                  <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>

                              哎呀哎呀视频在线观看