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