这是您视频中的,死活登陆不进去
$map []=['email','=',$data['email']];
$map []=['password','=',sha1($data['password'])];
$resilt=UserModel::where($map)->find();
我把sha1删了就登陆进去了,这是为何?
$map []=['email','=',$data['email']];
$map []=['password','=',$data['password']];
$resilt=UserModel::where($map)->find();