update api menu item image
This commit is contained in:
@@ -23,10 +23,10 @@ if item.is_available
|
|||||||
json.code item.item_code
|
json.code item.item_code
|
||||||
json.name item.name
|
json.name item.name
|
||||||
json.alt_name item.alt_name
|
json.alt_name item.alt_name
|
||||||
if !request_url.nil? && request_url != '' && !item.image_path.nil?
|
if item.image_path.present?
|
||||||
json.image request_url + item.image_path.to_s
|
json.image "#{request_url}/ok/#{item.image_path}"
|
||||||
else
|
else
|
||||||
json.image item.image_path.url
|
json.image ''
|
||||||
end
|
end
|
||||||
json.description item.description
|
json.description item.description
|
||||||
json.information item.information
|
json.information item.information
|
||||||
|
|||||||
Reference in New Issue
Block a user