fix error

This commit is contained in:
邱博亞 2022-01-24 09:42:55 +08:00
parent 39dda02650
commit ada0c0642d
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class AdImage
protected
def add_http
unless self.out_link.blank? || self.out_link[/^http:\/\//] || self.out_link[/^https:\/\//]
unless self.out_link.blank? || self.out_link[/^http:\/\//] || self.out_link[/^https:\/\//] || self.out_link[/^\//]
self.out_link = 'http://' + self.out_link
end
end