feat(fsgx): HJF queue merge, brokerage timing, cycle commission, points release
- Add HJF jobs, services, DAOs, models, admin/API controllers, release command - Respect brokerage_timing (on_pay vs confirm); dispatch HjfOrderPayJob for queue goods - Queue-only cycle commission and position index fix in StoreOrderCreateServices - UserBill income types: frozen_points_brokerage, frozen_points_release - Timer: fsgx_release_frozen_points -> PointsReleaseServices - Agent tasks: no_assess filtering for direct/umbrella counts - Migrations: queue_pool, points_release_log, fsgx_v1 checklist updates - Admin/uniapp: crontab preset, membership level, user list, finance routes, docs Made-with: Cursor
This commit is contained in:
@@ -14,6 +14,7 @@ namespace app\services\system\timer;
|
||||
use app\services\BaseServices;
|
||||
use crmeb\exceptions\AdminException;
|
||||
use app\dao\system\timer\SystemTimerDao;
|
||||
use app\listener\system\timer\SystemTimer as SystemTimerListener;
|
||||
use think\annotation\Inject;
|
||||
|
||||
/**
|
||||
@@ -231,6 +232,19 @@ class SystemTimerServices extends BaseServices
|
||||
return $timer->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动立即执行指定定时任务(HTTP 请求上下文,绕过 Swoole Cron 构造,用反射直接调用 implement_timer)
|
||||
* @param string $mark
|
||||
* @return void
|
||||
*/
|
||||
public function runNow(string $mark): void
|
||||
{
|
||||
$this->update(['mark' => $mark], ['last_execution_time' => time()]);
|
||||
$ref = new \ReflectionClass(SystemTimerListener::class);
|
||||
$instance = $ref->newInstanceWithoutConstructor();
|
||||
$instance->implement_timer($mark);
|
||||
}
|
||||
|
||||
/**获取下次执行时间
|
||||
* @param $type
|
||||
* @param $cycle
|
||||
|
||||
Reference in New Issue
Block a user