更新目录结构

This commit is contained in:
2023-10-21 17:45:00 +08:00
parent 59cc869bb2
commit 664295167d
55 changed files with 1856 additions and 6329 deletions

View File

@@ -10,7 +10,6 @@ namespace app\model\auth;
use app\model\BaseModel;
use think\facade\Config;
use xiaodi\JWTAuth\Facade\Jwt;
class Users extends BaseModel{
@@ -28,7 +27,7 @@ class Users extends BaseModel{
}
public function getTokenAttr($value, $data){
$token = Jwt::store('api')->token($data)->__toString();
$token = \leruge\facade\JWT::builder($data, false);
return $token;
}