fix: refactor functions and code (#1559)

This commit is contained in:
Yaodong Yu
2023-02-18 09:31:58 +08:00
committed by GitHub
parent eb72c9f273
commit f2f962b893
9 changed files with 33 additions and 20 deletions

View File

@ -177,7 +177,7 @@ func (c *ApiController) ResetEmailOrPhone() {
dest := c.Ctx.Request.Form.Get("dest")
code := c.Ctx.Request.Form.Get("code")
if util.IsStrsEmpty(destType, dest, code) {
if util.IsStringsEmpty(destType, dest, code) {
c.ResponseError(c.T("general:Missing parameter"))
return
}