This commit is contained in:
aozhiwei 2022-01-29 14:08:02 +08:00
parent 696fb2df18
commit 998a6c8c3b

View File

@ -50,13 +50,13 @@ class MarketBatch {
array_push(self::$sortedList, $meta);
}
usort(self::$sortedList, function ($a, $b) {
if ($a['_start_time_utc'] == $b['_start_time_utc']) {
if ($a['start_time'] == $b['start_time']) {
die(json_encode(array(
'errcode' => 500,
'errmsg' => 'server internal error'
)));
}
return $a['_start_time_utc'] < $b['_start_time_utc'];
return $a['start_time'] < $b['start_time'];
});
}
}