|
|
@ -42,7 +42,8 @@ class ProjectPackages::SaveService
|
|
|
|
private
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
|
|
def need_check_code?
|
|
|
|
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
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def check_code_valid!
|
|
|
|
def check_code_valid!
|
|
|
|