@php use App\Bots; use App\SummaryMessageSend; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Auth; $currentUser = Auth::user(); $currentUserId = $currentUser ? $currentUser->id : null; $listBot = getListBotHeader($currentUserId)->toArray(); $listBot = array_chunk($listBot, 2); $startOfMonth = \Carbon\Carbon::now()->startOfMonth()->format('Y-m-d'); $dayNowOfMonth = \Carbon\Carbon::now()->format('Y-m-d'); $limitMessageLine = 0; $totalChatByMonth = 0; $botLineId = null; $botId = getBotId(); if ($botId) { $bot = Bots::query()->select('line_id')->find($botId); $botLineId = $bot ? $bot->getAttribute('line_id') : null; } if ($getBotInfo && $getBotInfo->plan_type == 1) { if (Cache::has('summaryTotalChatByMonth'.$getBotInfo->id)) { $totalChatByMonth = Cache::get('summaryTotalChatByMonth'.$getBotInfo->id); } else { $summaryTotalChatByMonth = SummaryMessageSend::where('bot_id', $getBotInfo->id) ->whereBetween('date_summary', [$startOfMonth, $dayNowOfMonth]) ->selectRaw('SUM(number_message_send_chat11) as total_chat11, SUM(number_message_send_broadcast) as total_chat_broadcast, SUM(number_message_send_other) as total_chat_other') ->first(); $totalChatByMonth = $summaryTotalChatByMonth->total_chat11 + $summaryTotalChatByMonth->total_chat_broadcast + $summaryTotalChatByMonth->total_chat_other; Cache::put('summaryTotalChatByMonth'.$getBotInfo->id, $totalChatByMonth, 10); } $limitMessageLine = $getBotInfo->limit_message_loa; } else if ($getBotInfo) { $totalChatByMonth = $getBotInfo->free_send_count; $limitMessageLine = $getBotInfo->limit_message_loa; } $planLOA = "communication"; if ($limitMessageLine >= 200 && $limitMessageLine < 5000) { $planLOA = 'communication'; } if ($limitMessageLine >= 5000 && $limitMessageLine < 30000) { $planLOA = "light"; } if ($limitMessageLine >= 30000) { $planLOA = "standard"; } @endphp
料金プランのアップグレードを推奨します。
料金プランのアップグレードが必要です。
詳細を見る@{{ notify.title }}
@{{ notify.start_human }}・LINE公式アカウント管理画面上で「ブロックされている」または「スパ
ム登録している」友だちは取得されません。
・過去にエルメ上でブロックした友だちは取得されません。
・過去にエルメ上で削除した友だちは、エルメ上に反映されます。
「LINE OFFICIAL ACCOUNT MANAGER」にログインしてください。
※ LINE公式アカウントの管理画面です。
ログイン後、左側メニューから「友だち追加ガイド」を選んでください。
「URL作成」をクリックし、表示されたURLをコピーしてInstagramに設置してください。