diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php index fa6af86..0c526f3 100644 --- a/app/common/repositories/store/order/StoreOrderRepository.php +++ b/app/common/repositories/store/order/StoreOrderRepository.php @@ -292,7 +292,11 @@ class StoreOrderRepository extends BaseRepository } $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[] = [ 'order_id' => $order->order_id, 'order_sn' => $order->order_sn, diff --git a/crmeb/listens/AutoUnLockBrokerageListen.php b/crmeb/listens/AutoUnLockBrokerageListen.php index f6a85dd..8c8e84f 100644 --- a/crmeb/listens/AutoUnLockBrokerageListen.php +++ b/crmeb/listens/AutoUnLockBrokerageListen.php @@ -18,7 +18,7 @@ class AutoUnLockBrokerageListen extends TimerService implements ListenerInterfac public function handle($event): void { //TODO 自动解冻佣金 - $this->tick(1000 * 60 * 20, function () { + $this->tick(1000 * 60 * 1, function () { $userBill = app()->make(UserBillRepository::class); request()->clearCache(); $timer = ((int)systemConfig('lock_brokerage_timer'));