Bläddra i källkod

feat(core): 优化扩展启动逻辑并修复类型提示问题

- 修改 CoreService 启动逻辑,将 system 扩展实例存入 bootedExtensionMap
- 修复 functions.php 中 running_in_console 函数返回值缺失问题
- 统一多个服务类中的可空参数类型声明
- 新增 HelloCron 定时任务并注册到扩展中
- 优化 GatheringCrontabEventHook 中定时任务初始化逻辑
- 增强 Cron 注解解析与任务执行检查机制
runphp 3 månader sedan
förälder
incheckning
0c64a98cc6
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Service/MiniApp.php

+ 1 - 1
src/Service/MiniApp.php

@@ -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'])) {