<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                1. ~~~ public function img_url($content){ if (preg_match('/(http:\/\/)|(https:\/\/)/i', $content)) { $url = ""; }else{ $url = "https://" . $_SERVER['SERVER_NAME']; } $pregRule = "/<[img|IMG].*?src=[\'|\"](.*?(?:[\.jpg|\.jpeg|\.png|\.gif|\.bmp]))[\'|\"].*?[\/]?>/"; $list = preg_replace($pregRule, '<img src="' . $url . '${1}" style="max-width:100%">', $content); return $list; } ~~~ 2. ~~~ public function img($article){ $article['content'] = htmlspecialchars_decode($article['content']); //html實體轉標簽 preg_match_all('/(?<=img.src=").*?(?=")/', $article['content'], $out, PREG_PATTERN_ORDER); //正則匹配img標簽的src屬性,返回二維數組 if (!empty($out)) { foreach ($out as $v) { foreach ($v as $j) { $url = "https://wenlv.henan100.com".$j; $article['content'] = str_replace($j, $url, $article['content']); //替換相對路徑為絕對路徑 } } } } ~~~ 3. ~~~ if (!preg_match('/(http:\/\/)|(https:\/\/)/i', $data['thumbnail'])) { $data['thumbnail']=$host.$data['thumbnail']; } ~~~
                  <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>

                              哎呀哎呀视频在线观看