ソースを参照

一口价预支付2

whitefang 1 年間 前
コミット
5e063276c8
2 ファイル変更9 行追加3 行削除
  1. 5 1
      app/api/logic/ServiceOrderLogic.php
  2. 4 2
      app/common/enum/GoodsEnum.php

+ 5 - 1
app/api/logic/ServiceOrderLogic.php

@@ -80,7 +80,11 @@ class ServiceOrderLogic extends BaseLogic
                 //一口价订单
                 $order_total = $goods['service_fee'];
                 $order_amount = $goods['service_fee'];
-            }else{
+            }else if ($goods['goods_payment_type'] == GoodsEnum::DEP_GOODS_PAYMENT_TYPE){
+                $order_total = $goods['base_service_fee'];
+                $order_amount = $goods['service_fee'];
+            }
+            else{
                 $order_total = $goods['base_service_fee'];
                 $order_amount = $goods['service_fee'];
             }

+ 4 - 2
app/common/enum/GoodsEnum.php

@@ -9,6 +9,8 @@ class GoodsEnum
 
     //服务支付类别
     //预支付
-    const UNGOODS_PAYMENT_TYPE = 1;
-    const ISGOODS_PAYMENT_TYPE = 2;
+    const UNGOODS_PAYMENT_TYPE = 1;//预支付服务
+    const ISGOODS_PAYMENT_TYPE = 2;//一口价服务
+
+    const DEP_GOODS_PAYMENT_TYPE = 3;//一口价服务预支付
 }