@@ -20,11 +20,9 @@ func HandleMysteelIndex(req *models.HandleMysteelIndexResp) (err error) {
return
}
-
- go func() {
- _ = SetMysteelChemicalEdbInfoUpdateStat(false)
- _ = SetEdbSourceStat(false)
- }()
+
+ _ = SetMysteelChemicalEdbInfoUpdateStat(false)
+ _ = SetEdbSourceStat(false)
@@ -271,7 +271,10 @@ func checkMySteelEdbInfoNeedRefresh(edbCode, frequency string, weekNeedRefreshMa
//季度,月度,年度都是每个周末刷新
if week == 0 {
- needRefresh = 1
+ if frequency == "旬度" || frequency == "月度" || frequency == "季度" || frequency == "年度" {
+ needRefresh = 1
+ return
+ }