打开/include/memberlogin.class.php文件
找到
//登录增加积分(上一次登录时间必须大于两小时)
if(time() - $logintime > 7200 && $cfg_login_adds > 0)
{
$dsql->ExecuteNoneQuery("Update `dede_member` set `scores`=`scores`+{$cfg_login_adds} where mid='$uid' ");
}
$this->M_ID = $uid;
$this->M_LoginTime = time();
改成
//登录增加积分(每天登陆加一次积分)
$row = $dsql->GetOne("SELECT logintime FROM dede_member WHERE mid='$uid' ");
$logintime = $row['logintime'];
$timel = GetDateMk($logintime);
$now = GetDateMk(time());
if($timel!=$now)
{
$dsql->ExecuteNoneQuery("Update `dede_member` set `scores`=`scores`+{$cfg_login_adds} where mid='$uid' ");
}
$nowtime = GetDateTimeMk(time());
$logint = GetMkTime($nowtime);
$dsql->ExecuteNoneQuery("Update dede_member set logintime='$logint' where mid='$uid' ");
$this->M_ID = $uid;
$this->M_LoginTime = time();