瀏覽代碼

连续签到

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()
 							thist := newobj[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, daykey, true, GetSubSecond(1))
 							creditlog.AddLog(creditDoc)