|
@@ -50,6 +50,8 @@ func cffexIndexCodeGenerator(shortName, indexName, suffix string) string {
|
|
|
|
|
|
// SyncRankingFromCffex 中国金融期货交易所
|
|
|
func SyncRankingFromCffex() {
|
|
|
+ n := utils.GetRandInt(10, 120)
|
|
|
+ time.Sleep(time.Duration(n) * time.Second)
|
|
|
allCode, err := models.GetIndexCodeFromMapping("CFFEX")
|
|
|
if err != nil {
|
|
|
fmt.Println("select Code err:", err)
|