diff --git a/application/plugins/petscms/Pets.php b/application/plugins/petscms/Pets.php index f320555d6..b569f251c 100644 --- a/application/plugins/petscms/Pets.php +++ b/application/plugins/petscms/Pets.php @@ -118,8 +118,12 @@ class Pets extends Controller } unset($params['id']); } - $this->assign('data', $data); + + // 是否绑定 + $this->assign('pest_no', empty($params['pest_no']) ? '' : $params['pest_no']); + unset($params['pest_no']); $this->assign('params', $params); + $this->assign('data', $data); $this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list); $this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list); $this->assign('pets_attribute_gender_list', Service::$pets_attribute_gender_list); @@ -174,7 +178,7 @@ class Pets extends Controller // 用户 $params['user_id'] = $this->user['id']; - return Service::PestSave($params); + return Service::PetsSave($params); } /** diff --git a/application/plugins/view/petscms/pets/saveinfo.html b/application/plugins/view/petscms/pets/saveinfo.html index bf44ad91e..618de13ee 100644 --- a/application/plugins/view/petscms/pets/saveinfo.html +++ b/application/plugins/view/petscms/pets/saveinfo.html @@ -30,10 +30,10 @@