wesmiler 4 роки тому
батько
коміт
3dedd87289
3 змінених файлів з 5 додано та 5 видалено
  1. 2 1
      data/config/config.php
  2. 1 1
      public/index.php
  3. 2 3
      vendor/thinkcmf/cmf/src/common.php

+ 2 - 1
data/config/config.php

@@ -17,7 +17,8 @@ return [
         // 链接端口
         'port' => '6379',
         // 连接密码
-        'password' => 'derkj&6688',
+        'password' => '',
+//        'password' => 'derkj&6688',
         // 数据库索引
         'select' => 1,
         // 超时

+ 1 - 1
public/index.php

@@ -11,7 +11,7 @@ namespace think;
 // [ 入口文件 ]
 
 // 调试模式开关
-define('APP_DEBUG', true);
+define('APP_DEBUG', TRUE);
 
 // 定义CMF根目录,可更改此目录
 define('CMF_ROOT', dirname(__DIR__) . '/');

+ 2 - 3
vendor/thinkcmf/cmf/src/common.php

@@ -2374,9 +2374,8 @@ function strFilter($str){
  */
 function filterHtmlUrl($html){
     $ip = request()->domain();
-    echo "http://{$ip}:443";
-    $html = str_replace("http://{$ip}:443", '', $html);
-    $html = str_replace("http://{$ip}", '', $html);
+    $html = str_replace("{$ip}:443", '', $html);
+    $html = str_replace("{$ip}", '', $html);
     $html = str_replace(["http://","https://"],["//","//"], $html);
     return $html;
 }