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