<?php

namespace Modules\Project\Listeners;

use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use Modules\Base\Entities\UserAgentDoukuai;
use Modules\Base\Entities\UserDoukuaiCode;
use Modules\Project\Services\CardOrderRewardService;
use Modules\Project\Services\DoukuaiUserService;
use Modules\Project\Services\UserDaoyoudaoService;
use SMG\Pay\Events\PaymentSuccessEvent;
use SMG\Pay\Models\Pay;

class PaymentSuccessListener
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    public function handle(PaymentSuccessEvent $event)
    {
        $pay = $event->pay;
        $model_type = $pay->model; //union

        //用户抖快模式升级
        if ($model_type == 'xxxx') {
        }

    }
}
