Explorar o código

fix:涌益三期数据爬取

zqbao hai 8 meses
pai
achega
7ff95d2ba6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      services/base_from_yongyi_v2/week50.go

+ 3 - 0
services/base_from_yongyi_v2/week50.go

@@ -524,6 +524,9 @@ func HandleYongyiExcelWeekly46(f *excelize.File, sheetName string) (indexList []
 							continue
 						}
 						cell = strings.ReplaceAll(cell, ",", "")
+						if unit == "%" {
+							cell = strings.ReplaceAll(cell, "%", "")
+						}
 						if !isValueValid(cell) {
 							continue
 						}