refactor: 提取效果493和497到独立文件
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -26,7 +26,7 @@ func NewEggService(id uint32) *EggService {
|
||||
}
|
||||
func (s *EggService) Get() (out *model.Egg) {
|
||||
|
||||
s.dbm_fix(s.Model).Scan(&out)
|
||||
s.dbm(s.Model).Scan(&out)
|
||||
if out != nil {
|
||||
BreedLeftTime := int64(out.Data.StartTime+out.CurEgg.EggID*uint32(time.Hour/1000000000)) - (time.Now().Unix())
|
||||
if cool.Config.ServerInfo.IsVip != 0 {
|
||||
|
||||
Reference in New Issue
Block a user