改进 排序

This commit is contained in:
iVampireSP.com 2022-09-20 12:13:49 +08:00
parent bc11f5605d
commit 98757339a3
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -30,7 +30,7 @@ public function get($url)
public function announcements()
{
$resp = $this->cache(function () {
return $this->get('discussions?filter[tag]=announcements&page[offset]=0&sort=-commentCount');
return $this->get('discussions?filter[tag]=announcements&page[offset]=0&sort=-createdAt');
});
return $this->resp($resp);
@ -39,7 +39,7 @@ public function announcements()
public function pinned()
{
$resp = $this->cache(function () {
return $this->get('discussions?filter[tag]=pinned&page[offset]=0&sort=-commentCount');
return $this->get('discussions?filter[tag]=pinned&page[offset]=0&sort=-createdAt');
});
return $this->resp($resp);