|
@@ -87,13 +87,13 @@ func postHandleMysteelIndex(req *HandleMysteelIndexReq) (resp *BaseResponse, err
|
|
|
return
|
|
|
}
|
|
|
//fmt.Println("postData:" + string(postData))
|
|
|
- global.LOG.Info(" postData: " + string(postData))
|
|
|
+ global.LOG.Debug(" postData: " + string(postData))
|
|
|
result, err := HttpPost(postUrl, string(postData), "application/json")
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
|
if result != nil {
|
|
|
- global.LOG.Info(" postHandleMysteelIndex Result: " + string(result))
|
|
|
+ global.LOG.Debug(" postHandleMysteelIndex Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -129,7 +129,7 @@ func GetNoMergeIndexByFrequencyCount(req GetMaxFileIndexReq) (total float64, err
|
|
|
}
|
|
|
|
|
|
var resp BaseResponse
|
|
|
- global.LOG.Info(" GetNoMergeIndexByFrequencyCount Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetNoMergeIndexByFrequencyCount Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -161,7 +161,7 @@ func GetMaxFileIndex(req GetMaxFileIndexReq) (baseFromMysteelChemicalIndex index
|
|
|
}
|
|
|
|
|
|
var resp IndexResponse
|
|
|
- global.LOG.Info(" Refresh Result: " + string(result))
|
|
|
+ global.LOG.Debug(" Refresh Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -207,7 +207,7 @@ func GetNoMergeIndexByFrequencyPage(frequency string, limit int) (item []index.B
|
|
|
}
|
|
|
|
|
|
var resp IndexesResponse
|
|
|
- global.LOG.Info(" GetNoMergeIndexByFrequencyPage Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetNoMergeIndexByFrequencyPage Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -244,7 +244,7 @@ func GetIndexCountByMergeFilePath(mergeFilePath string) (total float64, err erro
|
|
|
}
|
|
|
|
|
|
var resp BaseResponse
|
|
|
- global.LOG.Info(" GetIndexCountByMergeFilePath Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetIndexCountByMergeFilePath Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -271,7 +271,7 @@ func GetIndexCreate() (items []index.BaseFromMysteelChemicalIndex, err error) {
|
|
|
}
|
|
|
|
|
|
var resp IndexesResponse
|
|
|
- global.LOG.Info(" GetIndexCreate Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetIndexCreate Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -297,7 +297,7 @@ func GetIndexRefreshAllByMergeFile() (items []index.BaseFromMysteelChemicalIndex
|
|
|
}
|
|
|
|
|
|
var resp IndexesResponse
|
|
|
- global.LOG.Info(" GetIndexRefreshAllByMergeFile Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetIndexRefreshAllByMergeFile Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -322,7 +322,7 @@ func GetIndexRefreshMethanolByMergeFile() (items []index.BaseFromMysteelChemical
|
|
|
}
|
|
|
|
|
|
var resp IndexesResponse
|
|
|
- global.LOG.Info(" GetIndexRefreshMethanolByMergeFile Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetIndexRefreshMethanolByMergeFile Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -347,7 +347,7 @@ func GetIndexRefreshMethanolByTimely() (items []index.BaseFromMysteelChemicalInd
|
|
|
}
|
|
|
|
|
|
var resp IndexesResponse
|
|
|
- global.LOG.Info(" GetIndexRefreshMethanolByTimely Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetIndexRefreshMethanolByTimely Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -383,7 +383,7 @@ func GetIndexByFrequency(frequency string) (items []index.BaseFromMysteelChemica
|
|
|
}
|
|
|
|
|
|
var resp IndexesResponse
|
|
|
- global.LOG.Info(" GetIndexByFrequency Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetIndexByFrequency Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -423,7 +423,7 @@ func GetIndexRefreshWeek(nowWeekZn, startTime, endTime string) (items []index.Ba
|
|
|
}
|
|
|
|
|
|
var resp IndexesResponse
|
|
|
- global.LOG.Info(" GetIndexRefreshWeek Result: " + string(result))
|
|
|
+ global.LOG.Debug(" GetIndexRefreshWeek Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -462,7 +462,7 @@ func MultiUpdateIndex(req []UpdateIndexReq) (err error) {
|
|
|
}
|
|
|
|
|
|
var resp BaseResponse
|
|
|
- global.LOG.Info(" MultiUpdateIndex Result: " + string(result))
|
|
|
+ global.LOG.Debug(" MultiUpdateIndex Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -512,7 +512,7 @@ func RefreshCheckByDay(req RefreshCheckByDayReq) (data RefreshCheckByDayData, er
|
|
|
}
|
|
|
|
|
|
var resp RefreshCheckByDayResponse
|
|
|
- global.LOG.Info(" RefreshCheckByDay Result: " + string(result))
|
|
|
+ global.LOG.Debug(" RefreshCheckByDay Result: " + string(result))
|
|
|
err = json.Unmarshal(result, &resp)
|
|
|
if err != nil {
|
|
|
return
|