Ver código fonte

退款后将红包设置为失效

sunxiaobiao 1 ano atrás
pai
commit
805052004f

+ 5 - 0
app/common/repositories/store/order/StoreRefundOrderRepository.php

@@ -1568,5 +1568,10 @@ class StoreRefundOrderRepository extends BaseRepository
1568 1568
             ->where('order_id', $orderId)
1569 1569
             ->where('status', -1)
1570 1570
             ->update(['status' => 0]);
1571
+
1572
+        Db::name("user_sign_hongbao")
1573
+            ->where('order_id', $orderId)
1574
+            ->where('status', -1)
1575
+            ->update(['status' => 0]);
1571 1576
     }
1572 1577
 }