xieruidong 2 years ago
parent
commit
247d33c854
1 changed files with 1 additions and 3 deletions
  1. 1 3
      application/common/model/Orders.php

+ 1 - 3
application/common/model/Orders.php

@@ -232,9 +232,7 @@ class Orders extends Model
             #过期时间
             $orders['continue_expire_time']=time()+self::EXP_PAY;
             #添加发票
-            if($orders['tax']) {
-                UserTax::fromOrder($orders);
-            }
+            UserTax::fromOrder($orders);
         });
         self::beforeUpdate(function (self $order){
             $data=$order->getChangedData();