abiao лет назад: 5
Родитель
Сommit
6c2ab837a9

+ 14 - 2
go/gopath/src/fohow.com/apps/controllers/cent_controller/cent_controller.go

@@ -33,6 +33,18 @@ type CountDownSignDaily struct {
 	LastTime     int64 `json:"last_time"`
 }
 
+type CountDownCentAward struct {
+	Oneday     int64 `json:"one_day"`
+	Twoday     int64 `json:"two_day"`
+	Threeday   int64 `json:"three_day"`
+	Fourday    int64 `json:"four_day"`
+	Fiveday    int64 `json:"five_day"`
+	Sixday     int64 `json:"six_day"`
+	Sevenday   int64 `json:"seven_day"`
+	Firstlogin int64 `json:"first_login"`
+	Newman     int64 `json:"new_man"`
+}
+
 //积分和积分余额
 func (self *CentController) GetCentInfo() {
 	type CentInfo struct {
@@ -183,10 +195,10 @@ func (self *CentController) SignEveryday() {
 		self.ReturnError(403, apps.RedisGetError, "", nil)
 	}
 	if yesterdayResult != nil {
-		if result.TodaySignNum >= 7 { //昨天是第五天,则今天计为第1天
+		if yesterdayResult.TodaySignNum >= 7 { //昨天是第五天,则今天计为第1天
 			num = 1
 		} else {
-			num = result.TodaySignNum + 1
+			num = yesterdayResult.TodaySignNum + 1
 		}
 	}
 	type Ret struct {