Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang_asynctask
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
f1b4f667
authored
May 27, 2021
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调试数据不正确
parent
5d1c040e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
cmd/bigtv/sync_bigtv_statistics/main.go
cmd/bigtv/sync_bigtv_statistics/main.go
View file @
f1b4f667
...
...
@@ -11,6 +11,7 @@ import (
"net/http"
"runtime"
"strconv"
"strings"
"sync"
"time"
)
...
...
@@ -207,7 +208,7 @@ func RequestTableInfo(requestType string)string {
client
:=
rpc
.
NewHTTPClient
(
"http://119.23.228.186:50005/"
)
client
.
UseService
(
&
sub
)
result
,
err
:=
sub
.
Get_materialstatistic
(
`{"date":"`
+
currentDate
+
`","requestType":"`
+
requestType
+
`"}`
)
result
,
err
:=
sub
.
Get_materialstatistic
(
`{"date":"`
+
strings
.
Replace
(
currentDate
,
"-"
,
""
,
-
1
)
+
`","requestType":"`
+
requestType
+
`"}`
)
if
err
!=
nil
{
fmt
.
Println
(
requestType
+
"请求服务器出错"
+
err
.
Error
())
return
""
...
...
@@ -217,9 +218,11 @@ func RequestTableInfo(requestType string)string {
return
result
}
func
GetCurrentSku
()
string
{
requestStr
:=
"http://soso12.ichunt.com/search/Es/searchSku?create_time/range="
+
strconv
.
FormatInt
(
timeStart
.
Unix
(),
10
)
+
","
+
strconv
.
FormatInt
(
currentUnix
,
10
)
+
"&goods_status/condition=1"
fmt
.
Println
(
requestStr
)
requestResult
:=
RequestUrl
(
requestStr
)
fmt
.
Println
(
"sku总量json"
+
requestResult
)
return
gjson
.
Get
(
requestResult
,
"data.total"
)
.
String
()
...
...
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