day)->whereMonth('birthday', $now->month)->get(); $phone = $users->implode('phone', ','); try { $easySms = new EasySms(config('easysms')); $result = $easySms->send($phone, [ 'template' => 'SMS_463637721', ]); logger('生日短信发送成功: ' . $phone, $result); } catch (\Exception $e) { logger()->error('生日短信发送失败', $e->getException('aliyun')->raw); } } }