sqlite-web 0.7.2
gitea.db
issue
Create
Query
access
access_token
action
action_artifact
action_run
action_run_index
action_run_job
action_runner
action_runner_token
action_schedule
action_schedule_spec
action_task
action_task_output
action_task_step
action_tasks_version
action_variable
app_state
attachment
auth_token
badge
branch
collaboration
comment
commit_status
commit_status_index
commit_status_summary
commit_sync_log
commit_sync_status
dbfs_data
dbfs_meta
deploy_key
email_address
email_hash
external_login_user
follow
gpg_key
gpg_key_import
hook_task
issue
issue_assignees
issue_content_history
issue_dependency
issue_index
issue_label
issue_pin
issue_user
issue_watch
label
language_stat
lfs_lock
lfs_meta_object
login_source
milestone
mirror
notice
notification
oauth2_application
oauth2_authorization_code
oauth2_grant
org_user
package
package_blob
package_blob_upload
package_cleanup_rule
package_file
package_property
package_version
project
project_board
project_issue
protected_branch
protected_tag
public_key
pull_auto_merge
pull_request
push_mirror
reaction
release
renamed_branch
repo_archiver
repo_hidden_file
repo_indexer_status
repo_license
repo_redirect
repo_topic
repo_transfer
repo_unit
repository
review
review_state
secret
session
sqlite_sequence
star
stopwatch
system_setting
task
team
team_invite
team_repo
team_unit
team_user
topic
tracked_time
two_factor
upload
user
user_badge
user_blocking
user_open_id
user_redirect
user_setting
version
watch
webauthn_credential
webhook
Toggle helper tables
Structure
Content
Query
Insert
Drop
Import
Export
Update row 34 in issue
id
Primary key.
INTEGER NOT NULL
repo_id
INTEGER
index
INTEGER
poster_id
INTEGER
original_author
TEXT
original_author_id
INTEGER
name
🔍 代码审查报告:pctest 分支 - ce1
TEXT
content
## 自动代码审查报告 **分支**: pctest **提交**: `6a1850c0a6b2b9a5c6f910af5ddecbf2d99c8a96` **时间**: 2026-03-25 09:56:34 **审查模型**: qwen3.5-plus --- [2026-03-25 09:55:38] 正在调用 Qwen API 进行代码审查... [2026-03-25 09:56:34] 审查结果已保存到:/root/gitea-code-review/logs/results/code-review-20260325-095538.md ### alilog.php 中的引用: 1. **外部 SDK 依赖**: * **文件路径**: `/mnt/data/www/CommonClass/aliyun-log-php-sdk-master/Log_Autoload.php` * **说明**: 通过 `require_once` 引入了阿里云日志服务(SLS)PHP SDK 的自动加载文件。这是一个位于项目目录结构之外(`/mnt/data/www/CommonClass/`)的公共类库依赖。 2. **依赖的类 (来自阿里云 SDK)**: 该文件大量实例化或使用了以下 SDK 类,均依赖于上述引入的 `Log_Autoload.php`: * `Aliyun_Log_Client`: 核心客户端类,用于建立与阿里云日志服务的连接。 * `Aliyun_Log_Models_LogItem`: 用于构建单条日志内容。 * `Aliyun_Log_Models_PutLogsRequest`: 写入日志的请求对象。 * `Aliyun_Log_Exception`: 捕获 SDK 抛出的特定异常。 * `Aliyun_Log_Models_ListLogstoresRequest`: 列举 Logstore 的请求对象。 * `Aliyun_Log_Models_ListTopicsRequest`: 列举 Topic 的请求对象。 * `Aliyun_Log_Models_GetLogsRequest`: 查询普通日志的请求对象。 * `Aliyun_Log_Models_LogStoreSqlRequest`: 执行 Logstore SQL 查询的请求对象。 * `Aliyun_Log_Models_GetProjectLogsRequest`: 执行项目级日志查询的请求对象。 * `Aliyun_Log_Models_ProjectSqlRequest`: 执行项目级 SQL 查询的请求对象。 * `Aliyun_Log_Models_GetHistogramsRequest`: 获取日志直方图的请求对象。 * `Aliyun_Log_Models_ListShardsRequest`: 列举 Shard 分片的请求对象。 * `Aliyun_Log_Models_GetCursorRequest`: 获取 Shard 游标的请求对象。 * `Aliyun_Log_Models_BatchGetLogsRequest`: 批量拉取日志的请求对象。 * `Aliyun_Log_Models_MergeShardsRequest`: 合并 Shard 的请求对象。 * `Aliyun_Log_Models_SplitShardRequest`: 分裂 Shard 的请求对象。 3. **项目内部文件引用**: * **无**。该文件未引用项目结构列表中的任何文件(如 `application/config/config.php`, `application/controllers/*` 等)。 * 它没有使用项目的配置管理类来获取数据库连接、Redis 配置或阿里云密钥,而是直接在脚本底部硬编码了配置信息。 4. **配置耦合**: * **硬编码凭证**: 文件中直接写死了 `endpoint`, `accessKeyId`, `accessKey`, `project`, `logstore` 等敏感配置信息。 * **影响**: 这导致该文件与环境强耦合,无法通过项目的配置文件(如 `application/config/` 下的文件)动态切换环境(开发/生产),且存在安全风险。 5. **执行模式**: * 文件末尾包含直接执行代码(实例化 `Aliyun_Log_Client` 并调用 `putLogs`),表明该文件不仅是一个函数库,被访问时还会立即执行日志写入操作。 --- *此 Issue 由代码审查服务自动创建 | 审查基于提交时的代码快照*
TEXT
milestone_id
INTEGER
priority
INTEGER
is_closed
INTEGER
is_pull
INTEGER
num_comments
INTEGER
ref
TEXT
deadline_unix
INTEGER
created_unix
INTEGER
updated_unix
INTEGER
closed_unix
INTEGER
is_locked
INTEGER NOT NULL (default 0
content_version
INTEGER NOT NULL (default 0
time_estimate
INTEGER NOT NULL (default 0
Update
Cancel