Skip to content

Commit a026436

Browse files
更新配置
1 parent 6e62098 commit a026436

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

plugin.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,15 @@ def raw_info
7070
# customization
7171
def authorize_params
7272
super.tap do |params|
73-
params[:appid] = options.client_id
73+
params[:appid] = SiteSetting.oauth2_phone_id
7474
params[:scope] = 'snsapi_userinfo'
75-
params.delete('client_id')
76-
7775
end
7876
end
7977
def token_params
80-
super.tap do |params|client_id
81-
params[:appid] = options.client_id
82-
params[:secret] = options.client_secret
78+
super.tap do |params|
79+
params[:appid] = SiteSetting.oauth2_phone_id
80+
params[:secret] = SiteSetting.oauth2_phone_secret
8381
params[:parse] = :json
84-
params.delete('client_id')
85-
params.delete('client_secret')
8682
end
8783
end
8884

0 commit comments

Comments
 (0)