まぁいっかー

このコミットが含まれているのは:
守矢諏訪子 2021-11-16 02:32:48 +09:00
コミット 2626c98475
2個のファイルの変更12行の追加4行の削除

ファイルの表示

@ -463,13 +463,20 @@ class FathersController extends Controller {
return ['status_code' => 400];
}
foreach (json_decode($r->tel) as $tel) {
// SMSを送ります。
$message = '未承知のミーティングがあります。
try {
foreach (json_decode($r->tel) as $tel) {
// SMSを送ります。
$message = '未承知のミーティングがあります。
以下より確認してください。
'.url('/').'/c-account/meeting/detail/'.$r->meeting_id;
\Notification::route('nexmo', '81'.substr($tel, 1))->notify(new SmsNotification($message));
\Notification::route('nexmo', '81'.substr($tel, 1))->notify(new SmsNotification($message));
}
}
catch (\Throwable $e) {
// 失敗
Log::critical($e->getMessage());
return ['status_code' => 400];
}
return ['status_code' => 200];

ファイルの表示

@ -236,6 +236,7 @@ class MeetingsController extends Controller {
if (null === ($list = Meeting::select($meeting_select)->where('father_id', (int)$r->father_id)->get())) {
return ['status_code' => 400];
}
foreach ($list as $i => $l) {
if (null !== ($l->approvals = MeetingApprovals::select($meeting_approvals_select)->whereNotNull('approval_at')->where('meeting_id', (int)$l->id)->get())) {
foreach ($l->approvals as $ii => $ll) {