Explorar o código

edit task sign remark

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
56a004ea5d

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

@@ -247,7 +247,7 @@ func (self *CentController) SignEveryday() {
 		self.ReturnError(403, apps.NoExist, "", nil)
 	}
 	count := centAward.Count
-	remark := fmt.Sprintf("每日签到(连续第%d天 领取:%d)", num, count/int64(100))
+	remark := fmt.Sprintf("每日签到(连续第%d天 领取:%.2f)", num, float64(count)/float64(100))
 
 	//发放积分
 	c := new(cent_model.CentBalance).Create(wxUser.Id, count, s, s, remark)