|
@@ -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)
|