| | |
| | | foreach($cusList as $cus) |
| | | {//循环参与活动的会员 |
| | | $tradeId=$act['id'].'u'.$cus['user_id']; |
| | | $yqCount=Db::query('select count(1) as count from t_user where invitation_id=? and invite_bind_time>=? and invite_bind_time<=?',[$cus['user_id'],$cus['create_time'],$actEndTime]); |
| | | $yqCount=Db::query('select count(1) as count from t_user where invitation_id=? and status=? and invite_bind_time>=? and invite_bind_time<=?',[$cus['user_id'],'normal',$cus['create_time'],$actEndTime]); |
| | | if(empty($yqCount)) |
| | | { |
| | | Db::execute('update t_recruit_act set settlement_status=?,settlement_time=?,act_count=0,act_award=0 where id=?',[1, date("Y-m-d H:i:s", time()),$tradeId]); |