|
@@ -127,7 +127,7 @@ func SetCacheUserAmount(session *xorm.Session, masterId, amount string, uid int, |
|
|
} |
|
|
} |
|
|
//_, err := cache.Set(redisKey, int64(utils.StrToFloat64(amount))) |
|
|
//_, err := cache.Set(redisKey, int64(utils.StrToFloat64(amount))) |
|
|
//TODO::默认缓存1小时 (先调整为 2 min) |
|
|
//TODO::默认缓存1小时 (先调整为 2 min) |
|
|
_, err := cache.SetEx(redisKey, zhios_order_relate_utils.StrToFloat64(amount), 60*2) |
|
|
|
|
|
|
|
|
_, err := cache.SetEx(redisKey, zhios_order_relate_utils.StrToFloat64(amount), 60*1) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|