wugg 5 maanden geleden
bovenliggende
commit
de9a442e0c
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3 2
      app/cxinv/controller/Payinv.php

+ 3 - 2
app/cxinv/controller/Payinv.php

@@ -4,7 +4,8 @@
 namespace app\cxinv\controller;
 
 
-use app\cxinv\model\InvoiceOrder;use app\cxinv\model\PayInvoice;
+use app\cxinv\model\InvoiceOrder;
+use app\cxinv\model\PayInvoice;
 use app\cxinv\model\PayReturn;
 use app\cxinv\model\RoleAction;
 use app\user\model\AccountCompany;
@@ -197,7 +198,7 @@ class Payinv extends Base{
                 if (!isset($payArr[$val['hpNo']])) throw new \Exception("{$val['hpNo']}记录不存在");
 
                 $value = $payArr[$val['hpNo']];
-				$payinfo =Invoice::where(['InvCode'=>$payArr[$val['hpNo']]['payNo'],'status'=>3,'is_del'=>0])->findOrEmpty();
+				$payinfo =\app\cxinv\model\Invoice::where(['InvCode'=>$payArr[$val['hpNo']]['payNo'],'status'=>3,'is_del'=>0])->findOrEmpty();
 				if(empty($payinfo)) throw new \Exception("{$value['hpNo']}发票信息有误");
                 if ($payinfo['companyNo'] == '') throw new \Exception("{$value['hpNo']}发票业务公司信息有误");
                 if ($payinfo['companyNo'] != $companyNo) throw new \Exception("{$value['hpNo']}不属于当前业务公司发票");