lizhen_gitee 3 лет назад
Родитель
Сommit
a89eebd2a7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      application/common/model/Party.php

+ 1 - 1
application/common/model/Party.php

@@ -95,7 +95,7 @@ class Party extends Model
      */
     protected function httpurl($path) {
         // 获取当前域名
-        if(strpos($path,'http://') === false && strpos($path,'https://') === false) {
+        if(strpos($path,'http://') === false && strpos($path,'https://') === false && strpos($path,'uploads') !== false) {
             $host = config("cos")['url'];
             $url = $host.$path;
         } else {