|
@@ -99,7 +99,7 @@ class Community extends Api
|
|
|
case 4:
|
|
|
$where = ['belong'=>4];
|
|
|
}
|
|
|
- $data = Document::where($where)->select();
|
|
|
+ $data = Document::where($where)->order('weigh desc')->select();
|
|
|
$res = [];
|
|
|
foreach ($data as $k=>$v){
|
|
|
array_push($res,$v->toarray());
|