|
@@ -83,7 +83,6 @@ func RefreshEdbData(edbInfoId, source, subSource int, edbCode, startDate string)
|
|
default:
|
|
default:
|
|
urlStr = data_manage.GetEdbSourceRefreshMethodBySourceId(source) // 没有对应的从edb_source中取
|
|
urlStr = data_manage.GetEdbSourceRefreshMethodBySourceId(source) // 没有对应的从edb_source中取
|
|
}
|
|
}
|
|
- fmt.Println("urlStr:", urlStr)
|
|
|
|
if urlStr == "" {
|
|
if urlStr == "" {
|
|
err = fmt.Errorf(fmt.Sprint("source:", source, ";未实现该指标的刷新接口,请联系管理员"))
|
|
err = fmt.Errorf(fmt.Sprint("source:", source, ";未实现该指标的刷新接口,请联系管理员"))
|
|
return
|
|
return
|
|
@@ -163,6 +162,6 @@ func HttpPost(url, postData string, params ...string) ([]byte, error) {
|
|
}
|
|
}
|
|
defer resp.Body.Close()
|
|
defer resp.Body.Close()
|
|
b, err := ioutil.ReadAll(resp.Body)
|
|
b, err := ioutil.ReadAll(resp.Body)
|
|
- fmt.Println("HttpPost:" + string(b))
|
|
|
|
|
|
+ //fmt.Println("HttpPost:" + string(b))
|
|
return b, err
|
|
return b, err
|
|
}
|
|
}
|