积分抵扣订单不返利
parent
ec3f288627
commit
e42f4e0052
|
|
@ -3,11 +3,11 @@
|
|||
namespace App\Services;
|
||||
|
||||
use App\Enums\PayWay;
|
||||
use App\Models\{User, Order, SalesValueLog, Agent, OrderProfit, SocialiteUser};
|
||||
use App\Services\Payment\WxpayService;
|
||||
use App\Enums\SocialiteType;
|
||||
use App\Exceptions\BizException;
|
||||
use App\Exceptions\WeChatPayException;
|
||||
use App\Models\{User, Order, SalesValueLog, Agent, OrderProfit, SocialiteUser};
|
||||
use App\Services\Payment\WxpayService;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
|
|
@ -76,6 +76,11 @@ class DistributeService
|
|||
*/
|
||||
public function storeByOrder(Order $order)
|
||||
{
|
||||
// 使用积分抵扣的订单不返利
|
||||
if ($order->point_discount_amount > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
$sales_value = $order->sales_value;
|
||||
$user = $order->user;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue