/**
* 添加积分
* @param Integer $uids: 用户uid或者uid数组
* @param String $dataarr: 积分操作数组
* @param Boolean $checkgroup: 是否检查用户组 true or false
* @param String $operation: 操作类型
* @param Integer $relatedid:
* @param String $ruletxt: 积分规则文本
* @param String $customtitle: 自定义积分记录标题
* @param String $custommemo: 自定义积分记录说明
*/
function updatemembercount($uids, $dataarr = array(), $checkgroup = true, $operation = '', $relatedid = 0, $ruletxt = '', $customtitle = '', $custommemo = '') {
if(!empty($uids) && (is_array($dataarr) && $dataarr)) {
require_once libfile('function/credit');
return _updatemembercount($uids, $dataarr, $checkgroup, $operation, $relatedid, $ruletxt, $customtitle, $custommemo);
}
return true;
}
操作示例
updatemembercount($_G['uid'], array(1=>10),true,'',123,'抽奖奖励','抽奖奖励','抽奖奖励');
操作说明:给$_G['uid']用户添加积分extcredits1,数额10
还没有评论,来说两句吧...