forked from Gitlink/forgeplus
更改:默认使用管理员token查询代码
This commit is contained in:
parent
b28e941b8b
commit
6c560748f0
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Reference in New Issue