Browse Source

Merge remote-tracking branch 'origin/fix/terminal' into debug

Roc 1 năm trước cách đây
mục cha
commit
c984818545
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      services/base_from_smm.go

+ 1 - 1
services/base_from_smm.go

@@ -188,7 +188,7 @@ func SmmIndexHandle(baseFilePath, renameFilePath, indexName, indexCode, unit, fr
 	}
 
 	itemInfo, err := models.GetSmmIndexInfoMaxAndMinInfo(indexCode)
-	if err == nil && item != nil {
+	if err == nil && itemInfo != nil {
 		e = models.ModifySmmIndexMaxAndMinInfo(indexCode, itemInfo)
 		if e != nil {
 			err = fmt.Errorf("ModifySmmIndexMaxAndMinInfo err: %s", e.Error())