quguofeng 2 سال پیش
والد
کامیت
3dd14d5f83
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/common/repositories/store/order/StoreOrderRepository.php

+ 2 - 2
app/common/repositories/store/order/StoreOrderRepository.php

@@ -743,11 +743,11 @@ class StoreOrderRepository extends BaseRepository
             $order->save();
         });
         //折扣比超出返利红包米
-        $this->grant($order,$user);
+        $this->grant_integral($order,$user);
         event('order.take', compact('order'));
     }
     //超过应付尾款折扣比,以红包米的形式发放
-    public function grant(StoreOrder $order, User $user)
+    public function grant_integral(StoreOrder $order, User $user)
     {
         if($order->residue_percentage <= 0){
             return true;