wugg 2 years ago
parent
commit
e4a6b79a63
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/admin/controller/Payment.php

+ 2 - 1
app/admin/controller/Payment.php

@@ -858,6 +858,7 @@ class Payment extends BaseController
             $invCode =isset($post['invCode'])&& $post['invCode']!='' ? trim($post['invCode']):"";
             $checkNumber =isset($post['checkNumber'])&& $post['checkNumber']!='' ? trim($post['checkNumber']):"";
             $openTime =isset($post['open_time'])&& $post['open_time']!='' ? trim($post['open_time']):"";
+            $subtotal_amount =isset($post['subtotal_amount'])&& $post['subtotal_amount']!='' ? floor($post['subtotal_amount']):"0";
         if($type==1){
             if($invNumber=="") return error_show(1004,"参数 invNumber 不能为空");
             if($invCode=="") return error_show(1004,"参数 invCode 不能为空");
@@ -883,7 +884,7 @@ class Payment extends BaseController
                 "hpNo"=>$hpNo,
                 "apply_id"=>$this->uid,
                 "apply_name"=>$this->uname,
-                "inv_fee"=> '',
+                "inv_fee"=> $subtotal_amount,
                 "invType"=> $type,
                 "invoiceType"=>0,
                 "inv_img"=>$invimg,