Browse Source

中金所名称修改

zwxi 1 year ago
parent
commit
a7acd2104e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      services/commodity_trade_cffex.go

+ 1 - 0
services/commodity_trade_cffex.go

@@ -116,6 +116,7 @@ func SyncRankingFromCffex() {
 		var indexKey string
 		for _, xmlItem := range xmlItems {
 			for _, i := range xmlItem.Data {
+				i.ShortName = strings.Replace(i.ShortName,"(经济)","",-1)
 				var item = new(models.BaseFromTradeCffexIndex)
 				item.DealValue = -1
 				item.BuyValue = -1