Browse Source

抽奖几率修改

wangshan 9 years ago
parent
commit
e15f40fbe0
3 changed files with 10 additions and 10 deletions
  1. 4 4
      core/src/luckdraw.json
  2. 5 5
      core/src/qfw/active/activemanage.go
  3. 1 1
      core/src/timetask.json

+ 4 - 4
core/src/luckdraw.json

@@ -8,7 +8,7 @@
 	},{
 		"min":50,
 		"max":80,
-		"proportion":37.21
+		"proportion":16.71
 	},{
 		"min":95,
 		"max":120,
@@ -16,7 +16,7 @@
 	},{
 		"min":140,
 		"max":175,
-		"proportion":20
+		"proportion":50
 	},{
 		"min":190,
 		"max":220,
@@ -24,7 +24,7 @@
 	},{
 		"min":235,
 		"max":270,
-		"proportion":37.21
+		"proportion":16.71
 	},{
 		"min":280,
 		"max":310,
@@ -32,7 +32,7 @@
 	},{
 		"min":325,
 		"max":350,
-		"proportion":4
+		"proportion":15
 	}],
 	"promotioncode":"2001001501",
 	"weixin":{

+ 5 - 5
core/src/qfw/active/activemanage.go

@@ -211,22 +211,22 @@ func getLuckDraw() int {
 		} else if amount > 275 && amount < 310 {
 			count := Count("winningrecord", "{'s_prize':'《牛奶可乐经济学》'}")
 			if count > 6 {
-				amount = 240
+				amount = 245
 			}
 		} else if amount > 95 && amount < 130 {
 			count := Count("winningrecord", "{'s_prize':'限量版U盘'}")
 			if count > 100 {
-				amount = 260
+				amount = 255
 			}
 		} else if amount > 185 && amount < 220 {
 			count := Count("winningrecord", "{'s_prize':'五元现金红包'}")
 			if count > 200 {
-				amount = 60
+				amount = 65
 			}
 		} else if amount > 320 && amount < 355 {
 			count := Count("winningrecord", "{'s_prize':'一元现金红包'}")
-			if count > 1500 {
-				amount = 80
+			if count > 2500 {
+				amount = 75
 			}
 		}
 		return amount

+ 1 - 1
core/src/timetask.json

@@ -1 +1 @@
-{"comment":{"c_rate":720,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-27 12:14:08"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-27 12:14:08"}},"marketisstart":true,"marketrate":300}
+{"comment":{"c_rate":720,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-27 17:58:50"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-27 17:58:50"}},"marketisstart":true,"marketrate":300}