jason

Results 6 comments of jason

> @shanhai3000 are you applying the CRD using the java client, looks like the pasted error is from the kube-apiserver server-side, can you elaborate how to reproduce that error step-by-step?...

Can't generate Java codes using https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/charts/spark-operator-chart/crds/sparkoperator.k8s.io_sparkapplications.yaml

我也发现了这个问题,在ajax异步验证的时候只会response false 如果是在form submit提交,http Request请求,使用$this->validate()验证,captcha规则是可行的, 但是如果发起一个ajax request验证,使用Validator::make()->validate()的方法,captcha规则不起作用. 另外,我发现似乎ajax的每一次post提交请求,都会对captcha造成影响,如果使用复制粘贴的方法,一次性在验证码的输入框粘贴完整,正确的验证码,ajax的验证结果是正确的,但是在submit提交的时候会失败,这应该和Validator::make()中的captcha有关,因为如果我在验证规则里把captcha的验证规则取消,就可以正常提交表单. I also discovered the problem of response false only when AJAX is asynchronously validated The captcha rule is feasible while a form...

我找到了原因并且找到了解决的办法 使用ajax post异步验证会出现false的原因是,在输入captcha之后进行post提交的一瞬间(例如绑定了失去焦点post事件),源代码执行了清除session的动作,源代码是: `$this->session->remove('captcha')` 这样的话,在点击进行表单提交时,session中已经没有了captcha的key,所以源代码中的check()方法必然会返回false,暂时我的做法是注释掉了这一段代码 `// $this->session->remove('captcha');` 然后在登陆的控制器里加上: `session()->remove('captcha');` 如果还不放心的话,可以在前端js里给captcha的img添加一个click()事件,让captcha刷新一下. 现在ajax异步验证并提交表单一切OK! In English: I found the cause and found a solution The reason for the occurrence of false using Ajax...

@sheaxiang 我就在用5.5,你是什么情况呢?

太好了,我又能继续用这个包了,我还误以为是GD包的问题,老铁,以后对你的包多上点心吧,没有比这个更好用的包了 @juicechu