js代码
=['username'=['pwd'(=='' || ==''->ajaxReturn(('status'=>0,'info'=>'帐号密码不能为空','url'=>'' = D("User"=->getFields("account='".."' and password='".()."'"((->ajaxReturn(('status'=>0,'info'=>'登录失败','url'=>'''account',['account'=U('index/index'->ajaxReturn(('status'=>1,'info'=>'登录成功','url'=>
</span><span style="color: #0000ff;">public</span> <span style="color: #0000ff;">function</span><span style="color: #000000;"> loginout(){
session(</span>'account',<span style="color: #0000ff;">null</span><span style="color: #000000;">);
</span><span style="color: #800080;">$this</span>->redirect('index/index'<span style="color: #000000;">);
}</span></pre>
model代码
getFields( ->where()->
原文链接:https://www.f2er.com/thinkphp/403067.html