Browse Source

头歌接口更换密钥

pull/312/head
“xxq250” 3 years ago
parent
commit
e03071a23d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb 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)


Loading…
Cancel
Save