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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ### 圖片上傳類 2019-03-13 **位置:** Common\Tools\PicturesTools.class.php **參數:** * @param $imginfo array 上傳圖片文件 **調用:** ~~~ use Common\Tools\ExportTools; //調用封裝導出類 $imginfo = $_FILES['file'] $picture = new PicturesTools(); // 實例化 $object = $picture->uploadPicture($imginfo); if ($object == '-1') { alert('上傳的banner圖不能超過1M!', $url); } else if (!$object) { alert('上傳失敗,請重試!', $url); } ~~~ **完整代碼:** ~~~ /** * xin 2019-03-12 * @param $imginfo array 上傳圖片文件 * @return string 上傳圖片路徑 */ function uploadPicture ($imginfo) { if($imginfo['size'] > 1024000){ return -1; } if(!empty($imginfo['name']) && $imginfo['size'] != 0){ $imgname = $imginfo['name']; import("Common.Util.Oss.Oss"); $oss = new \Oss(); //實例化oss類 $rand = time(); $suffix = substr($imgname,strrpos($imgname,".")+1); // 將后綴名大寫的轉換成小寫 $suffix = strtolower($suffix); $object = "event/banner/".$rand.".".$suffix; // banner圖的路徑和名稱 $imgpath = $imginfo['tmp_name']; $oss->upload($object,$imgpath); return $object; }else{ return null; } } ~~~
                  <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>

                              哎呀哎呀视频在线观看