|
@@ -159,7 +159,7 @@ class BatchApi {
|
|
|
if ($params["year"]) {
|
|
|
$where[] = ["batch", "=", $params["year"]];
|
|
|
}
|
|
|
- $batch = Batch::where($where)->findOrEmpty();
|
|
|
+ $batch = Batch::where($where)->order("startTime desc")->order("endTime desc")->findOrEmpty();
|
|
|
if (!$batch)
|
|
|
return ["msg" => "该申报未启动"];
|
|
|
if (strtotime($batch["startTime"]) > $now)
|