lizhen_gitee 3 years ago
parent
commit
a89eebd2a7
1 changed files with 1 additions and 1 deletions
  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 {