소스 검색

add cent function

abiao 5 년 전
부모
커밋
c63e73fc81
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      go/gopath/src/fohow.com/apps/controllers/cent_controller/cent_controller.go

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

@@ -170,7 +170,7 @@ func (self *CentController) SignEveryday() {
 		self.ReturnError(403, apps.RedisGetError, "", nil)
 	}
 	beego.BeeLogger.Warn("Result()%v", result)
-	if result != nil {
+	if result.TodaySignNum > 0 {
 		self.ReturnError(403, apps.DailySignRepeat, "", nil)
 	}
 	yesterdayResult := &CountDownSignDaily{}