能不能帮忙修改下代码 我想把领取的利息分成两种币 领取的时候 自动换成两种币 一种领取70% 另一种30%
}elseif($_GET['act']=='interest'){//领取利息
$money=$user['current_interest'];
if($money>0){
$updatearray=array(
'current_interest'=>$money-floor($money),
'last_trade_time'=>time(),
);
C::t('#gacb#ga_credit_bank_user')->update($user['id'],$updatearray);
C::t("common_member_count")->increase($user['uid'],array('extcredits'.$setInfo['credit_type']=>floor($money)));
$updatehistory=array(
'uid'=>$_G['uid'],
'operat_time'=>time(),
'operat_credit'=>floor($money),
'operat_type'=>5,
'credit_type'=>$setInfo['credit_type']
);
C::t('#gacb#ga_credit_bank_history')->insert($updatehistory);
echo "<script>";
echo "parent.window.showmsg('".lang('plugin/gacb','015')." ".floor($money)." ".$_G['setting']['extcredits'][$setInfo['credit_type']]['title']."');";
echo "</script>";
exit;
}else{
echo "<script>";
echo "parent.window.showerror('".lang('plugin/gacb','016')."');";
echo "</script>";
exit;
}
这个代码怎么修改啊
|