model = new SysNotice(); } /** * 消息发送 * @param $key * @param $data * @return false|mixed */ public static function send($key, $data){ $template = (new CoreNoticeService())->getInfo($key); if(empty($template)) return false; return Notice::dispatch(['key' => $key, 'data' => $data, 'template' => $template], is_async:$template['async']); } }