Selaa lähdekoodia

fix:我的奖励修改

duxin 3 vuotta sitten
vanhempi
commit
d416320da5
3 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 1 0
      config/config.go
  2. 2 1
      etc/push.json
  3. 1 1
      handler/award/record.go

+ 1 - 0
config/config.go

@@ -65,6 +65,7 @@ type pushConfig struct {
 	DelayedTime int    `json:"delayedTime"`
 	Subvip      string `json:"subvip"`
 	Points      string `json:"points"`
+	FullReduce  string `json:"fullReduce"`
 }
 
 //var Config *config

+ 2 - 1
etc/push.json

@@ -32,5 +32,6 @@
   "testId": "o7Y1g0Rz_1JmNep3lnIU4lfjeooI",
   "delayedTime": 5,
   "subvip": "天超级订阅",
-  "points": "剑鱼币"
+  "points": "剑鱼币",
+  "fullReduce": "元满减卷"
 }

+ 1 - 1
handler/award/record.go

@@ -65,7 +65,7 @@ func GetActivityAwardList(userId, activityCode, award string, pageSize, pageNum
 		} else if v["award"] == "points" {
 			v["award"] = common.InterfaceToStr(v["num"]) + config.PushConfig.Points
 		} else if v["award"] == "lottery-fullReduce" {
-			v["award"] = v["detail"]
+			v["award"] = common.InterfaceToStr(v["num"]) + config.PushConfig.FullReduce
 		}
 	}
 	return *data, total, hasNext