|
@@ -358,6 +358,13 @@ class Userintro extends Api
|
|
|
$user['total'] = bcadd($user['total'],0,2);
|
|
|
}
|
|
|
|
|
|
+ //用户列表的排序
|
|
|
+ if(!empty($downall_uid)){
|
|
|
+ $column_total = array_column($downall_uid,'total');
|
|
|
+ array_multisort($column_total, SORT_DESC, $downall_uid);
|
|
|
+ }
|
|
|
+ //用户列表的排序
|
|
|
+
|
|
|
$result['user_list'] = $downall_uid;
|
|
|
|
|
|
$this->success(1,$result);
|
|
@@ -426,6 +433,13 @@ class Userintro extends Api
|
|
|
|
|
|
}
|
|
|
|
|
|
+ //用户列表的排序
|
|
|
+ if(!empty($downall_uid)){
|
|
|
+ $column_total = array_column($downall_uid,'total');
|
|
|
+ array_multisort($column_total, SORT_DESC, $downall_uid);
|
|
|
+ }
|
|
|
+ //用户列表的排序
|
|
|
+
|
|
|
$result['user_list'] = $downall_uid;
|
|
|
|
|
|
$this->success(1,$result);
|