1.缺失信息提交
This commit is contained in:
@ -20,7 +20,8 @@ use app\common\enum\user\UserEnum;
|
||||
use app\common\model\BaseModel;
|
||||
use app\common\service\FileService;
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
use think\Model;
|
||||
use think\facade\Db;
|
||||
/**
|
||||
* 用户模型
|
||||
* Class User
|
||||
@ -32,6 +33,16 @@ class User extends BaseModel
|
||||
|
||||
protected $deleteTime = 'delete_time';
|
||||
|
||||
public static function get(int $user_id)
|
||||
{
|
||||
$list = Db::name('user')->where("id",$user_id)->find();
|
||||
// $objList = array_map(function ($item) {
|
||||
// return (object) $item;
|
||||
// }, $list);
|
||||
return (object) $list;
|
||||
// return $objList;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 关联用户授权模型
|
||||
|
||||
Reference in New Issue
Block a user