This commit is contained in:
@@ -106,9 +106,9 @@ func (s *PetService) Pet_LEVEL_all() []model.Pet {
|
||||
}
|
||||
|
||||
// 精灵真正添加后的捕捉时间才是真正的时间
|
||||
func (s *PetService) PetAdd(y *model.PetInfo) {
|
||||
func (s *PetService) PetAdd(y *model.PetInfo) uint32 {
|
||||
if y == nil {
|
||||
return
|
||||
return 0
|
||||
}
|
||||
sql := fmt.Sprintf(`
|
||||
UPDATE %s
|
||||
@@ -136,7 +136,7 @@ RETURNING max_ts;
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return y.CatchTime
|
||||
}
|
||||
|
||||
// func (s *PetService) ModifyBefore(ctx context.Context, method string, param map[string]interface{}) (err error) {
|
||||
|
||||
Reference in New Issue
Block a user