在phpcms/modules/member/index.php 文件中找到
showmessage(L('login_success').$synloginstr, $forward);在这段代码上面加如下:
$todaytimea = strtotime(date('y-m-d',SYS_TIME));
$this->useraccount = pc_base::load_model('pay_account_model');
$rtimea = $this->useraccount->count("`addtime` > $todaytimea AND `username`='$username'");
if ($rtimea<=0){//判断数据库是否有值
pc_base::load_app_class('receipts','pay',0);
receipts::point(10,$userid, $username, $flag,'selfincome','每日登陆',$username);
}else{
//echo("今日登录过");
}
到此即可!!