* [bug#62258,done,0.3h] fix tip error.

This commit is contained in:
tianshujie
2025-05-09 11:19:40 +08:00
committed by 刘刚
parent 4010740176
commit 9ea363fc06
+8 -2
View File
@@ -4379,8 +4379,14 @@ class storyModel extends model
$estimates = array();
foreach($data->account as $key => $account)
{
if(!empty($data->estimate[$key]) and !is_numeric($data->estimate[$key])) dao::$errors['estimate'] = $this->lang->story->estimateMustBeNumber;
if(!empty($data->estimate[$key]) and $data->estimate[$key] < 0) dao::$errors['estimate'] = $this->lang->story->estimateMustBePlus;
if(!empty($data->estimate[$key]) and !is_numeric($data->estimate[$key]))
{
dao::$errors['estimate'] = $this->lang->story->estimateMustBeNumber;
}
elseif(!empty($data->estimate[$key]) and $data->estimate[$key] < 0)
{
dao::$errors['estimate'] = $this->lang->story->estimateMustBePlus;
}
if(dao::isError()) return;
$estimates[$account]['account'] = $account;