离线申请支持汇交数据

This commit is contained in:
wlx 2012-11-17 10:50:26 +00:00
parent b90a8cd203
commit afbef354c1
1 changed files with 5 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class Admin_DownController extends Zend_Controller_Action
$this->db->query($sql,array($finish));
$sql="select * from offlineapp where id=?";
$row=$this->db->fetchRow($sql,array($finish));
$sql="select * from dataorder left join dataset on dataset.uuid=dataorder.uuid where dataorder.offlineappid=?";
$sql="select dataset.* from dataorder left join dataset on dataset.uuid=dataorder.uuid where dataorder.offlineappid=?";
$rs=$this->db->fetchAll($sql,array($finish));
$has_ftp1=false;
$path=array();
@ -320,7 +320,10 @@ class Admin_DownController extends Zend_Controller_Action
if ($data['host']=='deep.qherc.org')
{
$has_ftp1=true;
$path[]=$data['path'];
if (empty($data['path']) || $data['path']=='/')
$path[]='/upload/'.$data['uuid'].'/';
else
$path[]=$data['path'];
}
}
//deal with ftp account