update api menu item image
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user