Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
0c3e09ac
Commit
0c3e09ac
authored
Jul 15, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
82114c60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ic-name/hanshujisuan.py
+5
-5
No files found.
ic-name/hanshujisuan.py
View file @
0c3e09ac
...
...
@@ -1049,8 +1049,8 @@ def inputinfo(cityname, keyword, btname, url, orgname, setcity, appkey, AppKey,
def
heming
(
eventdict
):
print
(
eventdict
)
# 查询数据方式,1:公司宝,2:企查查,3:混合模式
search
_type
=
eventdict
[
'search_
type'
]
# search
_
type = 1
search
type
=
eventdict
[
'search
type'
]
# searchtype = 1
cityname
=
eventdict
[
"cityname"
]
# 北京,地区
keyword
=
eventdict
[
"keyword"
]
# 汉唐,字号
btname
=
eventdict
[
"btname"
]
# 科技,行业类型
...
...
@@ -1085,15 +1085,15 @@ def heming(eventdict):
AppKey
=
QCC_APPKEY
SecretKey
=
QCC_SECRETKEY
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
,
similarCityList
,
identicalCityList
)
elif
search
_
type
==
2
:
# 请求qcc数据接口
elif
searchtype
==
2
:
# 请求qcc数据接口
# 企查查数据接口Appkey,查询数据库
url
=
"http://api.qichacha.com/ECIV4/Search?key="
+
AppKey
+
"&pageSize=20"
res
=
getqccJSON
(
cityname
,
keyword
,
btname
,
url
,
orgname
,
keywords
,
AppKey
,
SecretKey
,
cityList
,
brandList
,
sensitiveList
,
similarCityList
,
identicalCityList
)
elif
search
_
type
==
3
:
# 混合请求数据
elif
searchtype
==
3
:
# 混合请求数据
# 企查查数据接口Appkey,查询数据库
url
=
"http://api.qichacha.com/ECIV4/Search?key="
+
AppKey
+
"&pageSize=20"
res
=
getgsbqccJSON
(
cityname
,
keyword
,
btname
,
url
,
orgname
,
sitcity
,
keywords
,
AppKey
,
SecretKey
,
cityList
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment