Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
kaopu-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0fa80cf3
authored
Jun 21, 2021
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
判断天眼查没数据情况
parent
b891ac0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
internal/logic/tianyancha.go
internal/logic/tianyancha.go
View file @
0fa80cf3
...
...
@@ -55,7 +55,24 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
respBody
:=
BasicHttpGet
(
COMPANYINFOURL
,
companyName
)
json
.
Unmarshal
(
respBody
,
&
companyTycInfo
)
returnData
:=
make
(
map
[
string
]
string
)
//如果没有值返回空
if
companyTycInfo
.
Result
.
LegalPersonName
==
""
{
returnData
[
"establishment_time"
]
=
"0"
returnData
[
"legal_representative"
]
=
""
returnData
[
"com_address"
]
=
""
returnData
[
"com_organization"
]
=
""
returnData
[
"tianyancha_json"
]
=
""
returnData
[
"customer_property"
]
=
"其它"
returnData
[
"social_security_participants"
]
=
"0"
returnData
[
"registered_capital"
]
=
"0"
returnData
[
"two_years_no_lawsuit"
]
=
"无"
returnData
[
"five_legal_change"
]
=
"0"
}
//成立时间
returnData
[
"establishment_time"
]
=
strconv
.
FormatFloat
((
companyTycInfo
.
Result
.
EstiblishTime
/
1000
),
'f'
,
-
1
,
64
)
returnData
[
"legal_representative"
]
=
companyTycInfo
.
Result
.
LegalPersonName
...
...
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