- 修改 CoreService 启动逻辑,将 system 扩展实例存入 bootedExtensionMap - 修复 functions.php 中 running_in_console 函数返回值缺失问题 - 统一多个服务类中的可空参数类型声明 - 新增 HelloCron 定时任务并注册到扩展中 - 优化 GatheringCrontabEventHook 中定时任务初始化逻辑 - 增强 Cron 注解解析与任务执行检查机制
@@ -9,7 +9,7 @@ use think\facade\Cache;
class MiniApp extends Application
{
- public function __construct(string $appID = null)
+ public function __construct(?string $appID = null)
$rawConfig = extension_config('wechat');
if (!isset($rawConfig['app_id'], $rawConfig['secret'])) {