29 lines
680 B
PHP
Executable File
29 lines
680 B
PHP
Executable File
<?php
|
||
|
||
namespace App\Listeners;
|
||
|
||
use App\Events\OrderWinedEvent;
|
||
use App\Jobs\ComputeCustomerWinLevelScore;
|
||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||
|
||
class CustomerWinAddLevelListener implements ShouldQueue
|
||
{
|
||
/**
|
||
* Create the event listener.
|
||
*
|
||
* @return void
|
||
*/
|
||
public function __construct()
|
||
{
|
||
}
|
||
|
||
// 1、普通:累加方案金额和2倍中奖
|
||
// 1、合买:累加方案金额和2倍中奖;参与人只累加购买
|
||
// 1、发单:累加方案金额和2倍中奖;跟单人累加购买和中
|
||
public function handle(OrderWinedEvent $event)
|
||
{
|
||
ComputeCustomerWinLevelScore::dispatch($event->orderId);
|
||
}
|
||
|
||
}
|