Hello teacher, when the code is running, there is no prompt box when the data is found in the database. Click OK to enter the homepage. In the program,
$user = UserModel::get($map);
//var_dump ($map);
if ($user===null) {
$result = 'There is no such user, please check';
solved
Solve it?
You are using ajax to submit, instead of using return ['status'=>$status, 'message'=>$result, 'data'=>$data];
Need to return the result to the front desk, but I didn’t see any printout of $result