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
| <?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('AssembleBill');
| // 砍价任务
| event('BargainTask');
| // 用户优惠券
| event('UserCoupon');
| // 分销商订单
| event('AgentOrder');
| // 直播间管理
| event('LiveRoom');
| // 分会
| event('Branch');
| return true;
| }
|
| }
|
|