Commit 0440d296 authored by lixiaofang's avatar lixiaofang

add

parent 6e5fce4e
......@@ -13,7 +13,6 @@ from django.shortcuts import render
from search.utils.auto_tips import get_suggest_tips
def auto_complete(request):
try:
"""auto complate words/tags/doctors etc.
......@@ -39,7 +38,7 @@ def auto_complete(request):
'data': data,
}
logging.info("duan add,q is:%s,result:%s" % (str(q).encode("utf-8"),str(result).encode('utf-8')))
logging.info("duan add,q is:%s,result:%s" % (str(q).encode("utf-8"), str(result).encode('utf-8')))
return json_http_response(result)
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
......@@ -267,17 +267,19 @@ def get_query_by_es(query='', lat=0, lng=0, size=0, offset=0, highlight_query=No
def recommed_service_category_device_id(device_id):
try:
if device_id == "868771031984211":
'''
设备品类显示, 是否命中灰度
'''
if device_id in ["868771031984211"]:
return 2
elif device_id == "867961030707277":
elif device_id in ["F3F4C95F-BF76-4F82-9CC6-B5A8933A6BD9", "867961030707277"]:
return 3
else:
return 1
'''
设备品类显示, 是否命中灰度
'''
# categroy_select_cary1 = ["0", "1", "2", "3", "c", "d", "e", "f"]
# categroy_select_cary2 = ["4", "5", "6", "a"]
# categroy_select_cary3 = ["9", "8", "7", "b"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment