wugg 5 months ago
parent
commit
ce8ff734d2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/cxinv/controller/Payinv.php

+ 1 - 0
app/cxinv/controller/Payinv.php

@@ -189,6 +189,7 @@ class Payinv extends Base{
                     ->where(['a.is_del' => 0])
                     ->whereIn('a.hpNo', $unique)
                     ->column('a.id,a.payNo,a.hpNo,a.invoiceType,a.inv_fee as invoice_fee,a.status,b.companyNo,a.remark', 'a.hpNo');
+        if (empty($payArr)) return error("没有需要认证的发票");
         $this->model->startTrans();
         try {
             $saveAll=[];