소스 검색

no message

wzh 4 년 전
부모
커밋
d11b9c0848
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      api/application/controllers/Common.php

+ 3 - 3
api/application/controllers/Common.php

@@ -188,9 +188,9 @@ class Common extends CI_Controller {
 
         $this->load->helper('captcha');
 
-        if (!file_exists('../upload')) mkdir('../upload');
-        if (!file_exists('../upload/image')) mkdir('../upload/image');
-        if (!file_exists('../upload/image/code')) mkdir('../upload/image/code');
+        if (!file_exists('../upload')) mkdir('../upload/');
+        if (!file_exists('../upload/image')) mkdir('../upload/image/');
+        if (!file_exists('../upload/image/code')) mkdir('../upload/image/code/');
         $url = '/upload/image/code';
         $code = rand(1000,9999);
         $vals = array(