page($where['page'], $where['limit'])->select(); $data = count($data) ? $data->toArray() : []; $count = self::count(); return compact('data', 'count'); } /**获得消息信息 * @param string $template_const */ public static function getSystemMessage($template_const = '') { return self::where('template_const', $template_const)->field('tempkey,temp_id,is_wechat,is_sms')->find(); } }