Commit d6d4babe authored by hujiebin's avatar hujiebin

Update noble.go

parent 0ad91afc
...@@ -57,7 +57,11 @@ func SendNoble(model *domain.Model, receiverUserId mysql.ID, level uint16, days ...@@ -57,7 +57,11 @@ func SendNoble(model *domain.Model, receiverUserId mysql.ID, level uint16, days
} }
err = nbl.Create(model.DB()) err = nbl.Create(model.DB())
if err != nil { if err != nil {
if af2, err := n.ExtenedEndTime(model.DB(), int(days)); err != nil {
return err return err
} else if af2 <= 0 {
return fmt.Errorf("bizerr.TransactionFailed create rows 0")
}
} }
} else { } else {
// 延长贵族 // 延长贵族
......
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