diff --git a/application/models/G6ftp.php b/application/models/G6ftp.php index 7c646f2b..1500a2e4 100644 --- a/application/models/G6ftp.php +++ b/application/models/G6ftp.php @@ -68,6 +68,7 @@ class G6ftp } } return implode("\n",$p); + //返回指定帐号的物理路径集合 } function createuser($user) { @@ -124,12 +125,11 @@ class G6ftp $this->db->query($sql); $sql="update ftpuser set ts_invalid=?,datacount=? where userid=?"; $this->db->query($sql,array($user->time,$user->datacount+1,$user->id)); - } else { - $sql="select pwd,ts_invalid from ftpuser where userid=?"; - $u=$this->db->fetchRow($sql,array($user->id)); - $this->pwd=$u['pwd']; - $this->time=$u['ts_invalid']; - } + } + $sql="select pwd,ts_invalid from ftpuser where userid=?"; + $u=$this->db->fetchRow($sql,array($user->id)); + $this->pwd=$u['pwd']; + $this->time=$u['ts_invalid']; return true; } else //同时下载数据数超过限制 return false;