GithubHelp home page GithubHelp logo

Comments (3)

onanying avatar onanying commented on July 20, 2024 1

@ToBeNoFirst optional 是可选参数,传入 '' 空字符串,不验证是正常逻辑啊,你修改上面的代码后就会导致传入 ‘’ 空字符串的情况会抛出验证失败,当时加这个就是为了兼容:有些用户喜欢传 ‘’ 空字符串的无用参数

from mix.

onanying avatar onanying commented on July 20, 2024

@ToBeNoFirst 你看一下 message ,这里提示你没有定义 truename 的属性,应该是你的场景包含了这个字段的验证,但是你贴的代码里没有包含 truename ,所以这个我就分析不了了,因为你给的代码给异常提示不匹配,这个问题大概率你解决这个异常就好了

from mix.

Xanyone avatar Xanyone commented on July 20, 2024

QQ截图20200807102454
password传递过来的值是空的,在optional里面填写了,会不验证在vaildtor组件里面BaseValidator.php将这个删除就可以了
QQ截图20200807102454

from mix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.