where('phone',$phone)->where('is_del',0)->where('vip_end_time','>=',$date)->first(); return $info; } /** * 判断用户是否为会员 * @param $phone * @return bool */ public static function judgeWhetherTheUserIsAMember($phone){ $info = CustomerVip::getCustomerInformation($phone); if(!$info || (strtotime($info->vip_end_time) < time())){ return false; } return true; } }