更改:默认使用管理员token查询代码

This commit is contained in:
yystopf 2025-09-23 15:04:56 +08:00
parent b28e941b8b
commit 6c560748f0
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Gitea::Repository::GetExploreCodeService < Gitea::ClientService
private
def params
params = Hash.new.merge(token: user.gitea_token)
params = Hash.new.merge(token: GiteaService.gitea_config[:admin_token])
params.merge!(keyword: keyword) if keyword.present?
params.merge!(language: language) if language.present?
params.merge!(query_type: query_type) if query_type.present?