update api menu item image

This commit is contained in:
Thein Lin Kyaw
2020-07-28 17:48:34 +06:30
parent 682ff6bb23
commit 26d6551973

View File

@@ -23,10 +23,10 @@ if item.is_available
json.code item.item_code
json.name item.name
json.alt_name item.alt_name
if !request_url.nil? && request_url != '' && !item.image_path.nil?
json.image request_url + item.image_path.to_s
if item.image_path.present?
json.image "#{request_url}/ok/#{item.image_path}"
else
json.image item.image_path.url
json.image ''
end
json.description item.description
json.information item.information