15954078560 %!s(int64=2) %!d(string=hai) anos
pai
achega
c43475bc50
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      application/api/controller/Notify.php

+ 4 - 1
application/api/controller/Notify.php

@@ -1325,9 +1325,12 @@ class Notify extends Api
             @touch('./dashuju/' . $check_filename);
         }
 
+        //连接ftp
         $conn = ftp_connect($host, $port) or die("Could not connect");
-
+        //登录
         ftp_login($conn,$username,$password);
+        //开启被动模式
+        ftp_pasv($conn, true);
         //利用ftp创建目录
         /*$path = "home/2021-12-08";
         $this->make_directory($conn,$path);