From b9d5122e62855ec7735728a0061a0b289b51ab41 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Sat, 13 Jul 2019 15:31:45 +0800 Subject: [PATCH] fix --- app/services/project_packages/save_service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/services/project_packages/save_service.rb b/app/services/project_packages/save_service.rb index cc58ec7d..d6abbca9 100644 --- a/app/services/project_packages/save_service.rb +++ b/app/services/project_packages/save_service.rb @@ -42,7 +42,8 @@ class ProjectPackages::SaveService private def need_check_code? - (package.new_record? && params[:contact_phone] != package.creator.phone) || package.contact_phone != params[:contact_phone] + (package.new_record? && params[:contact_phone] != package.creator.phone) || + (!package.new_record? && package.contact_phone != params[:contact_phone]) end def check_code_valid!