修改了生成pdf时限制数量的判断规则

This commit is contained in:
Li Jianxuan 2013-10-09 03:46:33 +00:00
parent 7760e3fea6
commit 8caeae6913
1 changed files with 1 additions and 9 deletions

View File

@ -150,15 +150,7 @@ class PdfOperate implements \Order\listener\PdfEvents
$rs = $this->db->fetchRow($this->db->quoteInto($sql,$uid));
$inorder = $rs['datacount'];
if($inorder < 1)
{
return true;
}
$sql = "select count(*) as datacount from {$this->tbl_dataorder} where (ts_approved is null) and userid=? and status IN (3,4)";
$rs = $this->db->fetchRow($this->db->quoteInto($sql,$uid));
if($inorder + $rs['datacount'] <= $this->config->download->max)
if($inorder <= $this->config->download->max)
{
return true;
}else{