select('batch_id', 'distribution_channel_id', 'appid')->get(); } public static function get_infos_by_batch_id($batch_id,$columns=[]) { if(!isset($columns)) { $columns ='*'; } return self::where('batch_id', $batch_id)->select($columns)->get(); } /** * 根据状态获取客服消息 */ public static function wechatCustomMsgsByStatus($status) { return self::where(['status' => $status, 'del_flag' => 0])->get(); } public static function getMsgByAppBatchChannelId($appId, $batchId, $channelId) { $where = ['appid' => $appId, 'batch_id' => $batchId, 'distribution_channel_id' => $channelId]; $result = self::where($where)->first(); return $result ? $result->toArray() : []; } /** * * @return mixed */ public static function getUnCollectedList() { $result = self::whereNull('first_day_material_uv')->get(); return $result; } }