@ -1,6 +1,6 @@
module idata
go 1.17
go 1.22
require (
github.com/gin-gonic/gin v1.7.7
@ -47,7 +47,7 @@ func Register(ctx *gin.Context) {
httpx.ErrInterrupt(ctx, errcode.New(1, "phone has registry"))
return
}
if err != dao.ErrNotFound {
if !errors.Is(err, dao.ErrNotFound) {
httpx.ErrInterrupt(ctx, errcode.WithErrcode(2, err))