quanwei
2025-12-09 ca425b889f3c1b5847ffc26a0229307f7f8ef43e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
 
namespace app\job\event;
 
 
use app\common\model\app\App as AppModel;
 
/**
 * 订单事件管理
 */
class JobScheduler
{
 
    /**
     * 执行函数
     */
    public function handle()
    {
        // 查找所有appid
        $appList = AppModel::getAll();
        // 涉及到应用单独配置的,循环执行
        foreach ($appList as $app){
            // 订单任务
            event('Order', $app['app_id']);
            // 预售订单
            event('AdvanceOrder', $app['app_id']);
            // 分红队长排位有效期
            event('BonusUser', $app['app_id']);
        }
        // 拼团任务
        event('AssembleBill');
        // 砍价任务
        event('BargainTask');
        // 用户优惠券
        event('UserCoupon');
        // 分销商订单
        event('AgentOrder');
        // VIP专区订单
        event('VipOrder');
        // 直播间管理
        event('LiveRoom');
        // 分会
        event('Branch');
        return true;
    }
 
}