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
16d0462d
authored
Dec 31, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
判断sql插入限制
parent
41711a4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
internal/dao/com_basicinfos.go
internal/logic/tianyancha.go
internal/dao/com_basicinfos.go
View file @
16d0462d
...
...
@@ -37,7 +37,6 @@ func (d *dao) GetCompanyBaseInfoByCid(c context.Context, companyId int64) (res m
tycInfo
:=
logic
.
HttpGet
(
res
[
"com_name"
])
tycInfo
[
"com_credits_id"
]
=
res
[
"com_credits_id"
]
tycInfo
[
"tyc_select_num"
]
=
"1"
fmt
.
Println
(
tycInfo
)
d
.
UpdateCompanyBaseInfoForTyc
(
c
,
tycInfo
)
logic
.
SendMessage
(
logic
.
StringTurnInt64
(
res
[
"legal_mobile_phone"
]),
""
)
}
...
...
internal/logic/tianyancha.go
View file @
16d0462d
...
...
@@ -2,7 +2,6 @@ package logic
import
(
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
...
...
@@ -119,7 +118,6 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
returnData
[
"tianyancha_json"
]
+=
"||||"
+
string
(
respBody
)
}
fmt
.
Println
(
returnData
[
"tianyancha_json"
])
if
len
(
returnData
[
"tianyancha_json"
])
>
40000
{
returnData
[
"tianyancha_json"
]
=
"字符串过长"
}
...
...
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