The user's real-name information filled in is the only proof for prize redemption. If the real-name information filled in is incorrect due to personal reasons and the prize cannot be redeemed, all losses will be borne by the user.
Mine is the same. Later I found that the teacher’s data.message was written incorrectly in the ajax at the front desk. It should be data.result. After I changed this, it became normal.
replyIn the checkLogin method in User.php, the initial value is defined according to what the teacher wrote, and then using alter(data.status) in ajax in login.html, the result is displayed as undefined.
The user's real-name information filled in is the only proof for prize redemption. If the real-name information filled in is incorrect due to personal reasons and the prize cannot be redeemed, all losses will be borne by the user.
Mine is the same. Later I found that the teacher’s data.message was written incorrectly in the ajax at the front desk. It should be data.result. After I changed this, it became normal.
It should be that the js code variable is not defined
public function checkLogin(Request $request)
{
//Initial return parameters
$status =0;
$result =' ';
$data = $request ->param();
## use using ‐ through using ’’s ’ through ‐ ‐ ‐ ‐ // $rule =[ >'require|captcha', // ];// //Verify
// $result = $this->validate($data,$rule);
return ['status'=>$status,'message'=>$result,'data'=>$data];
}No value given.