diff --git a/application/module/Order/mount/PdfOperate.php b/application/module/Order/mount/PdfOperate.php index 0e5af10f..a7419db0 100644 --- a/application/module/Order/mount/PdfOperate.php +++ b/application/module/Order/mount/PdfOperate.php @@ -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{