Files
OMS/app/pam/model/account.php
2025-12-28 23:13:25 +08:00

35 lines
709 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
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class pam_mdl_account extends dbeav_model{
var $has_many = array(
'account'=>'auth:append',
);
var $subSdf = array(
'delete' => array(
'account:auth' => array('*'),
)
);
/**
* 得到帐号用户名
*/
public function get_operactor_name($account_id='')
{
if ($account_id == '')
return app::get('pam')->_('未知或无操作员');
$tmp = $this->getList('login_name',array('account_id'=>$account_id));
if (!$tmp)
{
return app::get('pam')->_('未知或无操作员');
}
return $tmp[0]['login_name'];
}
}