master
jager 8 months ago
parent b6fe264f4a
commit ad7e7cc8e8

File diff suppressed because it is too large Load Diff

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

Loading…
Cancel
Save