Files
tuiguangzhushou/application/common/model/Auth.php
2020-08-06 15:26:41 +08:00

21 lines
615 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +------------------------------------------------+
// |http://www.cjango.com |
// +------------------------------------------------+
// | 修复BUG不是一朝一夕的事情等我喝醉了再说吧 |
// +------------------------------------------------+
// | Author: 小陈叔叔 <Jason.Chen> |
// +------------------------------------------------+
namespace app\common\model;
class Auth extends _Init
{
/**
* 获取用户数量
*/
protected function getUserCountAttr()
{
return $this->hasMany('AuthUser')->count();
}
}