|
|
|
@ -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);
|
|
|
|
|