修改了生成pdf时限制数量的判断规则
This commit is contained in:
parent
7760e3fea6
commit
8caeae6913
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue