dever 7 년 전
부모
커밋
c5c27a5061
2개의 변경된 파일13개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 0
      src/Auth.php
  2. 12 8
      src/Database.php

+ 1 - 0
src/Auth.php

@@ -246,6 +246,7 @@ class Auth
                 $insert['email'] = $param['where_email'];
                 $insert['password'] = Dever::input('password');
                 $insert['status'] = $insert['state'] = 1;
+                $insert['role'] = 1;
                 Dever::db('manage/admin')->insert($insert);
 
                 $param['time'] = 1;

+ 12 - 8
src/Database.php

@@ -158,21 +158,25 @@ class Database
     private function getUrlParam($key, $table, $suffix, $state)
     {
         $param = '';
+        $oper = '';
         $array = array('project', 'add', 'list', 'update');
         if (in_array($key, $array)) {
-            $where = Dever::preInput('search_');
-            if ($where) {
-                if (isset($where['where_id'])) {
-                    //unset($where['where_id']);
-                }
-                unset($where['search_option_state']);
-                $param .= '&' . http_build_query($where);
-            }
 
             $oper = Dever::preInput('oper_');
             if ($oper) {
                 $param .= '&' . http_build_query($oper);
             }
+
+            if (!$oper) {
+                $where = Dever::preInput('search_');
+                if ($where) {
+                    if (isset($where['where_id'])) {
+                        //unset($where['where_id']);
+                    }
+                    unset($where['search_option_state']);
+                    $param .= '&' . http_build_query($where);
+                }
+            }
         }
 
         if ($key == 'search' && $search_limit = Dever::input('search_limit')) {