Sfoglia il codice sorgente

储值卡产品、订单

gorden 19 ore fa
parent
commit
6ca284c4cb
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      app/admin/controller/order/CardController.php

+ 8 - 0
app/admin/controller/order/CardController.php

@@ -329,6 +329,10 @@ class CardController extends Curd
             $this->insertPayDetail($params);
             Db::commit();
             if ($params['order_status_payment'] == 'SUCCESS') {
+                // 订单完成
+                Event::dispatch('order.complete', $params);
+                // 上级提成
+                Event::dispatch('commission.order', $params);
                 // 入收支明细表
                 $params['inout_category'] = '购买储值卡';
                 Event::dispatch('statistics.inout.in', $params);
@@ -553,6 +557,10 @@ class CardController extends Curd
                 OrderSheetService::addGoodsSales($params['orderId']);
             }
             if ($order->order_status_payment == 'SUCCESS') {
+                // 订单完成
+                Event::dispatch('order.complete', $params);
+                // 上级提成
+                Event::dispatch('commission.order', $params);
                 // 入收支明细表
                 $params['inout_category'] = '购买储值卡';
                 Event::dispatch('statistics.inout.in', $params);