前端目录调整

This commit is contained in:
molong
2022-05-12 21:23:18 +08:00
parent fe38e19924
commit a37870c93b
145 changed files with 3090 additions and 7244 deletions

20
app/model/user/Users.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\model\user;
use app\model\BaseModel;
use xiaodi\JWTAuth\Facade\Jwt;
class Users extends BaseModel{
public function getTokenAttr($value, $data){
$token = Jwt::store('api')->token($data)->__toString();
return $token;
}
}