dev_aliyun
p31729568 5 years ago
parent 1087006484
commit b9d5122e62

@ -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!

Loading…
Cancel
Save