/plus/download.php中找到以下代码:
//扣除金币
$dsql->ExecuteNoneQuery("Update `dede_member` set money = money - $needMoney where mid='".$cfg_ml->M_ID."'");
在代码的下面加入:
//除出来剩余的给作者可以除2 除以 1.25 1.5都行...
$jmoney=$needMoney/2;
//给作者加金币。$needMoney变量赋予$jmoney是除后的值。下面加金币调用$jmoney
$dsql->ExecuteNoneQuery("Update `dede_member` set money = money + $jmoney where mid='".$mid."'");
(责任编辑:好模板) |