wupengfei 3 years ago
parent
commit
af2e01cbf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/store/controller/Goods.php

+ 1 - 1
application/store/controller/Goods.php

@@ -219,7 +219,7 @@ class Goods extends Controller
         if($_FILES["file"]["size"] > 50000000) echo '图片大小最大50M';
         if ($_FILES["file"]["error"] > 0)   echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
        // $dir = env('root_path') . 'public/static/pic';
-        $dir = 'https://fssy.hdlkeji.com/'. 'public/static/pic';
+        $dir =  $_SERVER['DOCUMENT_ROOT']. '/static/pic';
        /* var_dump($dir);
         if(!is_dir($dir)) {
            var_dump(mkdir($dir));