Ver Fonte

/Ermcp/GetErmcpGoods:quoteminvalue为0时返回1

deng.yinping há 1 mês atrás
pai
commit
2921862ffd
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      models/ermcpGoods.go

+ 4 - 0
models/ermcpGoods.go

@@ -259,6 +259,10 @@ func GetErmcpGoodses(userid int64, lastUpdateTime string, loginID int64) ([]Ermc
 
 	for i := range goodses {
 		goodses[i].ENUMDICNAME = mtpcache.GetEnumDicitemName(int32(goodses[i].Goodunitid))
+		// 行情最小变动单位不能为0
+		if goodses[i].Quoteminunit == 0 {
+			goodses[i].Quoteminunit = 1
+		}
 	}
 	return goodses, nil
 }