瀏覽代碼

固定价无需分账处理

liugc 9 月之前
父節點
當前提交
374c7a16df
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/common/logic/ExternalPlatformLogic.php

+ 3 - 1
app/common/logic/ExternalPlatformLogic.php

@@ -97,7 +97,9 @@ class ExternalPlatformLogic  extends BaseLogic
                 throw new \Exception('工单不存在');
             }
             if($model->external_platform_id = 0){
-
+                $order_sns = \app\common\model\orders\RechargeOrder::where('work_id',$model->id)->column('sn');
+                $goods_payment_type = OrderGoods::whereIn('sn',$order_sns)->value('goods_payment_type');
+                if(in_array($goods_payment_type,['2','3'])) throw new \Exception('固定价无需分账处理');
                 $laborRatio = 0;
                 $ratio = 0;
                 $commissionConfig = MasterWorkerCommissionConfig::where('master_worker_id',$model->master_worker_id)->where('voucher_status',2)->findOrEmpty();