Commit 0c3e09ac by 宋毅

tj

parent 82114c60
...@@ -1049,8 +1049,8 @@ def inputinfo(cityname, keyword, btname, url, orgname, setcity, appkey, AppKey, ...@@ -1049,8 +1049,8 @@ def inputinfo(cityname, keyword, btname, url, orgname, setcity, appkey, AppKey,
def heming(eventdict): def heming(eventdict):
print(eventdict) print(eventdict)
# 查询数据方式,1:公司宝,2:企查查,3:混合模式 # 查询数据方式,1:公司宝,2:企查查,3:混合模式
search_type = eventdict['search_type'] searchtype = eventdict['searchtype']
# search_type = 1 # searchtype = 1
cityname = eventdict["cityname"] # 北京,地区 cityname = eventdict["cityname"] # 北京,地区
keyword = eventdict["keyword"] # 汉唐,字号 keyword = eventdict["keyword"] # 汉唐,字号
btname = eventdict["btname"] # 科技,行业类型 btname = eventdict["btname"] # 科技,行业类型
...@@ -1085,15 +1085,15 @@ def heming(eventdict): ...@@ -1085,15 +1085,15 @@ def heming(eventdict):
AppKey = QCC_APPKEY AppKey = QCC_APPKEY
SecretKey = QCC_SECRETKEY SecretKey = QCC_SECRETKEY
if len(senlist) + len(Brandlist) + len(citylist) + len(cList) == 0: if len(senlist) + len(Brandlist) + len(citylist) + len(cList) == 0:
if search_type == 1: # 按照检索方式去查询es if searchtype == 1: # 按照检索方式去查询es
res = getgsbJSON(cityname, keyword, btname, orgname, sitcity, keywords, cityList, brandList, sensitiveList, res = getgsbJSON(cityname, keyword, btname, orgname, sitcity, keywords, cityList, brandList, sensitiveList,
similarCityList, identicalCityList) similarCityList, identicalCityList)
elif search_type == 2: # 请求qcc数据接口 elif searchtype == 2: # 请求qcc数据接口
# 企查查数据接口Appkey,查询数据库 # 企查查数据接口Appkey,查询数据库
url = "http://api.qichacha.com/ECIV4/Search?key=" + AppKey + "&pageSize=20" url = "http://api.qichacha.com/ECIV4/Search?key=" + AppKey + "&pageSize=20"
res = getqccJSON(cityname, keyword, btname, url, orgname, keywords, AppKey, SecretKey, cityList, brandList, res = getqccJSON(cityname, keyword, btname, url, orgname, keywords, AppKey, SecretKey, cityList, brandList,
sensitiveList, similarCityList, identicalCityList) sensitiveList, similarCityList, identicalCityList)
elif search_type == 3: # 混合请求数据 elif searchtype == 3: # 混合请求数据
# 企查查数据接口Appkey,查询数据库 # 企查查数据接口Appkey,查询数据库
url = "http://api.qichacha.com/ECIV4/Search?key=" + AppKey + "&pageSize=20" url = "http://api.qichacha.com/ECIV4/Search?key=" + AppKey + "&pageSize=20"
res = getgsbqccJSON(cityname, keyword, btname, url, orgname, sitcity, keywords, AppKey, SecretKey, cityList, res = getgsbqccJSON(cityname, keyword, btname, url, orgname, sitcity, keywords, AppKey, SecretKey, cityList,
......
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