From 9ea363fc06db3e8f84ae5e363ca6b32a7bb9faef Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 7 May 2025 13:58:34 +0800 Subject: [PATCH] * [bug#62258,done,0.3h] fix tip error. --- module/story/model.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index ea86868fe0..23af33fcb4 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -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;