fix error

This commit is contained in:
chiu 2020-04-07 22:08:52 +08:00
parent 3b214e3519
commit 97dd61fc52
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ namespace :feeds_module do
req = Net::HTTP::Get.new(uri) req = Net::HTTP::Get.new(uri)
http.request(req).body rescue '' http.request(req).body rescue ''
end end
File.open(File.join(feed_directory.to_s,self.feed_uid + ".json"),"w") do |file| File.open(File.join(feed_directory.to_s,site_feed.feed_uid + ".json"),"w") do |file|
res.force_encoding("utf-8") res.force_encoding("utf-8")
file.write(res) file.write(res)
end end