wugg 5 months ago
parent
commit
a0e3ad7e85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/cxinv/model/TagLog.php

+ 1 - 1
app/cxinv/model/TagLog.php

@@ -102,7 +102,7 @@ namespace app\cxinv\model;
     private static  function payTag($type,$code,$total_fee){
 		 $pay=Pay::where(['payNo'=>$code,'is_del'=>0])->findOrEmpty();
 		 if($pay->isEmpty())throw  new \Exception('未找到对账单数据');
-		 if($pay->is_comon==0 && $pay->pay_type==1 && strtotime($pay->addtime)>=strtotime("2024-09-22")) throw  new \Exception('非通用采购对账单不可加标签');
+		 if($pay->is_comon==0 && $pay->pay_type==1 && strtotime($pay->addtime)>=strtotime(env("tag.endtime"))) throw  new \Exception('非通用采购对账单不可加标签');
 		 if($type==1){
 		 	if($pay->wpay_fee<$total_fee)throw  new \Exception('对账单未付金额不足');
 		 	$pay->wpay_fee=$pay->wpay_fee-$total_fee;