Browse Source

:bug: User class 名词跟 jwt有冲突

visuddhinanda 3 years ago
parent
commit
5abe86b289
2 changed files with 2 additions and 2 deletions
  1. 1 1
      public/app/api/user.php
  2. 1 1
      public/app/db/user.php

+ 1 - 1
public/app/api/user.php

@@ -3,7 +3,7 @@ require_once "../db/user.php";
 require_once "../redis/function.php";
 require_once "../public/function.php";
 
-$model = new User(redis_connect());
+$model = new PCD_User(redis_connect());
 
 switch ($_REQUEST["_method"]) {
 	case 'index':

+ 1 - 1
public/app/db/user.php

@@ -27,7 +27,7 @@ CREATE TABLE users (
     updated_at    TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL //自动更新
 );
 */
-class User extends Table
+class PCD_User extends Table
 {
     function __construct($redis=false) {
 		parent::__construct(_FILE_DB_USERINFO_, "user", "", "",$redis);