|
@@ -56,7 +56,7 @@ class Base extends Controller//公共控制器
|
|
|
'keywords'=>$keywords,
|
|
|
));
|
|
|
}else{
|
|
|
- echo "<script>alert('非法请求!');location.href='".url('index/index')."'</script>";
|
|
|
+ echo "<script>alert('非法请求!');location.href='".url('/index')."'</script>";
|
|
|
}
|
|
|
return view();
|
|
|
|
|
@@ -69,7 +69,7 @@ class Base extends Controller//公共控制器
|
|
|
$post_token = input('post.TOKEN');//因为是提交方式是post所以就用post.name(TOKEN)来接收token传过来的值
|
|
|
if(!checkToken($post_token)){//如果验证token不一致则提示请勿重复条件页面(token值在每次完成一个搜索时创建一个新的token)
|
|
|
// $this->error('请不要重复提交页面',url('index/index/index'));
|
|
|
- echo "<script>alert('请不要重复提交页面!');location.href='".url('index/index/index')."'</script>";
|
|
|
+ echo "<script>alert('请不要重复提交页面!');location.href='".url('/index')."'</script>";
|
|
|
}
|
|
|
$keywords = input('keywords');
|
|
|
if($keywords){
|
|
@@ -91,7 +91,7 @@ class Base extends Controller//公共控制器
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
- echo "<script>alert('非法请求');location.href='".url('index/index')."'</script>";
|
|
|
+ echo "<script>alert('非法请求');location.href='".url('/index')."'</script>";
|
|
|
}
|
|
|
return view();
|
|
|
|