wangchuanjin 1 vuosi sitten
vanhempi
commit
b921b60288
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      p/struct.go

+ 3 - 1
p/struct.go

@@ -89,6 +89,7 @@ type SubSet struct {
 	MaxMailSize           int                        //邮件最大条数
 	Switch                int                        //开关
 	MatchMode             []string                   //匹配方式 title detail filetext projectname/purchasing
+	Amount                string                     //金额
 	StartAmount           float64                    //开始金额
 	EndAmount             float64                    //结束金额
 }
@@ -478,7 +479,8 @@ func (u *UserInfo) GetSubSet(isFreeUser bool, userId string, obj map[string]inte
 	if len(subSet.MatchMode) == 0 {
 		subSet.MatchMode = append(subSet.MatchMode, "title")
 	}
-	if amount := strings.Split(util.ObjToString(obj["amount"]), "-"); len(amount) == 2 {
+	subSet.Amount = util.ObjToString(obj["amount"])
+	if amount := strings.Split(subSet.Amount, "-"); len(amount) == 2 {
 		subSet.StartAmount = util.Float64All(amount[0]) * 10000
 		subSet.EndAmount = util.Float64All(amount[1]) * 10000
 	}