重命名包为 core
This commit is contained in:
@@ -2,7 +2,7 @@ package handlers
|
||||
|
||||
import (
|
||||
"platform/web/auth"
|
||||
"platform/web/common"
|
||||
"platform/web/core"
|
||||
m "platform/web/models"
|
||||
q "platform/web/queries"
|
||||
s "platform/web/services"
|
||||
@@ -114,7 +114,7 @@ func UpdatePassword(c *fiber.Ctx) error {
|
||||
|
||||
// 验证手机令牌
|
||||
if req.Phone == "" || req.Code == "" {
|
||||
return common.NewErr("user", "手机号码和验证码不能为空")
|
||||
return core.NewErr("user", "手机号码和验证码不能为空")
|
||||
}
|
||||
err = s.Verifier.VerifySms(c.Context(), req.Phone, req.Code)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user