| 123456789101112131415161718192021222324252627 |
- <?php
- namespace addons\Community\console\controllers;
- use addons\Community\common\helper\CommunityHelper;
- use addons\Community\common\listeners\OrderCreatedListener;
- use addons\Community\common\listeners\OrderDeliveryListener;
- use addons\Community\common\listeners\OrderPaidListener;
- use addons\Community\common\listeners\OrderPaidRewardListener;
- use addons\Community\common\logic\NoticeLogic;
- use addons\Community\common\service\NoticeService;
- use yii\console\Controller;
- class TestController extends Controller
- {
- public function actionTest()
- {
- // (new OrderDeliveryListener())->exec(['id' => 492]);
- // (new OrderPaidRewardListener())->handleSync(['id' => 3098]);
- (new OrderPaidListener())->exec(['id' => 8972]);
- // (new OrderCreatedListener())->exec(['order_ids' => [8972]]);
- // echo CommunityHelper::getPickUpAt(1, 1677826870);
- // echo CommunityHelper::getPickUpAt(1, time());
- // (new NoticeLogic())->async_handle(['id' => 8560, 'status' => 1]);
- // (new NoticeService())->async_handle(['id' => 1]);
- }
- }
|