Commit ba5681e4 authored by chenweijian's avatar chenweijian

redis

parent 36d4bcd9
......@@ -6,7 +6,7 @@ import (
"time"
)
func GetSlotFruitDailyTimes(userId uint64) string {
func GetSlotFruitDailyTimes(userId uint64, nowTime time.Time) string {
var cstZone = time.FixedZone("CST", 3*3600) // 东三区,沙特时间
return fmt.Sprintf(SlotFruitWeeklyDailyTask, time.Now().In(cstZone).Format(utils.DATE_FORMAT), userId)
return fmt.Sprintf(SlotFruitWeeklyDailyTask, nowTime.In(cstZone).Format(utils.DATE_FORMAT), userId)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment