Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
golang_seo_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
4c20e9db
authored
Dec 03, 2020
by
lzzzzl
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
推送测试
parent
f13c1695
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
17 deletions
cmd/main.go
collect/mip/mip.go
cmd/main.go
View file @
4c20e9db
...
@@ -72,30 +72,30 @@ func main() {
...
@@ -72,30 +72,30 @@ func main() {
_
=
logger
.
InitLogger
(
"file"
,
logConfig
)
_
=
logger
.
InitLogger
(
"file"
,
logConfig
)
logger
.
Init
()
logger
.
Init
()
err
_s
eo
:=
initDb
(
"InitSeoDB"
,
util
.
Configs
.
Seo_databases
.
Dns
)
err
S
eo
:=
initDb
(
"InitSeoDB"
,
util
.
Configs
.
Seo_databases
.
Dns
)
err
_s
pu
:=
initDb
(
"InitSpuDB"
,
util
.
Configs
.
Spu_databases
.
Dns
)
err
S
pu
:=
initDb
(
"InitSpuDB"
,
util
.
Configs
.
Spu_databases
.
Dns
)
err
_g
oods
:=
initDb
(
"InitGoodsDB"
,
util
.
Configs
.
Goods_databases
.
Dns
)
err
G
oods
:=
initDb
(
"InitGoodsDB"
,
util
.
Configs
.
Goods_databases
.
Dns
)
err_s
ku
:=
initDb
(
"InitSkuDB"
,
util
.
Configs
.
Sku_databases
.
Dns
)
//errS
ku := initDb("InitSkuDB", util.Configs.Sku_databases.Dns)
err
_l
x
:=
initDb
(
"InitLxDB"
,
util
.
Configs
.
Liexin_databases
.
Dns
)
err
L
x
:=
initDb
(
"InitLxDB"
,
util
.
Configs
.
Liexin_databases
.
Dns
)
if
err
_g
oods
!=
nil
{
if
err
G
oods
!=
nil
{
fmt
.
Println
(
err
_g
oods
)
fmt
.
Println
(
err
G
oods
)
}
}
if
err
_s
pu
!=
nil
{
if
err
S
pu
!=
nil
{
fmt
.
Println
(
err
_g
oods
)
fmt
.
Println
(
err
G
oods
)
}
}
if
err
_s
eo
!=
nil
{
if
err
S
eo
!=
nil
{
fmt
.
Println
(
err
_s
eo
)
fmt
.
Println
(
err
S
eo
)
}
}
if
err_s
ku
!=
nil
{
//if errS
ku != nil {
fmt
.
Println
(
err_s
ku
)
// fmt.Println(errS
ku)
}
//
}
if
err
_l
x
!=
nil
{
if
err
L
x
!=
nil
{
fmt
.
Println
(
err
_l
x
)
fmt
.
Println
(
err
L
x
)
}
}
t
:=
&
RecvPro
{}
t
:=
&
RecvPro
{}
...
...
collect/mip/mip.go
View file @
4c20e9db
...
@@ -80,6 +80,7 @@ func RunMipTask(remainCount int, configDir string) {
...
@@ -80,6 +80,7 @@ func RunMipTask(remainCount int, configDir string) {
var
cdCount
,
_
=
strconv
.
Atoi
(
collectDbCount
)
var
cdCount
,
_
=
strconv
.
Atoi
(
collectDbCount
)
var
sql
=
colsql
.
MipSQL
(
collectCode
,
tableIndex
,
cdCount
,
cdCount
+
remainCount
)
var
sql
=
colsql
.
MipSQL
(
collectCode
,
tableIndex
,
cdCount
,
cdCount
+
remainCount
)
colDb
=
db
.
GetDB
(
collectDbConn
)
colDb
=
db
.
GetDB
(
collectDbConn
)
fmt
.
Println
(
collectDbConn
+
"---"
+
sql
)
res
,
err
:=
colDb
.
Queryx
(
sql
)
res
,
err
:=
colDb
.
Queryx
(
sql
)
fmt
.
Println
(
sql
)
fmt
.
Println
(
sql
)
...
...
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