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']);