头歌接口更换密钥

This commit is contained in:
“xxq250” 2022-09-21 16:00:13 +08:00
parent b3afa15d2e
commit 5c123fba17
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ class UsersController < ApplicationController
# 通过login参数查询头歌账号信息注册并登录
def autologin_register_by_educoder(edu_login)
req_params = { "login" => "#{edu_login}", "private_token" => "hriEn3UwXfJs3PmyXnSH" }
req_params = { "login" => "#{edu_login}", "private_token" => "hriEn3UwXfJs3PmyXnqQ" }
api_url= "https://data.educoder.net"
client = Faraday.new(url: api_url)
response = client.public_send("get", "/api/sources/get_user_info_by_login", req_params)