|
@@ -50,6 +50,7 @@ func zIndexCodeGenerator(shortName, indexName, contractCode, suffix string) stri
|
|
|
|
|
|
//郑州商品交易所持单排名
|
|
|
func SyncRankingFromZhengzhou() {
|
|
|
+ utils.FileLog.Info("SyncRankingFromZhengzhou start:"+time.Now().Format(utils.FormatDateTime))
|
|
|
n := utils.GetRandInt(10, 120)
|
|
|
time.Sleep(time.Duration(n) * time.Second)
|
|
|
fmt.Println("start")
|
|
@@ -66,7 +67,7 @@ func SyncRankingFromZhengzhou() {
|
|
|
for _, item := range allCode {
|
|
|
zIndexCodeMap[item.IndexName] = item.IndexCode
|
|
|
}
|
|
|
- for i := 0; i >= 0; i-- {
|
|
|
+ for i := 1; i >= 0; i-- {
|
|
|
var itemVerifyCode int
|
|
|
zzUrl := "http://www.czce.com.cn/cn/DFSStaticFiles/Future/%s/%s/FutureDataHolding.htm"
|
|
|
date := time.Now().AddDate(0, 0, -i)
|
|
@@ -305,4 +306,5 @@ func SyncRankingFromZhengzhou() {
|
|
|
})
|
|
|
}
|
|
|
fmt.Println("end")
|
|
|
+ utils.FileLog.Info("SyncRankingFromZhengzhou end:"+time.Now().Format(utils.FormatDateTime))
|
|
|
}
|