Browse Source

更新 'application/index/controller/Base.php'

Me 5 years ago
parent
commit
a21c3718e7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      application/index/controller/Base.php

+ 3 - 3
application/index/controller/Base.php

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