quanwei
2025-11-01 121b714d710cf3c865f4a1b5efe81abec11056d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
 
namespace app\shop\model\user;
 
use app\common\model\user\UserAuth as UserAuthModel;
 
/**
 * 模型
 */
class UserAuth extends UserAuthModel
{
    /**
     * 隐藏字段
     */
    protected $hidden = [
        'app_id',
        'create_time',
        'update_time'
    ];
 
    /**
     * 认证信息详情
     */
    public static function detail($user_id)
    {
        $where = ['user_id' => $user_id];
        return (new static())->where($where)->find();
    }
}