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';
卢小强2019-09-19 16:07:12
You are using ajax to submit, instead of using return ['status'=>$status, 'message'=>$result, 'data'=>$data];
小❤呆呆2019-09-16 16:37:04
Need to return the result to the front desk, but I didn’t see any printout of $result