這是您影片中的,死活登陸不進去
$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();