* [bug#60250,done,0.5h] check estimate.

This commit is contained in:
tianshujie
2025-03-04 15:32:45 +08:00
committed by 曹延义
parent 81ed8b350c
commit 872de9e406
5 changed files with 10 additions and 0 deletions
+6
View File
@@ -968,6 +968,12 @@ class execution extends control
if($_POST)
{
if(!preg_match("/^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|[1-9]\d*$/", (string)$this->post->estimate) || $this->post->estimate <= 0)
{
dao::$errors['estimate'] = sprintf($this->lang->execution->errorFloat, $this->lang->execution->estimate);
return $this->sendError(dao::getError());
}
$burn = $this->execution->getBurnByExecution($executionID, $execution->begin, 0);
$withLeft = $this->post->withLeft ? $this->post->withLeft : 0;
$burnData = form::data($this->config->execution->form->fixfirst)