改进 排序
This commit is contained in:
parent
bc11f5605d
commit
98757339a3
@ -30,7 +30,7 @@ public function get($url)
|
|||||||
public function announcements()
|
public function announcements()
|
||||||
{
|
{
|
||||||
$resp = $this->cache(function () {
|
$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);
|
return $this->resp($resp);
|
||||||
@ -39,7 +39,7 @@ public function announcements()
|
|||||||
public function pinned()
|
public function pinned()
|
||||||
{
|
{
|
||||||
$resp = $this->cache(function () {
|
$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);
|
return $this->resp($resp);
|
||||||
|
Loading…
Reference in New Issue
Block a user