添加:分销商佣金修改为订单支付后到账

This commit is contained in:
wuhui_zzw 2024-03-29 14:57:36 +08:00
parent 8a69b713f5
commit 0186b6d6e0
2 changed files with 6 additions and 2 deletions

View File

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

View File

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