|
|
@@ -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;
|