Browse Source

Merge branch 'hotfix/trade_analysis_zheng_classify' into debug

xyxie 1 năm trước cách đây
mục cha
commit
6b5a9fe282
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      services/trade_analysis/trade_analysis.go

+ 8 - 0
services/trade_analysis/trade_analysis.go

@@ -223,6 +223,14 @@ func getZhengzhouClassifyName(code string) (name string) {
 		name = "苹果"
 		return
 	}
+	if strings.HasPrefix(code, "PX") {
+		name = "PX"
+		return
+	}
+	if strings.HasPrefix(code, "SH") {
+		name = "烧碱"
+		return
+	}
 	return
 }