<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 生成用戶分享分銷二維碼 #### 需要 ```bash $ composer require endroid/qrcode ``` #### 代碼片 ```php /** * @api {GET} user/qrcode 獲取二維碼 * @apiGroup 用戶 * @apiParam {integer} uid 用戶id * @apiParam {bool} marge_background=0 是否合成背景 (1=帶背景, 0=純二維碼) * @apiDescription 返回圖片數據 (字節集) */ public function qrcode($uid, $marge_background = false) { $url = url('index/index/index', false, false, true) . "?pid={$uid}"; $qrCode = new QrCode($url); header('Content-Type: ' . $qrCode->getContentType()); if ($marge_background) { echo $qrCode->writeString(); exit; } //背景圖片 $dst = env('ROOT_PATH') . "public/uploads/image/qrcode.jpg"; //得到原始圖片信息 $dst_im = imagecreatefromjpeg($dst); $src_im = imagecreatefromstring($qrCode->writeString()); //水印透明度 $alpha = 90; //3.使用固定的公式計算新的寬高 $sx = 300; $sy = 300; //4.生成目標圖像資源 $small = imagecreatetruecolor($sx, $sy); imagecopyresampled($small, $src_im, 0, 0, 0, 0, $sx, $sy, imagesx($src_im), imagesy($src_im)); //合并水印圖片 imagecopymerge($dst_im, $small, 230, 647, 0, 0, $sx, $sy, $alpha); //輸出合并后水印圖片 imagejpeg($dst_im); imagedestroy($dst_im); imagedestroy($src_im); exit; } ```
                  <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>

                              哎呀哎呀视频在线观看