whitefang 1 год назад
Родитель
Сommit
4a0c296cdf
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/api/logic/ServiceOrderLogic.php

+ 2 - 0
app/api/logic/ServiceOrderLogic.php

@@ -27,6 +27,7 @@ use app\common\model\works\ServiceWorkSpare;
 use app\workerapi\logic\ServiceWorkLogLogic;
 use think\Exception;
 use think\facade\Db;
+use think\facade\Log;
 
 
 /**
@@ -571,6 +572,7 @@ class ServiceOrderLogic extends BaseLogic
                 'user_id' => $params['user_id'],
                 'sn'=>$params['sn']
             ])->findOrEmpty();
+            Log::write($is_coupon_used);
             if(!empty($is_coupon_used['coupon_id']) && $is_coupon_used['pay_status'] == 0){
                 $user_coupon = UserCoupon::where(['user_id'=>$is_coupon_used->user_id,'id'=>$is_coupon_used->coupon_id])->findOrEmpty();
                 $user_coupon->voucher_status = 0;