mirror of
https://github.com/ZxwyWebSite/lx-source.git
synced 2025-07-05 19:49:03 +08:00
20 lines
315 B
Go
20 lines
315 B
Go
package wy
|
|
|
|
import "net/http"
|
|
|
|
// 二维码 key 生成接口
|
|
func LoginQrKey() (*ReqAnswer, error) {
|
|
res, err := createRequest(
|
|
http.MethodPost,
|
|
`https://music.163.com/weapi/login/qrcode/unikey`,
|
|
map[string]any{
|
|
`type`: 1,
|
|
},
|
|
reqOptions{
|
|
Crypto: `weapi`,
|
|
Cookie: nil,
|
|
},
|
|
)
|
|
return res, err
|
|
}
|