1. paip.discuz  X2.5积分(金钱)功能API总结

2. /source/function/function_core.php   updatemembercount()

金钱积分增删....带日志纪录..

 

 

示列: 进行返奖操作,给账户增加金钱,并进行日志纪录..

 $uname=$_REQUEST["uname"];

 $minus=$_REQUEST["money"];

 $uid=getUidByUname ( $uname );

 $dataarr = array (2 => $minus);

 $checkgroup = TRUE;$operation = 'bonus'; $relatedid = 12; $ruletxt ="返奖";




 updatemembercount($uid,$dataarr,$checkgroup ,$operation ,$relatedid , $ruletxt );

------------------------------------------------------

3. 积分日志查看..显示自定义 交易类型

/data/template/1_1_home_spacecp_credit_base.tpl.php  LINE 389

<?php if($loglist) { if(is_array($loglist)) foreach($loglist as $value) { ?>

<?php $value = makecreditlog($value, $otherinfo);?>

<?php 

//ati 2012.7.16  format bonuse op title

if( $value['operation']=="bon")

{

$value['optype']="返奖";

$value['opinfo']="返奖获得的积分";

}

//end ati