这个URL直接报404错误...转码后的url是
http://ams.com/admin/authrule/seach/keywords/关闭
但其他关键词都是没问题的..
http://ams.com/admin/authrule/seach/keywords/%E7%AE%A1%E7%90%86%E5%91%98
转码后
http://ams.com/admin/authrule/seach/keywords/管理员
这个UR访问就没问题...
后台代码:
public function seach(){
if(request()->isAjax()){
$data=input('keywords');
$conf=new ConfModel();
$confRes=$conf->where('cnname','like',"%".$data."%")->select();
return $confRes;
}else{
$this->error('请勿非法操作!');
}
}
最佳答案
