python学习
This commit is contained in:
@@ -37,8 +37,8 @@ def foodIndex():
|
||||
for item in food_list:
|
||||
tmp_data = {
|
||||
'id':item.id,
|
||||
# 'pic_url':UrlManager.buildImageUrl( item.main_image )
|
||||
'pic_url': 'http://106.52.204.179:8999/static/upload/'+item.main_image
|
||||
'pic_url':UrlManager.buildImageUrl( item.main_image )
|
||||
# 'pic_url': 'http://106.52.204.179:8999/static/upload/'+item.main_image
|
||||
}
|
||||
data_food_list.append( tmp_data )
|
||||
|
||||
@@ -77,8 +77,8 @@ def foodSearch():
|
||||
'name': "%s"%( item.name ),
|
||||
'price': str( item.price ),
|
||||
'min_price':str( item.price ),
|
||||
# 'pic_url': UrlManager.buildImageUrl(item.main_image)
|
||||
'pic_url': 'http://106.52.204.179:8999/static/upload/'+item.main_image
|
||||
'pic_url': UrlManager.buildImageUrl(item.main_image)
|
||||
# 'pic_url': 'http://106.52.204.179:8999/static/upload/'+item.main_image
|
||||
}
|
||||
data_food_list.append(tmp_data)
|
||||
resp['data']['list'] = data_food_list
|
||||
|
||||
Reference in New Issue
Block a user