$location=DoingReturnUrl($location,$_POST['ecmsfrom']); 在此行代码上边增加如下代码: //会员登陆赠送点数 开始 $LastTime=time(); $useridz=(int)$r[$user_userid]; $fenus=2; //赠送积分 $LastT=$empire->fetch1("select LastTime from {$dbtbpre}enewsmemberadd where `userid`={$useridz}"); (int)$newstime=$LastT['LastTime'];//时间 (int)$times=mktime(0,0,0,date('m',$LastTime),date('d',$LastTime),date('Y',$LastTime));//当前时间 if($newstime==0){$empire->query("update {$dbtbpre}enewsmember set `userfen`=userfen+{$fenus} where `userid`={$useridz}");}else{ if($times<$newstime && $newstime<$times+86400){ //今天 }else{ $empire->query("update {$dbtbpre}enewsmember set `userfen`=userfen+{$fenus} where `userid`={$useridz}"); } } $empire->query("update {$dbtbpre}enewsmemberadd set `LastTime`={$LastTime} where `userid`={$useridz}"); //会员登陆赠送点数 结束 |
新闻热点
疑难解答