基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-24 13:33:13 HTTP/2.0 GET : https://notebook.admin.api.lingzhitiancheng.cn/
  2. 运行时间 : 0.219572s [ 吞吐率:4.55req/s ] 内存消耗:4,275.16kb 文件加载:135
  3. 缓存信息 : 0 reads,0 writes
  1. /www/wwwroot/ai-note/admin-api/public/index.php ( 0.79 KB )
  2. /www/wwwroot/ai-note/admin-api/vendor/autoload.php ( 0.75 KB )
  3. /www/wwwroot/ai-note/admin-api/vendor/composer/autoload_real.php ( 1.63 KB )
  4. /www/wwwroot/ai-note/admin-api/vendor/composer/platform_check.php ( 0.90 KB )
  5. /www/wwwroot/ai-note/admin-api/vendor/composer/ClassLoader.php ( 15.99 KB )
  6. /www/wwwroot/ai-note/admin-api/vendor/composer/autoload_static.php ( 4.56 KB )
  7. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /www/wwwroot/ai-note/admin-api/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  14. /www/wwwroot/ai-note/admin-api/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  15. /www/wwwroot/ai-note/admin-api/vendor/symfony/var-dumper/Resources/functions/dump.php ( 0.99 KB )
  16. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  17. /www/wwwroot/ai-note/admin-api/vendor/symfony/var-dumper/VarDumper.php ( 3.73 KB )
  18. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  19. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  20. /www/wwwroot/ai-note/admin-api/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  21. /www/wwwroot/ai-note/admin-api/app/provider.php ( 0.19 KB )
  22. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Http.php ( 6.22 KB )
  23. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  24. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  25. /www/wwwroot/ai-note/admin-api/app/common.php ( 0.46 KB )
  26. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/helper.php ( 18.77 KB )
  27. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Config.php ( 5.93 KB )
  28. /www/wwwroot/ai-note/admin-api/config/app.php ( 0.95 KB )
  29. /www/wwwroot/ai-note/admin-api/config/cache.php ( 0.78 KB )
  30. /www/wwwroot/ai-note/admin-api/config/console.php ( 0.23 KB )
  31. /www/wwwroot/ai-note/admin-api/config/cookie.php ( 0.56 KB )
  32. /www/wwwroot/ai-note/admin-api/config/database.php ( 2.14 KB )
  33. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /www/wwwroot/ai-note/admin-api/config/filesystem.php ( 0.61 KB )
  35. /www/wwwroot/ai-note/admin-api/config/lang.php ( 0.91 KB )
  36. /www/wwwroot/ai-note/admin-api/config/log.php ( 1.35 KB )
  37. /www/wwwroot/ai-note/admin-api/config/middleware.php ( 0.19 KB )
  38. /www/wwwroot/ai-note/admin-api/config/route.php ( 1.89 KB )
  39. /www/wwwroot/ai-note/admin-api/config/session.php ( 0.57 KB )
  40. /www/wwwroot/ai-note/admin-api/config/trace.php ( 0.34 KB )
  41. /www/wwwroot/ai-note/admin-api/config/view.php ( 0.82 KB )
  42. /www/wwwroot/ai-note/admin-api/app/event.php ( 0.25 KB )
  43. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Event.php ( 7.77 KB )
  44. /www/wwwroot/ai-note/admin-api/app/service.php ( 0.13 KB )
  45. /www/wwwroot/ai-note/admin-api/app/AppService.php ( 0.31 KB )
  46. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  47. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  48. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  49. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  50. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  51. /www/wwwroot/ai-note/admin-api/vendor/services.php ( 0.15 KB )
  52. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  53. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  54. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  55. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  56. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  57. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  58. /www/wwwroot/ai-note/admin-api/app/service/AdminSchemaService.php ( 48.58 KB )
  59. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/facade/Config.php ( 1.37 KB )
  60. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  61. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  62. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  63. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  64. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  65. /www/wwwroot/ai-note/admin-api/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  66. /www/wwwroot/ai-note/admin-api/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  67. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  68. /www/wwwroot/ai-note/admin-api/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  69. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-helper/src/helper/Arr.php ( 17.45 KB )
  70. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  71. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/cache/Driver.php ( 9.02 KB )
  72. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  73. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.73 KB )
  74. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/PDOConnection.php ( 53.74 KB )
  75. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  76. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  77. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  78. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/Builder.php ( 24.07 KB )
  79. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  80. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/log/driver/File.php ( 6.10 KB )
  81. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  82. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  83. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  84. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/Query.php ( 15.97 KB )
  85. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  86. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  87. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  88. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  89. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  90. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  91. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  92. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  93. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  94. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  95. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  96. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  97. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  98. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/db/Raw.php ( 1.30 KB )
  99. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  100. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  101. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  102. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  103. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.20 KB )
  104. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.75 KB )
  105. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  106. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  107. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.30 KB )
  108. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  109. /www/wwwroot/ai-note/admin-api/app/Request.php ( 0.09 KB )
  110. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Request.php ( 54.64 KB )
  111. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/traits/UrlHandler.php ( 6.05 KB )
  112. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/traits/DomainHandler.php ( 5.49 KB )
  113. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/traits/HttpMethodHandler.php ( 4.74 KB )
  114. /www/wwwroot/ai-note/admin-api/app/middleware.php ( 0.26 KB )
  115. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  116. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  117. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  118. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/route/RuleName.php ( 5.74 KB )
  119. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  120. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.41 KB )
  121. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/route/Rule.php ( 27.49 KB )
  122. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  123. /www/wwwroot/ai-note/admin-api/route/app.php ( 5.48 KB )
  124. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  125. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  126. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/route/Dispatch.php ( 11.32 KB )
  127. /www/wwwroot/ai-note/admin-api/app/controller/Index.php ( 0.44 KB )
  128. /www/wwwroot/ai-note/admin-api/app/BaseController.php ( 2.05 KB )
  129. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/facade/App.php ( 2.73 KB )
  130. /www/wwwroot/ai-note/admin-api/vendor/composer/InstalledVersions.php ( 15.76 KB )
  131. /www/wwwroot/ai-note/admin-api/vendor/composer/installed.php ( 7.25 KB )
  132. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Response.php ( 9.07 KB )
  133. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/response/Html.php ( 0.97 KB )
  134. /www/wwwroot/ai-note/admin-api/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  135. /www/wwwroot/ai-note/admin-api/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000846s ] mysql:host=127.0.0.1;port=3306;dbname=notebook;charset=utf8mb4
  2. SHOW TABLES LIKE 'admin_user' [ RunTime:0.001419s ]
  3. SHOW TABLES LIKE 'admin_role' [ RunTime:0.001126s ]
  4. SHOW TABLES LIKE 'admin_permission' [ RunTime:0.000946s ]
  5. SHOW TABLES LIKE 'admin_menu' [ RunTime:0.000909s ]
  6. SHOW TABLES LIKE 'admin_log' [ RunTime:0.000892s ]
  7. SHOW TABLES LIKE 'admin_config' [ RunTime:0.000885s ]
  8. CREATE TABLE IF NOT EXISTS `app_configs` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `key_name` VARCHAR(128) NOT NULL, `value` TEXT, `label` VARCHAR(128) NOT NULL, `description` VARCHAR(255) NOT NULL DEFAULT '', `value_type` VARCHAR(32) NOT NULL DEFAULT 'bool', `enabled` TINYINT NOT NULL DEFAULT 1, `created_ts` BIGINT NOT NULL DEFAULT 0, `updated_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uq_app_configs_key_name` (`key_name`), KEY `idx_app_configs_enabled` (`enabled`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='应用配置表' [ RunTime:0.002049s ]
  9. CREATE TABLE IF NOT EXISTS `app_config_cache` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `cache_key` VARCHAR(128) NOT NULL, `cache_json` LONGTEXT, `version` BIGINT NOT NULL DEFAULT 0, `created_ts` BIGINT NOT NULL DEFAULT 0, `updated_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uq_app_config_cache_key` (`cache_key`), KEY `idx_app_config_cache_updated` (`updated_ts`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='应用配置缓存表' [ RunTime:0.001900s ]
  10. SHOW FULL COLUMNS FROM `app_configs` [ RunTime:0.001219s ]
  11. SELECT * FROM `app_configs` WHERE `key_name` = 'feature.member_upgrade' LIMIT 1 [ RunTime:0.000320s ]
  12. SELECT * FROM `app_configs` ORDER BY `id` ASC [ RunTime:0.000224s ]
  13. SHOW FULL COLUMNS FROM `app_config_cache` [ RunTime:0.001009s ]
  14. SELECT * FROM `app_config_cache` WHERE `cache_key` = 'feature_switches' LIMIT 1 [ RunTime:0.000273s ]
  15. UPDATE `app_config_cache` SET `cache_json` = '{\"loaded_ts\":1777008793,\"items\":[{\"id\":1,\"key_name\":\"feature.member_upgrade\",\"value\":\"1\",\"label\":\"会员升级入口\",\"description\":\"控制 Web 端头像菜单中“升级会员”是否显示\",\"value_type\":\"bool\",\"enabled\":false,\"bool_value\":true,\"updated_ts\":1776670168}],\"map\":{\"feature.member_upgrade\":false}}' , `version` = version + 1 , `updated_ts` = '1777008793' WHERE `id` = '1' [ RunTime:0.003329s ]
  16. CREATE TABLE IF NOT EXISTS `billing_rules` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `module_key` VARCHAR(32) NOT NULL, `scene_key` VARCHAR(64) NOT NULL DEFAULT 'default', `name` VARCHAR(100) NOT NULL, `change_type` VARCHAR(16) NOT NULL DEFAULT 'decrease', `token_cost` INT NOT NULL DEFAULT 0, `enabled` TINYINT NOT NULL DEFAULT 1, `sort_no` INT NOT NULL DEFAULT 100, `created_ts` BIGINT NOT NULL DEFAULT 0, `updated_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uq_billing_rules_module_scene` (`module_key`, `scene_key`), KEY `idx_billing_rules_enabled_sort` (`enabled`, `sort_no`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci [ RunTime:0.003024s ]
  17. CREATE TABLE IF NOT EXISTS `subscription_plans` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `plan_key` VARCHAR(64) NOT NULL, `plan_type` VARCHAR(16) NOT NULL DEFAULT 'year', `name` VARCHAR(100) NOT NULL, `description` TEXT, `duration_days` INT NOT NULL DEFAULT 365, `price_cents` INT NOT NULL DEFAULT 0, `token_grant` INT NOT NULL DEFAULT 0, `enabled` TINYINT NOT NULL DEFAULT 1, `sort_no` INT NOT NULL DEFAULT 100, `created_ts` BIGINT NOT NULL DEFAULT 0, `updated_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uq_subscription_plans_plan_key` (`plan_key`), KEY `idx_subscription_plans_enabled_sort` (`enabled`, `sort_no`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci [ RunTime:0.001811s ]
  18. CREATE TABLE IF NOT EXISTS `user_token_wallets` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` BIGINT UNSIGNED NOT NULL, `token_balance` INT NOT NULL DEFAULT 0, `lifetime_spent_tokens` INT NOT NULL DEFAULT 0, `created_ts` BIGINT NOT NULL DEFAULT 0, `updated_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uq_user_token_wallets_user` (`user_id`), KEY `idx_user_token_wallets_updated` (`updated_ts`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci [ RunTime:0.001840s ]
  19. CREATE TABLE IF NOT EXISTS `token_transactions` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` BIGINT UNSIGNED NOT NULL, `change_type` VARCHAR(16) NOT NULL DEFAULT 'decrease', `change_tokens` INT NOT NULL DEFAULT 0, `balance_after` INT NOT NULL DEFAULT 0, `biz_type` VARCHAR(32) NOT NULL, `biz_ref` VARCHAR(128) NOT NULL DEFAULT '', `remark` TEXT, `created_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `idx_token_transactions_user_created` (`user_id`, `created_ts`), KEY `idx_token_transactions_change_type_created` (`change_type`, `created_ts`), KEY `idx_token_transactions_biz` (`biz_type`, `biz_ref`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci [ RunTime:0.002190s ]
  20. CREATE TABLE IF NOT EXISTS `billing_orders` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `order_no` VARCHAR(64) NOT NULL, `user_id` BIGINT UNSIGNED NOT NULL, `order_type` VARCHAR(32) NOT NULL, `target_id` BIGINT NULL, `title` VARCHAR(128) NOT NULL DEFAULT '', `amount_cents` INT NOT NULL DEFAULT 0, `token_amount` INT NOT NULL DEFAULT 0, `status` VARCHAR(20) NOT NULL DEFAULT 'paid', `paid_ts` BIGINT NULL, `created_ts` BIGINT NOT NULL DEFAULT 0, `updated_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uq_billing_orders_order_no` (`order_no`), KEY `idx_billing_orders_user_created` (`user_id`, `created_ts`), KEY `idx_billing_orders_type_status` (`order_type`, `status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci [ RunTime:0.002056s ]
  21. CREATE TABLE IF NOT EXISTS `user_subscriptions` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` BIGINT UNSIGNED NOT NULL, `plan_id` BIGINT UNSIGNED NOT NULL, `order_id` BIGINT UNSIGNED NOT NULL, `status` VARCHAR(20) NOT NULL DEFAULT 'active', `start_ts` BIGINT NOT NULL DEFAULT 0, `end_ts` BIGINT NOT NULL DEFAULT 0, `created_ts` BIGINT NOT NULL DEFAULT 0, `updated_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `idx_user_subscriptions_user_status_end` (`user_id`, `status`, `end_ts`), KEY `idx_user_subscriptions_order` (`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci [ RunTime:0.001904s ]
  22. CREATE TABLE IF NOT EXISTS `cdk_redeem_codes` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `batch_no` VARCHAR(8) NOT NULL DEFAULT '', `code` VARCHAR(8) NOT NULL, `reward_type` VARCHAR(16) NOT NULL DEFAULT 'token', `reward_value` INT NOT NULL DEFAULT 0, `valid_start_ts` BIGINT NOT NULL DEFAULT 0, `valid_end_ts` BIGINT NOT NULL DEFAULT 0, `is_used` TINYINT NOT NULL DEFAULT 0, `used_ts` BIGINT NULL, `used_user_id` BIGINT NULL, `used_username` VARCHAR(64) NULL, `generated_by_admin_id` BIGINT NULL, `generated_by_admin_name` VARCHAR(64) NULL, `note` VARCHAR(255) NULL, `created_ts` BIGINT NOT NULL DEFAULT 0, `updated_ts` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uq_cdk_redeem_codes_code` (`code`), KEY `idx_cdk_redeem_codes_batch_no` (`batch_no`), KEY `idx_cdk_redeem_codes_used` (`is_used`, `used_ts`), KEY `idx_cdk_redeem_codes_valid` (`valid_start_ts`, `valid_end_ts`), KEY `idx_cdk_redeem_codes_used_user` (`used_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci [ RunTime:0.001878s ]
  23. SHOW COLUMNS FROM `billing_rules` LIKE 'change_type' [ RunTime:0.000904s ]
  24. SHOW COLUMNS FROM `token_transactions` LIKE 'change_type' [ RunTime:0.000867s ]
  25. SHOW INDEX FROM `token_transactions` WHERE Key_name = 'idx_token_transactions_change_type_created' [ RunTime:0.000989s ]
  26. UPDATE `token_transactions` SET `change_type` = CASE WHEN `change_tokens` >= 0 THEN 'increase' ELSE 'decrease' END [ RunTime:0.001854s ]
  27. SHOW COLUMNS FROM `cdk_redeem_codes` LIKE 'batch_no' [ RunTime:0.000849s ]
  28. SHOW INDEX FROM `cdk_redeem_codes` WHERE Key_name = 'idx_cdk_redeem_codes_batch_no' [ RunTime:0.000925s ]
  29. UPDATE `cdk_redeem_codes` SET `batch_no` = DATE_FORMAT(FROM_UNIXTIME(IF(`created_ts` > 0, `created_ts`, UNIX_TIMESTAMP())), '%Y%m%d') WHERE `batch_no` IS NULL OR `batch_no` = '' [ RunTime:0.001694s ]
  30. SHOW FULL COLUMNS FROM `billing_rules` [ RunTime:0.000973s ]
  31. UPDATE `billing_rules` SET `change_type` = 'increase' , `updated_ts` = '1777008793' WHERE ( `module_key` = 'wallet' AND `scene_key` = 'register' ) [ RunTime:0.001729s ]
  32. UPDATE `billing_rules` SET `change_type` = 'decrease' , `updated_ts` = '1777008793' WHERE ( NOT (module_key = 'wallet' AND scene_key = 'register') ) [ RunTime:0.001739s ]
  33. DELETE FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'default' [ RunTime:0.001789s ]
  34. SELECT * FROM `billing_rules` WHERE `module_key` = 'wallet' AND `scene_key` = 'register' LIMIT 1 [ RunTime:0.000247s ]
  35. SELECT * FROM `billing_rules` WHERE `module_key` = 'chat' AND `scene_key` = 'default' LIMIT 1 [ RunTime:0.000176s ]
  36. SHOW FULL COLUMNS FROM `studios` [ RunTime:0.001006s ]
  37. SELECT * FROM `studios` ORDER BY `sort_no` ASC,`id` ASC [ RunTime:0.000288s ]
  38. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'mindmap' LIMIT 1 [ RunTime:0.000223s ]
  39. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'flashcards' LIMIT 1 [ RunTime:0.000183s ]
  40. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'quiz' LIMIT 1 [ RunTime:0.000189s ]
  41. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'infographic' LIMIT 1 [ RunTime:0.000164s ]
  42. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'audio_overview' LIMIT 1 [ RunTime:0.000171s ]
  43. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'slides' LIMIT 1 [ RunTime:0.000172s ]
  44. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'video_overview' LIMIT 1 [ RunTime:0.000163s ]
  45. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'report' LIMIT 1 [ RunTime:0.000157s ]
  46. SELECT * FROM `billing_rules` WHERE `module_key` = 'studio' AND `scene_key` = 'datatable' LIMIT 1 [ RunTime:0.000169s ]
  47. SHOW FULL COLUMNS FROM `subscription_plans` [ RunTime:0.000999s ]
  48. SELECT * FROM `subscription_plans` WHERE `plan_key` = 'vip_year' LIMIT 1 [ RunTime:0.000238s ]
  49. SHOW TABLES LIKE 'app_configs' [ RunTime:0.000892s ]
  50. ALTER TABLE `app_configs` COMMENT='应用配置表' [ RunTime:0.008600s ]
  51. SHOW FULL COLUMNS FROM `app_configs` [ RunTime:0.001045s ]
  52. SHOW TABLES LIKE 'app_config_cache' [ RunTime:0.000883s ]
  53. ALTER TABLE `app_config_cache` COMMENT='应用配置缓存表' [ RunTime:0.008238s ]
  54. SHOW FULL COLUMNS FROM `app_config_cache` [ RunTime:0.000954s ]
  55. SHOW TABLES LIKE 'billing_rules' [ RunTime:0.000866s ]
  56. ALTER TABLE `billing_rules` COMMENT='功能计费规则' [ RunTime:0.011040s ]
  57. SHOW FULL COLUMNS FROM `billing_rules` [ RunTime:0.000997s ]
  58. SHOW TABLES LIKE 'subscription_plans' [ RunTime:0.000866s ]
  59. ALTER TABLE `subscription_plans` COMMENT='订阅套餐配置' [ RunTime:0.011362s ]
  60. SHOW FULL COLUMNS FROM `subscription_plans` [ RunTime:0.001034s ]
  61. SHOW TABLES LIKE 'user_token_wallets' [ RunTime:0.000867s ]
  62. ALTER TABLE `user_token_wallets` COMMENT='用户词元钱包' [ RunTime:0.008951s ]
  63. SHOW FULL COLUMNS FROM `user_token_wallets` [ RunTime:0.000937s ]
  64. SHOW TABLES LIKE 'token_transactions' [ RunTime:0.000871s ]
  65. ALTER TABLE `token_transactions` COMMENT='词元流水记录' [ RunTime:0.011010s ]
  66. SHOW FULL COLUMNS FROM `token_transactions` [ RunTime:0.001010s ]
  67. SHOW TABLES LIKE 'billing_orders' [ RunTime:0.000863s ]
  68. ALTER TABLE `billing_orders` COMMENT='收费订单' [ RunTime:0.011593s ]
  69. SHOW FULL COLUMNS FROM `billing_orders` [ RunTime:0.001051s ]
  70. SHOW TABLES LIKE 'user_subscriptions' [ RunTime:0.000853s ]
  71. ALTER TABLE `user_subscriptions` COMMENT='用户订阅记录' [ RunTime:0.012561s ]
  72. SHOW FULL COLUMNS FROM `user_subscriptions` [ RunTime:0.001071s ]
  73. SHOW TABLES LIKE 'cdk_redeem_codes' [ RunTime:0.000942s ]
  74. ALTER TABLE `cdk_redeem_codes` COMMENT='CDK兑换码' [ RunTime:0.009726s ]
  75. SHOW FULL COLUMNS FROM `cdk_redeem_codes` [ RunTime:0.001196s ]
  76. SHOW FULL COLUMNS FROM `admin_menu` [ RunTime:0.001046s ]
  77. SELECT `id` FROM `admin_menu` [ RunTime:0.000239s ]
  78. SHOW FULL COLUMNS FROM `admin_role_menu` [ RunTime:0.000909s ]
  79. DELETE FROM `admin_role_menu` WHERE `menu_id` NOT IN ('5','23','29','32','39','6','7','8','9','42','24','25','26','27','28','36','37','38','30','31','33','34','35','40','41','43') [ RunTime:0.001760s ]
  80. SHOW FULL COLUMNS FROM `admin_role` [ RunTime:0.000992s ]
  81. SELECT * FROM `admin_role` WHERE `code` = 'admin' LIMIT 1 [ RunTime:0.000277s ]
  82. SHOW FULL COLUMNS FROM `admin_user` [ RunTime:0.001000s ]
  83. SELECT * FROM `admin_user` WHERE `username` = 'admin' LIMIT 1 [ RunTime:0.000296s ]
  84. SHOW FULL COLUMNS FROM `admin_user_role` [ RunTime:0.000908s ]
  85. SELECT * FROM `admin_user_role` WHERE `user_id` = '1' AND `role_id` = '1' LIMIT 1 [ RunTime:0.000279s ]
  86. SELECT COUNT(*) AS think_count FROM `admin_menu` [ RunTime:0.000208s ]
  87. SELECT * FROM `admin_menu` WHERE `path` = '/notebooks/knowledge' LIMIT 1 [ RunTime:0.000258s ]
  88. SELECT * FROM `admin_menu` WHERE `path` = '/notebooks/resources' LIMIT 1 [ RunTime:0.000264s ]
  89. SELECT * FROM `admin_menu` WHERE `path` = '/notebooks/policies' LIMIT 1 [ RunTime:0.000277s ]
  90. SELECT * FROM `admin_menu` WHERE `path` = '/system/feature-switches' LIMIT 1 [ RunTime:0.000247s ]
  91. SELECT * FROM `admin_menu` WHERE `path` = '/charge' LIMIT 1 [ RunTime:0.000247s ]
  92. SELECT * FROM `admin_menu` WHERE `path` = '/charge/rules' LIMIT 1 [ RunTime:0.000263s ]
  93. SELECT * FROM `admin_menu` WHERE `path` = '/charge/subscriptions' LIMIT 1 [ RunTime:0.000251s ]
  94. SELECT * FROM `admin_menu` WHERE `path` = '/charge/cdks' LIMIT 1 [ RunTime:0.000251s ]
  95. SHOW FULL COLUMNS FROM `admin_permission` [ RunTime:0.000971s ]
  96. SELECT * FROM `admin_permission` WHERE `code` = 'notebook_knowledge.view' LIMIT 1 [ RunTime:0.000284s ]
  97. SELECT * FROM `admin_permission` WHERE `code` = 'notebook_knowledge.update' LIMIT 1 [ RunTime:0.000251s ]
  98. SELECT * FROM `admin_permission` WHERE `code` = 'notebook_resources.view' LIMIT 1 [ RunTime:0.000227s ]
  99. SELECT * FROM `admin_permission` WHERE `code` = 'notebook_resources.update' LIMIT 1 [ RunTime:0.000228s ]
  100. SELECT * FROM `admin_permission` WHERE `code` = 'notebook_policies.view' LIMIT 1 [ RunTime:0.000245s ]
  101. SELECT * FROM `admin_permission` WHERE `code` = 'notebook_policies.update' LIMIT 1 [ RunTime:0.000223s ]
  102. SELECT * FROM `admin_permission` WHERE `code` = 'feature_switches.view' LIMIT 1 [ RunTime:0.000228s ]
  103. SELECT * FROM `admin_permission` WHERE `code` = 'feature_switches.update' LIMIT 1 [ RunTime:0.000240s ]
  104. SELECT * FROM `admin_permission` WHERE `code` = 'billing_rules.view' LIMIT 1 [ RunTime:0.000220s ]
  105. SELECT * FROM `admin_permission` WHERE `code` = 'billing_rules.update' LIMIT 1 [ RunTime:0.000224s ]
  106. SELECT * FROM `admin_permission` WHERE `code` = 'subscription_plans.view' LIMIT 1 [ RunTime:0.000237s ]
  107. SELECT * FROM `admin_permission` WHERE `code` = 'subscription_plans.update' LIMIT 1 [ RunTime:0.000220s ]
  108. SELECT * FROM `admin_permission` WHERE `code` = 'cdk_codes.view' LIMIT 1 [ RunTime:0.000253s ]
  109. SELECT * FROM `admin_permission` WHERE `code` = 'cdk_codes.update' LIMIT 1 [ RunTime:0.000190s ]
  110. SELECT * FROM `admin_menu` WHERE `path` = '/notebooks/knowledge' LIMIT 1 [ RunTime:0.000184s ]
  111. SELECT * FROM `admin_role_menu` WHERE `role_id` = '1' AND `menu_id` = '36' LIMIT 1 [ RunTime:0.000196s ]
  112. SELECT * FROM `admin_menu` WHERE `path` = '/notebooks/resources' LIMIT 1 [ RunTime:0.000180s ]
  113. SELECT * FROM `admin_role_menu` WHERE `role_id` = '1' AND `menu_id` = '37' LIMIT 1 [ RunTime:0.000173s ]
  114. SELECT * FROM `admin_menu` WHERE `path` = '/notebooks/policies' LIMIT 1 [ RunTime:0.000182s ]
  115. SELECT * FROM `admin_role_menu` WHERE `role_id` = '1' AND `menu_id` = '38' LIMIT 1 [ RunTime:0.000166s ]
  116. SELECT * FROM `admin_menu` WHERE `path` = '/system/feature-switches' LIMIT 1 [ RunTime:0.000178s ]
  117. SELECT * FROM `admin_role_menu` WHERE `role_id` = '1' AND `menu_id` = '42' LIMIT 1 [ RunTime:0.000163s ]
  118. SELECT * FROM `admin_menu` WHERE `path` = '/charge' LIMIT 1 [ RunTime:0.000175s ]
  119. SELECT * FROM `admin_role_menu` WHERE `role_id` = '1' AND `menu_id` = '39' LIMIT 1 [ RunTime:0.000178s ]
  120. SELECT * FROM `admin_menu` WHERE `path` = '/charge/rules' LIMIT 1 [ RunTime:0.000178s ]
  121. SELECT * FROM `admin_role_menu` WHERE `role_id` = '1' AND `menu_id` = '40' LIMIT 1 [ RunTime:0.000161s ]
  122. SELECT * FROM `admin_menu` WHERE `path` = '/charge/subscriptions' LIMIT 1 [ RunTime:0.000173s ]
  123. SELECT * FROM `admin_role_menu` WHERE `role_id` = '1' AND `menu_id` = '41' LIMIT 1 [ RunTime:0.000177s ]
  124. SELECT * FROM `admin_menu` WHERE `path` = '/charge/cdks' LIMIT 1 [ RunTime:0.000180s ]
  125. SELECT * FROM `admin_role_menu` WHERE `role_id` = '1' AND `menu_id` = '43' LIMIT 1 [ RunTime:0.000158s ]
  126. SELECT `id` FROM `admin_permission` WHERE `status` = 1 AND `code` IN ('notebook_knowledge.view','notebook_knowledge.update','notebook_resources.view','notebook_resources.update','notebook_policies.view','notebook_policies.update','feature_switches.view','feature_switches.update','billing_rules.view','billing_rules.update','subscription_plans.view','subscription_plans.update','cdk_codes.view','cdk_codes.update') [ RunTime:0.000278s ]
  127. SHOW FULL COLUMNS FROM `admin_role_permission` [ RunTime:0.000838s ]
  128. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '19' LIMIT 1 [ RunTime:0.000217s ]
  129. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '20' LIMIT 1 [ RunTime:0.000182s ]
  130. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '21' LIMIT 1 [ RunTime:0.000160s ]
  131. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '22' LIMIT 1 [ RunTime:0.000150s ]
  132. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '23' LIMIT 1 [ RunTime:0.000159s ]
  133. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '24' LIMIT 1 [ RunTime:0.000148s ]
  134. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '25' LIMIT 1 [ RunTime:0.000157s ]
  135. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '26' LIMIT 1 [ RunTime:0.000147s ]
  136. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '27' LIMIT 1 [ RunTime:0.000262s ]
  137. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '28' LIMIT 1 [ RunTime:0.000192s ]
  138. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '29' LIMIT 1 [ RunTime:0.000170s ]
  139. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '30' LIMIT 1 [ RunTime:0.000155s ]
  140. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '31' LIMIT 1 [ RunTime:0.000164s ]
  141. SELECT * FROM `admin_role_permission` WHERE `role_id` = '1' AND `permission_id` = '32' LIMIT 1 [ RunTime:0.000152s ]
0.220497s