wugg 6 maanden geleden
bovenliggende
commit
0430a6901f
2 gewijzigde bestanden met toevoegingen van 1 en 6 verwijderingen
  1. 0 5
      app/cxinv/controller/Invoice.php
  2. 1 1
      app/cxinv/controller/Payinv.php

+ 0 - 5
app/cxinv/controller/Invoice.php

@@ -5,11 +5,6 @@ namespace app\cxinv\controller;
 
 
 use app\cxinv\model\InvoiceInfo;
-use app\cxinv\model\InvoiceOrder;
-use app\cxinv\model\InvoiceItem;
-use app\cxinv\model\PayReturn;
-use app\cxinv\model\RoleAction;
-use app\user\model\AccountCompany;
 use app\user\model\Business;
 use app\user\model\Headquarters;
 use think\App;

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

@@ -24,7 +24,7 @@ class Payinv extends Base{
         if (!$valid->check($params))return error($valid->getError());
         $isT = $this->model->where(["payNo"=>$params['InvCode'],"status"=>[1,2,3,4]])->findOrEmpty();
         if (!$isT->isEmpty())return error("该发票单号已存在");
-        $invoice = \app\cxinv\model\Invoice::where("InvCode'",$params['InvCode'])->findOrEmpty();
+        $invoice = \app\cxinv\model\Invoice::where("InvCode",$params['InvCode'])->findOrEmpty();
         if ($invoice->isEmpty())return error("该发票单号不存在");
         if ($invoice->status!=2)return error("该发票单号状态不正确");
          $hpNo=makeNo('hp');