소스 검색

连续签到

renzheng 9 년 전
부모
커밋
0bfd14253d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      credit/src/qfw/creditrpc/creditrpc.go

+ 1 - 1
credit/src/qfw/creditrpc/creditrpc.go

@@ -77,7 +77,7 @@ func (c *CreditRpc) InCreadit(param *qrpc.CreditData, replay *int) error {
 							newobj[0] = now.Unix()
 							newobj[0] = now.Unix()
 							thist := newobj[1]
 							thist := newobj[1]
 							newobj[1] = thist + 1
 							newobj[1] = thist + 1
-							creditDoc["i_score"] = Score[param.Code+"_1"]
+							creditDoc["i_score"] = Score[param.Code+"_1"] + int(thist)*Score[param.Code]
 							redis.Put(consts.RedisDB, key, newobj, GetSubSecond(int(newobj[2]-thist)))
 							redis.Put(consts.RedisDB, key, newobj, GetSubSecond(int(newobj[2]-thist)))
 							redis.Put(consts.RedisDB, daykey, true, GetSubSecond(1))
 							redis.Put(consts.RedisDB, daykey, true, GetSubSecond(1))
 							creditlog.AddLog(creditDoc)
 							creditlog.AddLog(creditDoc)