Эх сурвалжийг харах

批次补件时间判断修改,如果提交了first_submit_time才会判断有没有超过补件时间

sugangqiang 11 сар өмнө
parent
commit
5b01d01460

+ 1 - 1
app/common/api/BatchApi.php

@@ -244,7 +244,7 @@ class BatchApi {
                 return ["msg" => "不存在该申报批次"];
             if (strtotime($batch["startTime"]) > $now)
                 return ["msg" => sprintf("申报还未开始,日期为:%s - %s", $batch["startTime"], $batch["endTime"])];
-            if (strtotime($batch["endTime"]) < $now && !$params["first_submit_time"])
+            if (strtotime($batch["endTime"]) < $now && isset($params["first_submit_time"]) && !$params["first_submit_time"])
                 return ["msg" => "申报已结束,无法申报"];
             if ($batch["submitEndTime"] && strtotime($batch["submitEndTime"]) < $now)
                 return ["msg" => "提交时间已截止,无法操作"];