Joke Collection Website - Public benefit messages - Thinkphp3。 Verification of verification code always shows that the verification code has been entered incorrectly.

Thinkphp3。 Verification of verification code always shows that the verification code has been entered incorrectly.

Honey, there is something wrong with your check_verify. You always return json data.

$ this-& gt; ajaxReturn($res,' JSON ');

This is the return method of the corresponding ajax request, so when you call it,

If (! Check_verify($verify) here should always hold, so $ this->; mistake

You put $ this-& gt;; AjaxReturn($res,' json') is changed to return $ res; Give it a try! ~~