Update functions.php

pull/34/head
david082321 2 years ago committed by GitHub
parent 501aa300e6
commit aea0ea4f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,7 +115,8 @@ function get_host($type,$cache_type) {
// 获取用户信息
function get_userinfo() {
global $member_type;
$sign = md5("access_key=".ACCESS_KEY."&appkey=".APPKEY."&ts=".TS.APPSEC);
$appsec = appkey2sec(APPKEY);
$sign = md5("access_key=".ACCESS_KEY."&appkey=".APPKEY."&ts=".TS.$appsec);
$url = "https://app.bilibili.com/x/v2/account/myinfo?access_key=".ACCESS_KEY."&appkey=".APPKEY."&ts=".TS."&sign=".$sign;
$output = get_webpage($url);
$array = json_decode($output, true);

Loading…
Cancel
Save