From 0ba62e380b859bde8b700189297aafe516795871 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Thu, 6 Jun 2024 17:37:18 +0800 Subject: [PATCH] YS --- application/controllers/Api/Squirrel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Api/Squirrel.php b/application/controllers/Api/Squirrel.php index fedfe42..fb914a8 100644 --- a/application/controllers/Api/Squirrel.php +++ b/application/controllers/Api/Squirrel.php @@ -374,7 +374,7 @@ class Api_SquirrelController extends Ctrl_Api{ //查询幼鼠信息 $NSdata = $this->NewSquirrelmodel->getOneInfo($id); //判断编号数量和小鼠数量是否相同 - if($NSdata['count']!=($end-$start)) Tool_Fnc::apiMsg('编号数量小于剪尾鼠', '500'); + if($NSdata['count']!=($end-$start)+1) Tool_Fnc::apiMsg('编号数量小于剪尾鼠', '500'); unset($NSdata['count']); unset($NSdata['id']); unset($NSdata['cage']);