Commit f1b4f667 by Joneq

调试数据不正确

parent 5d1c040e
Showing with 4 additions and 1 deletions
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment