wesmiler 5 tahun lalu
induk
melakukan
4ae3465706

+ 1 - 27
app/index/controller/IndexController.php

@@ -281,36 +281,10 @@ class IndexController extends HomeBaseController
     public function clearCache(){
         // 清楚Redis缓存
         RedisService::delByKeys('cache:*');
+        exit('清除成功');
         // end
     }
 
-    public function test(){
-//        exit;
-        set_time_limit(0);
-        $content = file_get_contents('./logs/168.html');
-//        $content = file_get_contents('http://www.1688cypt.com/');
-
-        preg_match_all('/(href|src|data-src)=([\"|\']?)([^\"\'>]+.(jpg|JPG|jpeg|JPEG|gif|GIF|png|PNG))/i', $content, $result);
-        $imgs = isset($result[3])? $result[3] : [];
-        foreach ($imgs as $img){
-            $img = str_replace('https:','http:', $img);
-            $paths = parse_url($img);
-            $filename = isset($paths['path'])? $paths['path'] : '';
-            $path = $filename? './xm12/'.dirname($filename) : '';
-            echo '抓取到图片:'."<br>";
-            if($filename && !file_exists('./xm12/'.$filename) ){
-                $content = file_get_contents('http://www.91jmls.com/'.$img);
-                if($content){
-                    if(!is_dir($path)){
-                        @mkdir($path, 0755, true);
-                    }
-
-                    echo "下载保存图片:".'./imgs'.$filename."<br>";
-                     file_put_contents('./xm12/'.$filename, $content);
-                }
-            }
-        }
 
-    }
 }
 ?>

TEMPAT SAMPAH
public/favicon.ico


+ 2 - 4
public/themes/mjmls/index/index/floor/banner.html

@@ -37,10 +37,8 @@
                 <foreach name="banner" id="v">
                     <div class="swiper-slide">
                         <a href="{$v.url|default='#'}" target="{$v.target}" title="{$v.title}">
-                            <img class="lazyload" data-src="{:cmf_get_image_preview_url($v.image)}" >
-                            <!--<img class="swiper-lazy" data-src="{:cmf_get_image_preview_url($v.image)}" >-->
-                            <div class="swiper"></div>
-                            <!--<div class="swiper-lazy-preloader"></div>-->
+                            <img class="swiper-lazy" data-src="{:cmf_get_image_preview_url($v.image)}" >
+                            <div class="swiper-lazy-preloader"></div>
                         </a>
                     </div>
                 </foreach>

+ 2 - 2
public/themes/mjmls/static/js/index.min.js

@@ -5,11 +5,11 @@ $(function () {
         $(this).find(".nav-box").css("display", "none")
     });
     var swiper = new Swiper('#slide1', {
-        speed: 600,
+        // speed: 600,
         autoplay: {delay: 4000},
         loop: true,
         pagination: {el: '.swiper-pagination', clickable: true,},
-        // lazy: {loadPrevNext: true,}
+        lazy: {loadPrevNext: true,}
     });
     var tsw = new Swiper('#notice', {
         autoplay: {delay: 3000, disableOnInteraction: false,},