Curl('https://sspai.com/api/v1/article/tag/page/get?limit=100000&tag=%E7%83%AD%E9%97%A8%E6%96%87%E7%AB%A0', null, null, "https://sspai.com"), true);
$tempArr = [];
foreach ($jsonRes['data'] as $k => $v) {
array_push($tempArr, [
'index' => $k +1,
'title' => $v['title'],
'createdAt' => date('Y-m-d', $v['released_time']),
'other' => $v['author']['nickname'],
'like_count' => $v['like_count'],
'comment_count' => $v['comment_count'],
'url' => 'https://sspai.com/post/'.$v['id'],
'mobilUrl' => 'https://sspai.com/post/'.$v['id']
]);
}
return [
'success' => true,
'title' => '少数派',
'subtitle' => '热榜',
'update_time' => date('Y-m-d h:i:s', time()),
'data' => $tempArr
];
}
}
?>

显示验证码
没有账号? 注册  忘记密码?

社交账号快速登录