strtotime($res[0]['end_time'])||time()=? and act_type=0 limit 1',[$nowTime,$nowTime]); if(empty($actList)) {//没有进行中的活动,不用处理 return true; } //查询是否参加了招募活动 $recruitid=$actList[0]['id'].'u'.$userid; $actReinfo=Db::query('select id from t_recruit_act where id=? and settlement_status=0',[$recruitid]); if(empty($actReinfo)) {//没有参加活动,不用处理 return true; } //增加count $countres=Db::execute('update t_recruit_act set recruit_count=recruit_count+1 where id=?',[$recruitid]); return $countres==1; } }