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
45790c35
authored
Dec 26, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复字符串超长导致sql不能执行
parent
a98491b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
internal/logic/tianyancha.go
internal/logic/tianyancha.go
View file @
45790c35
...
...
@@ -92,7 +92,10 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
//------------------------------------两年内是否有法律诉讼---------------------------------------//
respBody
=
BasicHttpGet
(
LAWSUIT
,
companyName
)
json
.
Unmarshal
(
respBody
,
&
totalNum
)
returnData
[
"tianyancha_json"
]
+=
"||||"
+
string
(
respBody
)
//防止sql执行字符串超长
if
len
(
string
(
respBody
))
<
2000
{
returnData
[
"tianyancha_json"
]
+=
"||||"
+
string
(
respBody
)
}
if
totalNum
.
Result
.
Total
>
0
{
returnData
[
"two_years_no_lawsuit"
]
=
"有"
}
else
{
...
...
@@ -104,7 +107,11 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
//------------------------------------五年内法人变更---------------------------------------//
respBody
=
BasicHttpGet
(
CHANGEINFO
,
companyName
)
json
.
Unmarshal
(
respBody
,
&
totalNum
)
returnData
[
"tianyancha_json"
]
+=
"||||"
+
string
(
respBody
)
//防止sql执行字符串超长
if
len
(
string
(
respBody
))
<
2000
{
returnData
[
"tianyancha_json"
]
+=
"||||"
+
string
(
respBody
)
}
var
changeInfoNum
int64
changeInfoNum
=
0
for
_
,
v
:=
range
totalNum
.
Result
.
Items
{
...
...
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