添加:分销商佣金修改为订单支付后到账
This commit is contained in:
parent
8a69b713f5
commit
0186b6d6e0
|
|
@ -292,7 +292,11 @@ class StoreOrderRepository extends BaseRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
$order->save();
|
$order->save();
|
||||||
if ($isPoints) $this->takeAfter($order, $groupOrder->user);
|
// todo 佣金修改为支付成功后到账 2024-3-29
|
||||||
|
// if ($isPoints) $this->takeAfter($order, $groupOrder->user);
|
||||||
|
$this->takeAfter($order, $groupOrder->user);
|
||||||
|
|
||||||
|
|
||||||
$orderStatus[] = [
|
$orderStatus[] = [
|
||||||
'order_id' => $order->order_id,
|
'order_id' => $order->order_id,
|
||||||
'order_sn' => $order->order_sn,
|
'order_sn' => $order->order_sn,
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class AutoUnLockBrokerageListen extends TimerService implements ListenerInterfac
|
||||||
public function handle($event): void
|
public function handle($event): void
|
||||||
{
|
{
|
||||||
//TODO 自动解冻佣金
|
//TODO 自动解冻佣金
|
||||||
$this->tick(1000 * 60 * 20, function () {
|
$this->tick(1000 * 60 * 1, function () {
|
||||||
$userBill = app()->make(UserBillRepository::class);
|
$userBill = app()->make(UserBillRepository::class);
|
||||||
request()->clearCache();
|
request()->clearCache();
|
||||||
$timer = ((int)systemConfig('lock_brokerage_timer'));
|
$timer = ((int)systemConfig('lock_brokerage_timer'));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue