update($data); } public static function updateOrderErrorRecord($id,$data){ ReportToChannelOrders::where('id',$id)->update($data); } public static function getUserErrorRecord($date){ return ReportToChannelUsers::where('report_status',0) ->where('created_at','>=',$date) ->select('id','uid','distribution_channel_id','register_ip','user_agent','user_created_at') ->get(); } public static function getOrderErrorRecord($date){ return ReportToChannelOrders::where('report_status',0) ->where('created_at','>=',$date) ->select('id','uid','distribution_channel_id','price','order_created_at') ->get(); } }