mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:24:17 +00:00
perf: 接龙接口-强化排序
This commit is contained in:
parent
0919e415ec
commit
3a26f420b8
@ -2198,6 +2198,10 @@ class DialogController extends AbstractController
|
||||
$list = array_reverse(array_values($list));
|
||||
}
|
||||
//
|
||||
usort($list, function($a, $b) {
|
||||
return $a['id'] - $b['id'];
|
||||
});
|
||||
//
|
||||
$msgData = [
|
||||
'text' => $text,
|
||||
'list' => $list,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user