Class User
Methods summary
public static
string|null
|
|
public static
type
|
#
loadUser( mixed $uids = '' )
加载用户缓存,其中键对应uid 如果有传入$uids,如果是'1,2,3'格式的字符串,则转成数组,如果array(1,2,3),继续: 1、如果传入的uid存在,则取出来,重新组合成一个新的数组,格式和不传入$uids的格式一样: array( 1 => array( 'uid' => 1, 'username' => '沐筱琴', 'isadministrator' => 1, 'deptid' => 1, 'positionid' => 1, 'roleid' => 1, 'upuid' => 0, 'groupid' => 2, 'jobnumber' => '萌萌哒', 'realname' => '沐筱琴', 'password' => 'b04bdfc08616188a32754e21a43e6ee6', 'gender' => 0, 'weixin' => 'forsona', 'mobile' => '13250302684', 'email' => '2317216477@qq.com', 'status' => 0, 'createtime' => '1435830015', 'credits' => 2, 'newcomer' => 1, 'salt' => 'LTmRXK', 'validationemail' => 0, 'validationmobile' => 0, 'lastchangepass' => '1435907360', 'guid' => '31163F94-7736-6798-3EE7-54011002FF5C', 'group_title' => '初入江湖', 'upgrade_percent' => 4, 'next_group_credit' => 50, 'level' => 2, 'alldeptid' => '6,1', 'allupdeptid' => '', 'alldowndeptid' => '7,8,2,3,4,5,9', 'relatedDeptId' => 6, 'deptname' => '广州', 'allposid' => '1,3', 'relatedPosId' => '3', 'posname' => '总经理', 'allroleid' => '1,3', 'relatedRoleId' => '3', 'rolename' => '管理员', 'space_url' => '?r=user/home/index&uid=1', 'avatar_middle' => 'static.php?type=avatar&uid=1&size=middle&engine=LOCAL', 'avatar_small' => 'static.php?type=avatar&uid=1&size=small&engine=LOCAL', 'avatar_big' => 'static.php?type=avatar&uid=1&size=big&engine=LOCAL', 'bg_big' => 'static.php?type=bg&uid=1&size=big&engine=LOCAL', 'bg_small' => 'static.php?type=bg&uid=1&size=small&engine=LOCAL', 'birthday' => '0', 'telephone' => '', 'address' => '', 'qq' => '', 'bio' => '', 'remindsetting' => '', ), 2 => array( //... ), ); 2、如果传入的uid都不存在,则直接返回全数组 3、如果不传入uids,则返回全数组 |
public static
|
|
public static
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
array
|
|
public static
string
|
|
public static
integer
|
|
public static
|
|
public static
|
#
batchUpdateCredit(
批量执行某一条策略规则 |
public static
|
#
updateUserCount( Integer $uids,
添加积分 |
public static
返回积分策略
|
#
updateCreditByAction( string $action, integer $uid = 0, array $extraSql = array(), string $needle = '', integer $coef = 1, integer $update = 1 )
根据某个动作执行积分规则 |
public static
type
|
|
public static
array
|
|
public static
boolean
|
|
public static
type
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
integer
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
boolean
|
|
public static
integer
|
|
public static
|
|
public static
array
|
|
public static
type
|
|
public static
json
|
|
public static
array
|
|
public static
array
|